Hello,
I am working on the development of a bootloader for the STM32L4S5ZIT6, and I need help to implement a feature where the bootloader is triggered after receiving a user request in the main application (the main app saves a marker in memory).
Here is what I am trying to achieve:
- The main application saves a marker (a magic number) in memory.
- After jumping to the bootloader, the bootloader checks for the presence of this marker.
- If the marker is found, the bootloader proceeds to execute (e.g., triggering a firmware update).
- If the marker is not found, the bootloader jumps back to the main application.
My question:
- Is SRAM backup (BKPSRAM) the best place to store the marker? If so, could anyone provide me with the exact address of BKPSRAM for the STM32L4S5ZIT6 (I couldn't find it in the user manual)?
- If BKPSRAM isn't suitable, can you propose another solution for saving the marker in a persistent memory region that survives resets?
I would greatly appreciate any help or suggestions.
Thank you very much!