2189037_en-US

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

2189037_en-US

2189037_en-US

I2C receive error

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.


Re: I2C receive error

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

标记 (1)
无评分
版本历史
最后更新:
‎11-20-2025 10:34 AM
更新人: