2024-07-24 11:17 PM
When i try to interface Nucleo-L552ZE-Q with 24C1024 EEPROM i am unable to read data from it.
#define EEPROM_ADDR 0xA0
#define PAGE_SIZE 64
#define PAGE_NUM 512
I have attached the SS of the code.
Here when we get into Read gas function it gets stuck in I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) function of HAL_I2C_Mem_Read function.
Schematic of EEPROM interfaced is also shown.
Please suggest a way out.
#EEPROM #STM32 #STMICROELECTRONICS
2024-07-24 11:31 PM
Does the I2C connection work at the electrical level?
Does the EEPROM ever acknowledge any I2C request?
Check with a scope or cheap LA.
Pull-Up Rs?
(Low) Speed?
hth
KnarfB
2024-07-24 11:35 PM
@KnarfB i don't think it acknowledge any I2c request because when Transmit and Receive commands are fired the results are same
Speed is 400Khz
External pull up is not used.
Thanks
Nirav Mehta
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.