Skip to main content
tux
Associate
September 13, 2015
Question

EEPROM emulation in STM32F103 (using CoIDE)

  • September 13, 2015
  • 1 reply
  • 720 views
Posted on September 13, 2015 at 16:52

Hello World!0690X0000060MnKQAU.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 AN2594

http://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

#stm32-eeprom-emulation-flash
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
September 14, 2015
Posted on September 14, 2015 at 17:23

Should it matter what IDE is compiling the C code?

What does 'can't read it' actually mean? Do the wrong values come back? Do they look to be 0xFFFF, what exactly. Support your questions with examples of what gets written, what gets read back, and what's in the FLASH memory of the part behind the area being used for the EEPROM emulation?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..