Does the in-built bootloader modify any SRAM contents?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-02 10:16 AM
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.
Solved! Go to Solution.
- Labels:
-
Bootloader
-
STM32L4 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-02 10:20 AM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-02 10:20 AM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-02-02 1:08 PM
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
Up vote any posts that you find helpful, it shows what's working..
