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

Changing TWI timeout (HW_TIMEOUT) inside 'nrfx_twi.c'

We use the nrf52832 in twi-master mode. The connected slave sometimes needs longer to respond than the default configured TWI timeout.

The timeout is defined inside the nrfx_twi.c file as (nrf52-sdk-15.3.0):

#define HW_TIMEOUT      100000

We use the softdevice: s132_nrf52_6.1.1_softdevice

Is it allowed to increase the timeout without disturbing the soft device or other parts of internal drivers etc.?

We would plan to increase it by ten times:

#define HW_TIMEOUT      1000000
 
Parents Reply Children
No Data
Related