Skip to main content
DTimb
Visitor II
May 22, 2019
Question

STM32L052C8 I2C Communication issue

  • May 22, 2019
  • 0 replies
  • 482 views

We are interface AT24C512 EEPROM with STM32L052C8 but there are problem facing in i2c communication. we are using STMCubeMx for generate i2c library.

here, STM32L052C8 as Master and AT24C512 EEPROM as a Slave.

we are calling I2c Function HAL_I2C_Mem_Write(&hi2c1, 0x68<<1, MemoryAddress, Size, data, data_size, Timeout);

HAL_I2C_Mem_Read(&hi2c1, 0x68<<1, MemoryAddress, data, data_size, Timeout);

but this functions are not working for use. please suggest some solutions. how to communicate with EEPROM. just we want to read from eeprom and write data into eeprom.

This topic has been closed for replies.