2015-06-12 10:06 AM
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!Jean2015-06-12 11:39 AM
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.2015-06-15 02:04 AM
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!