Downloading code to a target processor

Let's assume you have a fully-linked executable called 'foo'. Type:

$ msp430-gdb foo

Assuming that you set up your "/.gdbinit" file as suggested above, then nothing special has to be done. Otherwise type the three commands listed above at the gdb command prompt. It you have msp430-gdbproxy running in the foreground in its own window you should see evidence of it starting to work.


$ monitor erase all
and the JTAG interface will clear the flash memory of the MSP430. Type:
load foo
and after a few seconds you should get confirmation that the flash memory has been reprogrammed. You need to erase the flash before you can load new code into it.