2020-10-23 05:36 AM
Hello, we are currently porting some code from STM32F070 to STM32F446. In the original code, we used to use a generic byte from the option bytes to keep some flags between two resets, without using one page of the onboard flash memory, using something like:
FLASH_ProgramOptionByteData(ADRESSE_OPTION_BYTE_DATA0, myFlags);
Now, on our new platform based on the STM32F446, it seems like there's no more generic option byte where to store user flags (without modifying actual options of the MCU).
Is there a way to keep one byte in a flash storage, without involving the alteration of a full page of the embedded flash ?
2020-10-23 06:59 AM
The option bytes in the STM32F4 family are super limited. I don't see a free byte anywhere. In the STM32H7 series, it's possible you could use one of the bytes to store user data. It would still affect the function of the chip, but maybe you could choose a function that wasn't needed.