I have a hardware with NRF52832 module and successfully used the example twi-scanner to locate my I2C peripheral. I copied these parts over:
My own code produces this error on the line APP_ERROR_CHECK(err_code); in m41t62_test:
<info> TWI: Transfer type: XFER_RX.
<info> TWI: Transfer buffers length: primary: 1, secondary: 0.
<warning> TWI: Function: nrfx_twi_xfer, error code: NRF_ERROR_INTERNAL.
<error> app: ERROR 3 [NRF_ERROR_INTERNAL] at ./driver/m41t62lc6f.c:68
PC at: 0x0002CA85
<error> app: End of error report
What might be a difference that causes this?