nrf_drv_twi_tx function, and the device resets probably because of WDT. Shouldn't the function return timeout?Hello,
There is no timeout built in the hardware or driver, so this must be handled by the application if this is the case. That said though, I have a "hunch" that you are also missing the pull-up resistors here, which will be interpret as a "clock streching", which is a wait state on the twi bus, and thereby it will not return the NACK that should occur when there are no devices on the bus. So make sure that there are pull up resistors.
Kenneth
You connect VDD of the sensor to a VDD pin on the nRF52-DK, and GND of the sensor to GND on the DK. You can find several pins are labeled VDD and GND. If you worry that there is no sensor attached then you can for instance read the TWI pins first to check if they are high or low. If they are low then it means sensor is not attached, so executing a twi transfer is not a good idea.
Kenneth