cancel
Showing results for 
Search instead for 
Did you mean: 

Porting STM32F070 to STM32F446 issue with user data in option bytes

CMARI.1
Associate

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 ?

1 REPLY 1
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".