Skip to main content
JShah.4
Associate
December 12, 2020
Question

Stm32F103c8t6 to 24c256 Interfacing

  • December 12, 2020
  • 1 reply
  • 1218 views

I am a newbie to stm32 need help in interfacing STM32F103c8t6 to an external Eeprom 24c256, cannot get any example code or library online. can any one help how to write and read data to eeprom?

i have tried Hal_i2c_mem_transmint function but no luck

This topic has been closed for replies.

1 reply

Vangelis Fortounas
Associate II
December 12, 2020

Hello

Do you use pullup resistors on SCL and SDA lines?

JShah.4
JShah.4Author
Associate
December 12, 2020

Yes i have done that but no luck,

Vangelis Fortounas
Associate II
December 12, 2020

the device address must be shifted by 1 bit (0x50<<1 suposed that A0 and A1 are grounded or floated) to use it in function Hal_i2c_mem_transmint .. and WP pin must be grounded