cancel
Showing results for 
Search instead for 
Did you mean: 

I use a bootloader, what's happening to the RAM after the jump?

jean_prieur
Associate III
Posted on June 12, 2015 at 19:06

Hello everybody,

To perform firmware updates, I use a SD card bootloader. The bootloader code use quite a lot of global variables.

After the jump, are these variables automatically deallocated? I want to optimize the available RAM memory in my main code, do I have to free these variables of my bootloader code?

Thanks a lot!

Jean
2 REPLIES 2
Posted on June 12, 2015 at 20:39

If the application is built completely independently, with it's own linker script or scatter file, then ALL the memory is at it's disposal to do whatever it wants with.

If you tell it that the RAM starts at 0x20000000 and is 32KB long, then that's what it will use.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jean_prieur
Associate III
Posted on June 15, 2015 at 11:04

Hello Clive,

Yes, I use an independent application (different from the bootloader code), with it own linker file. So I understand that the main application will work on all the RAM memory.

Thanks a lot!