2024-03-03 09:01 AM - edited 2024-03-03 09:03 AM
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?
Solved! Go to Solution.
2024-03-03 10:42 AM
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
2024-03-03 10:42 AM
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