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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

998 次查看
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 项奖励
回复
1 回复

964 次查看
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 项奖励
回复