1

I'm using a STM32F103C8 microcontroller. According to the STM32F10xxx flash memory programming manual (p.20) there are 2 option bytes which can be used to store user data. These bytes are called Data0 and Data1 and they are stored at address 0x1FFF F804.

Can these 2 bytes be used for permanently and reliably storing information (e.g. the power state of the microcontroller) after the power supply of the microcontroller has been cut off?

lukas
  • 11
  • 2
  • They are read-only so.... it would be pointless if they would reset... – KamilCuk Jun 25 '21 at 13:48
  • Nobody knows anything different to what the manual you linked to states. What is unclear to you? What do you mean by the "power state of the microcontroller"? – Clifford Jun 25 '21 at 18:52
  • I just wasn't sure if it is reliable to use them for the purpose of storing information permanently. By the "power state of the microcontroller" i mean the information that the microcontroller has been shut down or started up properly. So, during each startup and shutdown this information should be written to the option bytes. – lukas Jun 28 '21 at 16:15

1 Answers1

0

Can these 2 bytes be used for permanently and reliably storing information (e.g. the power state of the microcontroller) after the power supply of the microcontroller has been cut off?

Yes, just like flash.

KamilCuk
  • 120,984
  • 8
  • 59
  • 111