I'm using a STM32F103C8 + ST-LINK.
I have created a second memory section in the scatter file:
LR_IROM1 0x08000000 0x00010000 { ; load region size_region ER_IROM1 0x08000000 0x00005000 { ; load address = execution address *.o (RESET, +First) ;*(InRoot$$Sections) .ANY (+RO) } MY_SECT 0x08005000 0x00000400 { main.o } RW_IRAM1 0x20000000 0x00005000 { ; RW data .ANY (+RW +ZI) } }
Everything compiles. It looks like the programmer loads to flash. However, when I execute code in the debugger, all memory in that new section is 0xFF.
Seems like maybe it is an option for the ST-LINK debugger, but I can't find anything that seems to help.
Any suggestions?
Thank you!