Associate III
July 12, 2021
Question
I2C protocol with STM32F303CB to interface EEPROM (AT24C512)
- July 12, 2021
- 1 reply
- 2039 views
Hi,
I am using the STM32F303CB microcontroller and STM32CubeIDE (1.6.1) to write data in EEPROM - AT24C512 and read respectively.
I haven't used HAL libraries, I Wrote I2C_Init - To initialize I2C (Fast Mode 400 KHz), I2C Write and Read Functions.
Sometimes I see invalid data when read from EEPROM. I couldn't understand what went wrong (Initializing I2C, write and read).
Please help me to find where I went wrong.
Respective functions were attached.
Thanking you,
Vinod Kumar.
