Hello
My global variables are only initializing to defined values when i download my code to LPC2468. After Power reset my Global variables are initializing to random values. I am getting following warning :
.\Obj\ethernet_bootloader.sct(8): warning: L6314W: No section matches pattern *(InRoot$$Sections).
My scatter file :
; ************************************************************* ; *** Scatter-Loading Description File generated by uVision *** ; ************************************************************* LR_IROM1 0x00000000 { ; load region ER_IROM1 0x00000000 0x00020000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) } RW_IRAM1 0x40000040 UNINIT 0x00080000 { ; RW data .ANY (+RW +ZI) } }
Is my problem related with above warning ?
That, or your startup code which copies/zeros statics is broken.