Hi
I am working on a bootloader for lpc11c24 (ARM cortex M0). I want to have a common RAM for the bootloader and application. The RAM should not be erased when jumping to application from bootloader and after a software reset from application. I have done a similar thing in other microcontroller but I could not figure out a way for the same in lpc11c24. Would it be possible using a scatter file? Is there a way for doing it in Keil?
Thanks!
Yes. You need to place whatever you want to prevent from being set to zero in a variable with a "zero init" attribute, and map that one to an NOINIT region using a scatter file. See your linker manual.
Another option is to just tell the project that your chip has less memory than it really has. Then you can reserve a suitable amount that you access with a pointer to a struct.
Thanks for your suggestions! I could make it work.