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

TWI Error NRF_TWI_ERROR_ADDRESS_NACK

Hi guys,

I am trying to interface nrf52832 with PMIC(BQ25121). I have earlier interfaced PMIC with nrf52832 successfully, and I am using the same code. However this time, I am getting NRF_TWI_ERROR_ADDRESS_NACK error.

I have looked over the error, and verified that my pin mappings are correct.

I could check for the scl/sda voltage levels in logic analyser, however I can't take scl/sda lines, as mine is a custom board.

Could anyone suggest any other possible causes and means to rectify this error....

Parents
  • Hi Sigurd,

    I am not trying to read or write any specific register.I get this error at the starting itself, when I try to initialize the I2C.

    The twi_scanner example is in SDK14 I guess. I am using SDK11.

    One thing I observed is that, when I interface using the peripheral code, its working fine, whereas when I port the same code to ble code, it gives me this error.

Reply
  • Hi Sigurd,

    I am not trying to read or write any specific register.I get this error at the starting itself, when I try to initialize the I2C.

    The twi_scanner example is in SDK14 I guess. I am using SDK11.

    One thing I observed is that, when I interface using the peripheral code, its working fine, whereas when I port the same code to ble code, it gives me this error.

Children
No Data
Related