I2C receive error

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

I2C receive error

354 次查看
huyle03
Contributor I

Hello everyone,

I have an error with I2C on S32K344 EVB board.  I don't know if the configuration and the code are wrong or missing something. The first frame address + 1 bit write is OK (ACK received). The next frame I sent is the data 0x00, I also got ACK from slave. However, the third frame is reading from slave but the API function return status "LPI2C_IP_BUSY_STATUS". Here are some captures of the problem . Thanks for your help.

 

0 项奖励
回复
1 回复

312 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

you are checking wrong return status of Send function. Non-blocking Send returns LPI2C_IP_SUCCESS_STATUS, if transfer was started properly. In your case it does not go to do-while loop to test transfer status. So try  
 
PetrS_0-1761044916821.png

BR, Petr

0 项奖励
回复