Ram allocation for bootloader and application code

Using STM32F203CB (20KB RAM)

Question 1)
Do I have to make sure that the RAM required for my bootloader and the RAM required for my application code is less than the 20K available on this device?

Question 2)
Do I need to make sure that the bootloader RAM and application RAM are in separate memory spaces?

At the moment I set both RAM locations to start at 0x20000000 with a size of 0x5000.

I feel like I'm battling a compiler issue, but accept that it could the due to the above.

Many thanks,

Stephen Ormston.

Parents
  • Boot loader and application can share same RAM space, unless you need some bytes to send messages between them.

    If you shrink the RAM size with a couple of bytes you could let the application store a magic value and take a watchdog reset to inform the boot loader to perform some specific action. Or the boot loader could store some magic value there to inform about what decisions it made.

Reply
  • Boot loader and application can share same RAM space, unless you need some bytes to send messages between them.

    If you shrink the RAM size with a couple of bytes you could let the application store a magic value and take a watchdog reset to inform the boot loader to perform some specific action. Or the boot loader could store some magic value there to inform about what decisions it made.

Children
More questions in this forum