Hello,
I am using LPCXpresso5411x eval kit for my project and trying to interface I2C based sensor.
I am using MCUXpresso SDK example codes and I have just modified the slave address related stuffs. I2C Start sequence is coming properly but when I try to write byte send I am getting 'kStatus_I2C_Nak' error code and in I2C status register bit MSTSTATE is 3.
---
Hi customer,
Check the I2C bus wave, then check whether the I2C slave(sensor) give ACK?
If the slave didn't ACK, it means the I2C baudrate or the wave or the data didn't meet the slave demand, you also need to check the slave datasheet.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------