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

TWI recover from timeout

I am using the TWI module in master mode, with sdk 10. I purposely create an error situation, in which the TWI gets stuck and keeps returning NRF_ERROR_BUSY every time I try to initiate a transfer. How may the device recover from this block? I have tried uninit/init the TWI module, with no success.

Parents Reply
  • The problem only arises when The SDA/SCL lines are briefly forced to GND, not when left floating. I have ported everything to SDK 11 and performed the same test and the results are the same. When the lines are pulled to ground the module seems to stop working entirely. I have moved on from this test as its a very particular and weird event to occur.

    I have been able to confirm the TWI drivers from SDK 11 include a mechanism to report un acknowledge transfers.

Children
No Data
Related