What is the simplest approach for 1-bit shared memory between bootloader & application?
I am trying to get an application to set a flag to non-volatile memory to communicate to the bootloader after reset to reprogram the application image. I am using the STM32L496 MCU.
EEPROM seems to be the weapon of choice, but our team has EEPROM on both the application and the bootloader configured to use "virtual eeprom" (which basically means it is actually using flash) and from what I can tell can only be used within their respective programs.
What would be beautiful is if the MCU had a spare non-volatile register (like the RCC_CSR register) that can be used to share a 1-bit flag between the applications to communicate when it is time to reprogram the image.
What is the simplest method for tackling this problem? Example?
Thanks,
Marshall
