cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 with HAL driver and EEPROM emulation

jgiraud9
Associate II
Posted on February 12, 2015 at 16:48

Hello,

I am curently working on an application generated by the STM32cubeMX software. This application use the folowing HAL library's: tim,adc,dma,uart,gpio... I have to implement an erase and write non volatile memory fonctionality. At first I have used  the HAL_Flash lib but I can write the memory only one time. The application has to write multiple time in the memory with fixed data address.

I have found the AN4061wich is very interesting. I have downloaded the 

STSW-STM32117 exemple but this one doesn't use the HAL library. I can't run both HAL and non-HAL library at the same time.   Is anyone got a solution wich is not to re-code all my application with the non-HAL lib?  Thank's a lot!

  
2 REPLIES 2
Posted on February 12, 2015 at 17:22

The application has to write multiple time in the memory with fixed data address.

The EEPROM emulation doesn't make that less of a bad idea. Learn to use and manage the FLASH, it will be far less of a headache. Journal your writes so as to limit the erase cycles.

  

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jgiraud9
Associate II
Posted on February 12, 2015 at 17:45

Thank's Clive for the advice. 

I will work on that.