cancel
Showing results for 
Search instead for 
Did you mean: 

Store user data in STM32 Flash or Rom

cenakhoa
Associate
Posted on August 12, 2013 at 08:10

Hello everyone, I am newbie in this forum so please forgive me for any noob questions. My application requires to save 4 double variables offline for next time usage, I think my data is too small to make us use a SD card or an USB flash drive. Are there any ways to write my data on STM32f4 MCU flash or rom. Please give me some examples if any. Thank you very much.

#rom #flash
1 REPLY 1
Posted on August 12, 2013 at 14:04

The ROM isn't writable, perhaps if you want something that is permanent you could use OTP (One Time Programmable)?

For FLASH, have you reviewed STM32F4xx_DSP_StdPeriph_Lib_V1.1.0\Project\STM32F4xx_StdPeriph_Examples\FLASH\FLASH_Program

Given the size of the various flash sectors you might want to review how you place your project so you can use the 16 KB sectors, rather than the 128 KB ones, which take a very long time to erase. You must have erased space you hope to write too.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..