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)!

743件の閲覧回数
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 返信

709件の閲覧回数
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 件の賞賛