Skip to main content
CMARI.1
Visitor II
October 23, 2020
Question

Porting STM32F070 to STM32F446 issue with user data in option bytes

  • October 23, 2020
  • 1 reply
  • 599 views

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 ?

This topic has been closed for replies.

1 reply

TDK
Super User
October 23, 2020

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""."