nrf_drv_twi_rx error 3

I'm trying to get the device ID of the lis3dh accelerometer on a Thingy:52

nrf_drv_twi_tx returns 3 as an error. This means NRF_ERROR_INTERNAL  --> "If an error was detected by hardware." 

I doubt that my hardware is broken... 

I used a driver template: https://github.com/STMicroelectronics/lis3dh/tree/6a82fc90cfb688686d0b344c82184c33ee844697

My code is included in this post. Line 361 is where I'm trying to get the device ID. 

Greetings

Willem

Related