AnsweredAssumed Answered

EEPROM emulation in STM32F103 (using CoIDE)

Question asked by sepehrian.mostafa on Sep 13, 2015
Latest reply on Sep 14, 2015 by Clive One

Hello World! icon_e_biggrin.gif

I need an EEPROM memory on my device and there is no I2C pin free to use AT24Cxx. So, i should use EEPROM Emulation (as said in AN2594http://www.st.com/web/en/catalog/tools/PF257846#).

I tried the example (from above link), writing on FLASH is OK, but i can't read it!!!

My code:

/* Unlock the Flash Program Erase controller */
FLASH_Unlock();
 
/* EEPROM Init */
EE_Init();
 
for (VarValue = 0; VarValue < 10; VarValue++)
  EE_WriteVariable(VirtAddVarTab[0], VarValue);
 
for (VarValue = 0; VarValue < 10; VarValue++)
  jCounter = EE_ReadVariable(VirtAddVarTab[0],&iCounter);

is there anyone used EEPROM Emulation via CoIDE on STM32F103?

tanx


Outcomes