I have a problem when i use RT1052 I2C master to read fram(mb85rc64)!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I have a problem when i use RT1052 I2C master to read fram(mb85rc64)!

742 Views
littlecousin
Contributor II

Hi there,

When I used RT1052 I2C to debug FRAM, I found that I could not read more than 256 bytes of data at one time (but the write was successful), and when I read more than 256 bytes of data, the program stopped at while (0U!= (value & LPI2C_MRDR_RXEMPTY_MASK));(FSL.i2c. C Line 790), is this my program problem or an SDK driver problem?

code2.png

this is my read function!

code3.png

code stop place!

code error.png

0 Kudos
1 Reply

708 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @littlecousin ,

In section 46.3.2.1 Transmit and Command FIFO commands it mentions that the receive FIFO depth is 256 bytes. I will suggest partitioning your packet into 256 bytes.

Best Regards,

Alexis Andalon

0 Kudos