Skip to main content
Visitor II
July 25, 2024
Question

EEPROM 24C1024 read operation

  • July 25, 2024
  • 2 replies
  • 853 views

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.

Screenshot (16).pngScreenshot (17).png

NeevMehta_0-1721888133959.png

Schematic of EEPROM interfaced is also shown.

Please suggest a way out.

 

#EEPROM #STM32 #STMICROELECTRONICS

    This topic has been closed for replies.

    2 replies

    Super User
    July 25, 2024

    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

    NeevMehtaAuthor
    Visitor II
    July 25, 2024

    @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