LPC5411x I2C issue

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

LPC5411x I2C issue

546 Views
domneck
Contributor II

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.

---

Labels (1)
Tags (1)
0 Kudos
1 Reply

443 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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

0 Kudos