cancel
Showing results for 
Search instead for 
Did you mean: 

EEPROM 24C1024 read operation

NeevMehta
Associate II

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

2 REPLIES 2
KnarfB
Principal III

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

NeevMehta
Associate II

@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