This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Receiving NACK from the slave device after sending the slave address

Hi Nordic,

I have been trying to communicate with KX 124-1051 using IIC in nRF52832. I am getting NACK from slave every time i send the device address. I checked all the corner issues causing the NACK. Using the same board i tried with other sensors changing the slave address, i am able to read their chip ID. But its been failing with only this(KX 124-1051) sensor.Can anyone help me with this?

Thanks in Advance,

Nirupama.T

Parents
  • Are you sure that the slave is actively sending a NACK?

    Remember that a NACK will be seen if there is no slave connected at all ...

    Also, a NAK will be seen if the Slave simply ignores the address - which would be the case if you have the wrong address ...

    Have you looked at the I2C lines with a scope or analyser ?

    Have you tried the TWI Scanner ?

Reply
  • Are you sure that the slave is actively sending a NACK?

    Remember that a NACK will be seen if there is no slave connected at all ...

    Also, a NAK will be seen if the Slave simply ignores the address - which would be the case if you have the wrong address ...

    Have you looked at the I2C lines with a scope or analyser ?

    Have you tried the TWI Scanner ?

Children
Related