cancel
Showing results for 
Search instead for 
Did you mean: 

HOW to interface and read/write data external EEPROM 24c02 to STM32f0

kalpeshpatil102
Associate III
Posted on December 25, 2016 at 09:49

hi, i want to read and write data on EEPROM . This  eeprom interface with stm32f0. for these i used I2C bus.

there are any library or tutorial that can give how to read and write and interface ?

thank you

3 REPLIES 3
mohit rai
Associate II
Posted on December 25, 2016 at 11:02

hello, first of all, you should study about i2c how it works then read-write from EEPROM will be easy. Read reference manual.

Seb
ST Employee
Posted on December 25, 2016 at 11:05

For EEPROM I2C bus based, maybe this will help

https://community.st.com/0D50X00009XkW1qSAF

It's based on I2C generated by GPIO and SW from this note:

https://community.st.com/0D50X00009XkW1mSAF

Hope this helps and suggestions welcome.

Good luck!

Imen.D
ST Employee
Posted on December 26, 2016 at 14:50

Hello,

You can found a full set of running examples with an I2C EEPROM within the

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef0.html

firmware package which provides running applications showing how to use the I2C: 

STM32Cube_FW_F0_V1.7.0\Projects\STM32072B_EVAL\Examples\I2C\I2C_EEPROM

This Application note 

http://www.st.com/content/ccc/resource/technical/document/application_note/2e/d4/65/6b/87/dd/40/25/DM00049914.pdf/files/DM00049914.pdf/jcr:content/translations/en.DM00049914.pdf

 may help you about EEPROM emulation in STM32F0xx microcontrollers.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen