cancel
Showing results for 
Search instead for 
Did you mean: 

Does the in-built bootloader modify any SRAM contents?

ABain.1
Associate

We have a product that is permanently powered. We'd like to be able to persist some frequently changing data through a reset and firmware upgrade (using the in-built ROM bootloader) by just reserving (and no-init'ing) an area of RAM, however I'm concerned that the ROM bootloader may use areas of SRAM for it's own purposes, thus trashing our saved data. Does this happen? If so, are there any areas it wouldn't touch?

The specific micro we're using is the STM32L451.

1 ACCEPTED SOLUTION

Accepted Solutions
ABain.1
Associate

To answer my own question, from https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf - "12 Kbyte starting from address 0x20000000 are used by the bootloader firmware" (this varies by device, this is the configuration for the STM32L451).

View solution in original post

2 REPLIES 2
ABain.1
Associate

To answer my own question, from https://www.st.com/resource/en/application_note/cd00167594-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf - "12 Kbyte starting from address 0x20000000 are used by the bootloader firmware" (this varies by device, this is the configuration for the STM32L451).

The RTC has 32 32-bit registers

Might also want to look at the initial SP register from the ROM's Vector Table, this is usually the high-water mark

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..