cancel
Showing results for 
Search instead for 
Did you mean: 

Simple way of storing data in non-volatile memory

JAbra
Associate II

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

2 REPLIES 2
Uwe Bonnes
Principal III

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
Associate II

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