I2C receive error

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

I2C receive error

356 Views
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 Kudos
Reply
1 Reply

314 Views
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 Kudos
Reply