We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am trying to get a custom bootloader to run from RAM only and so we modified our scatter file to be as follows:
LR_IROM1 0x00000000 0x00007FC8 { ; load region size_region ER_IROM1 0x00000000 0x00007FC8 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) } RW_IRAM1 0x1FFF0000 0x00010000 { ; RW data *(+RO) } RW_IRAM2 0x20000000 0x00010000 { ; RW data *(+RW, +ZI) } }
This appears to work when using the debugger, but not when flashed and run without the debugger. Is it possible that the debugger is copying the code from ROM to RAM? Shouldn't the C Startup library in __main be doing this? Do I need to specify something for this copy to take place?
Thanks, JD
nothing to boot your CPU from
Not if you one has 2 bootloaders - one updatable, the other not...