cancel
Showing results for 
Search instead for 
Did you mean: 

Writing User data to memory

Nico3
Senior

I am trying to implement application with password access and change option. Please suggest a way to store password/user data in flash memory. Are there any APIs or applicaiton note for more information?

 

1 ACCEPTED SOLUTION

Accepted Solutions

The regular FLASH API for erasing and writing work as normal. Look for those examples.

On the F4 you might want to partition the memory up so you can uses some of the smaller 16KB, 32KB and 64KB sectors rather than the 128KB ones. You might consider splitting your app into pieces, so a loader can live at 0x08000000 where the MCU starts execution. The core app can reside at 0x08020000. Or you can create a hole in the linker script so the vectors can live at the front of memory, and the rest resides deeper.

You can put smaller things int BKPRAM / NVRAM

There's also EEPROM Emulation, but it would be better just to understand how to store, manage and retrieve data from FLASH

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

The regular FLASH API for erasing and writing work as normal. Look for those examples.

On the F4 you might want to partition the memory up so you can uses some of the smaller 16KB, 32KB and 64KB sectors rather than the 128KB ones. You might consider splitting your app into pieces, so a loader can live at 0x08000000 where the MCU starts execution. The core app can reside at 0x08020000. Or you can create a hole in the linker script so the vectors can live at the front of memory, and the rest resides deeper.

You can put smaller things int BKPRAM / NVRAM

There's also EEPROM Emulation, but it would be better just to understand how to store, manage and retrieve data from FLASH

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..