How to solve ERROR 33282 [NRF_ERROR_DRV_TWI_ERR_DNACK] ?

Hello everyone,

I followed the guide from this site to connect an Adafruit PN532 to an NRF52840

and tried running the adafruit_tag_reader example from the SDK.

However, I encountered the following error

and haven’t been able to resolve it.

Does anyone know how to fix this?

  • Hi

    Have you done any debugging at all to see what exactly is failing and returning at main.c line 396? Also, please share what SDK version you're working on, and when exactly this error occurs? Does it occur during startup or when you do something on the application side like reading an NFC tag?

    Best regards,

    Simon

  • Sorry for the late reply.
    My Segger version is ARM 7.32a, and the SDK version I'm using is 17.1.0.
    The error occurs when I run the adafruit_pn532_init function.
    This function contains several sub-functions like i2c_create, pn532_pin_setup, and pn532_firmware_version_get,
    but I'm not sure exactly where the error is happening.

  • Hi

    SDK v17.1.0 has only been tested and verified with SES 5.42a, so that's the version of SEGGER Embedded Studios we recommend using. So you have no logging from within adafruit_pn532 here? How have you connected the Tag reader to your DK exactly? I get a similar error on my end if I run the DK just without connecting a reader, so can you confirm the tag reader shield is connected to the nRF52840 DK?

    Also, have you made any changes, as the line alignment doesn't really seem to match my instance of the same example project.

    Best regards,

    Simon

Related