Skip to main content
JAbra
Associate II
May 5, 2020
Question

Simple way of storing data in non-volatile memory

  • May 5, 2020
  • 2 replies
  • 1398 views

I'm using the STM32H747 and is interested in storing some variables containing configuration data even after reset.

Is there a simple way of doing this?

I basically would like to map a variable to be stored in SRAM or EEPROM instead of RAM.

Best regards

Johan

This topic has been closed for replies.

2 replies

Uwe Bonnes
Chief
May 5, 2020

If you do not require the data to survive a power cycle, simple leave in in RAM but do not initialize is when booting. If the variable is to survive a power cycle, put write it some protocolize way into one flash sector. there are examples to do so out there.

JAbra
JAbraAuthor
Associate II
May 6, 2020

Since it's configuration data which the user don't want to rewrite after every power cycle, it need to survive a power cycle.