Hello,
currently I am programming a MSP430FG4619. I use the IDE Eclipse
together with mspgcc. Compiling and flashing usually worked quite well
for me.
But as the size of the code keeps growing, problems are arising.
Right now I am not able anymore to flash a new program to the msp430,
if it is sufficiently large (few KB). Small programs work.
I checked, if the same problem happens while using the IDE "IAR
workbench" from TI. I did not see any problems here with small or big
programs.
I can reproduce the problem with the following steps:
1) compile -> ok
2) run msp430-gdbproxy -> it detects "msp430xG461x"
3) use msp430-gdb to download the binary
-> error message: "Memory access error while loading section .text."
Then I enabled the "verbose" flag for gdb to get the following log:
load Debug\foo
27+download,{section=".text",section-size="5264",total-size="47534"}
27+download,{section=".text",section-sent="988",section-size="5264",total-sent="988",total-size="47534"}
27+download,{section=".text",section-sent="3935",section-size="5264",total-sent="3935",total-size="47534"}
&"Memory access error while loading section .text.\n"
Memory access error while loading section .text.
40^error,msg="Memory access error while loading section .text."
(gdb)
In this example, the download stopped after sending 3935 bytes. Thus
the code was not transferred completely.
The number of transferred bytes varies randomly. But I did not succeed
in downloading the whole program fo quite some time.
My hardware:
* the msp430 is connected to an external power supply with 3.3V
* the JTAG controller is connected to the parport
My software:
* Windows XP
* Eclipse v3.3
* mspgcc - the releases from February 2007 and May 2006
My gdb settings:
target remote localhost:3333
set remoteaddresssize 16
set remotetimeout 9999
set download-write-size 512
set remote memory-write-packet-size 512
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 512
set remote memory-read-packet-size fixed
target remote localhost:3333
monitor erase all
load Debug\Foo
I tried the procedure with:
* two different JTAG controllers
* two host computers
* two MSP chips
With IAR it always works - with gdb the download never succeeds.
I would highly appreciate any of your suggestions, what I could try to
stabilize the download!
thanks for your time,
regards,
Lars