2025-11-07 1:54 AM
So I made a custom bootloader that I use to update the MCU firmware. So I have both the bootloader and the main app in the Flash. What I wanted to do, is to write on a specific address (out of bootloader and application, of course) a kind of a flag that notifies the app when it is necessary to go to the bootloader to update the firmware. Any clue on how to do it?
I am using a STM32U585, using the B-U585I-IOT02A board.
Thank you!
2025-11-07 3:21 AM
You can write this flag into the internal RAM (SRAM). Data in the SRAM survives restart/reboot of the MCU while power is supplied.
2025-11-07 4:13 AM
Basically the same question here: How to store a 1-bit bootloader flag without wasting 1 Flash page.
@j_filipe so does your value need to be volatile, or not?