Skip to main content
Graduate II
March 3, 2024
Solved

Writing User data to memory

  • March 3, 2024
  • 1 reply
  • 1222 views

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?

 

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    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

    1 reply

    Graduate II
    March 3, 2024

    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