Matthias Weingart wrote:

I think I have a partly damaged MSP430F149.
With gdbproxy.exe (latest version from Steves-ftp)
the writing to some regions fail:

debug:     msp430: msp430_write_mem(0xF000, ptr, 0)
debug:     msp430: msp430_write_mem(0xF000, ptr, 0)
debug: MSP430_Memory(WRITE)
debug:     msp430: msp430_write_mem(0xF027, ptr, 0)
debug: MSP430_Memory(WRITE)
debug:     msp430: msp430_write_mem(0xF04E, ptr, 0)
debug: MSP430_Memory(WRITE)
debug:     msp430: msp430_write_mem(0xF075, ptr, 0)
debug: MSP430_Memory(WRITE)
debug:     msp430: msp430_write_mem(0xFFE0, ptr, 0)
debug: MSP430_Memory(WRITE)
error:     msp430: Could not write device memory (7)
debug:     msp430: msp430_write_mem(0xFFE0, ptr, 0)
debug: MSP430_Memory(WRITE)
error:     msp430: Could not write device memory (7)

However, this MSP430 is fully programmable with the IAR tools (FET_R420.exe).
Version 1 (FET_R308.exe FET_R308u.exe) fails too.

If I exchange the MSP430F149 with another one (same charge) it works
with gdbproxy and no errors.
(I tested with Win XP and win95, MSP-FET, the voltage is 3.3 volts
externally applied, on both machines I got the same results).

I wonder what happend with my '149, and why the IAR tools (V2) are better.
It seems that the FLASH could not be erased properly. How can I erase the
FLASH with insight? (only erasing, not writing, I want to play with flash
erasing to see how often I have to issue the erase command). With the
memory tool I can only reset bits (=0) in the flash, setting (=1) is not
possible.

       Matthias
You always have to erase the flash manually when using gdbproxy. The following GDB commands will erase the relevant sections of flash:

monitor erase all
monitor erase main
monitor erase info

Regards,
Steve



Reply via email to