Content originally posted in LPCWare by coolbrian on Tue Apr 02 07:27:55 MST 2013
Hello,
Thank you for testing. I do not know why the code works with your toolchain while it doesn't with mine...
Please see the attached files for the problem that I am after.
Within ResetISR() in the stock startup/cr_startup_lpc11.c, data is copied from Flash starting at &_etext to RAM.
_etext=0x5c4 (blinky.map) while val[1-6] are stored from 0x5c8 and on in blinky.bin.
Actually, Line #279 in blinky.map says the .data section load address is 0x5c8, which is correct. However, in ResetISR(), initializing data starting from &_etext (=0x5c4) does not seem right.
Please let me know if you need more information.
Thanks.
Brian