cancel
Showing results for 
Search instead for 
Did you mean: 

Use STM32F4 flash for non-volatile data storage (eeprom)

syedhashmiraza
Associate II

hello i am using stm32f429i-disc1 microcontroller in this how to generate flash code (eeprom)

22 REPLIES 22
syedhashmiraza
Associate II

(duplicate thread - merged)

 

hello i am using stm32f429i-disc1 microcontroller i want flash code (eeprom) for storing biomatric data

You mean you want to use the Flash for non-volatile data storage - "emulating" EEPROM?

For that, ST provide the STSW-STM32066 software pack, EEPROM emulation in STM32F40x/STM32F41x microcontrollers:

https://www.st.com/en/embedded-software/stsw-stm32066.html

See Application Note AN3969EEPROM emulation in STM32F40x/STM32F41x microcontrollers for details:

https://www.st.com/en/embedded-software/stsw-stm32066.html#documentation

 

It may not exactly suit your requirements, but it does show how to use the STM32F4 Flash for data storage.

With that knowledge, you could adapt to your own needs; eg, see:
https://community.st.com/t5/stm32-mcus-embedded-software/eeprom-emulation-virtual-addresses/m-p/675964/highlight/true#M47888

and follow the link.

 

PS:

 


@syedhashmiraza wrote:

for storing biometric data


The nature of the data really makes no difference - it's all just data !

yes i want to store data in Flash for non-volatile data storage - "emulating" EEPROM i want one refrernce or example code for stm32f429i-disc1


@syedhashmiraza wrote:

yes i want to store data in Flash for non-volatile data storage


I've updated the title to make that clear.


@syedhashmiraza wrote:

 i want one reference or example code for stm32f429i-disc1


You can use the STSW-STM32066  as mentioned previously.

"I am downloading, but it is not downloading."

is this software work for stm32f429i-disc1?

Give more details.

ST do have trouble with their web servers from time-to-time ...

@SofLit 

syedhashmiraza
Associate II

is STSW-STM32066  code work for stm32f4219i-disc1?


@syedhashmiraza wrote:

is this software work for stm32f429i-disc1?


It just uses the internal flash; no reliance on any external resources - so should work on any target.

But this looks like it:

https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F429I-Discovery/Applications/EEPROM/EEPROM_Emulation