2019-05-22 05:25 AM
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.