Dmitry wrote:

Ok, now I got remote gdb connected to my x449 fet tool.

I issued once
(gdb) load
which programm my chip once.
Then I exit from debugger, edit the source and:

Then next time I'm saying 'load', gdb replies as:
        Loading section .text, size 0x78 lma 0x1100
        Memory access error while loading section .text.

the source is simple - int a,b,c = 3;
        void foo() {
               b = 15;
        }
        int main() {
               foo();
               a = b*c;
               return 240;
        }

compiled with (most recent gcc version...)
        msp430-gdb -O -g -mmcu=msp430x449 m.c

If I analyse memory, it shows the last sucessfull programmed code.

What have I missed there?

~d

The software does not automatically erase the flash memory. Currently that is left to you, using one of the target specific "monitor" commands:

   monitor erase all

or

   monitor erase main

or
   monitor erase info

Actually the last one won't fix your problem - I just put it there for completeness. "monitor help" will tell you about all the target specific commands.

Regards,
Steve



Reply via email to