cancel
Showing results for 
Search instead for 
Did you mean: 

Store values in internal flash

GauravK
Associate III

Can variable values be stored in some fixed addresses of internal flash and retrieved from them after reset? 

is there any example for same.

1 ACCEPTED SOLUTION

Accepted Solutions
4 REPLIES 4
Uwe Bonnes
Principal II

You can write to erased memory cells. This must happen in chunks, e.g. 256 bits on H7 and down to single bytes on some older families. If the retrieved value needs to be reporgrammed later, look for EPROM emulation.

Andrew Neil
Evangelist III

@Uwe Bonnes wrote:

You can write to erased memory cells. 


@GauravK for more on this, see:

https://community.st.com/t5/stm32-mcus-products/flash-write-versus-erase-cycles/m-p/665631/highlight/true#M241948

and follow the link.

I will be checking and get back if needed