Hello,
I am working on TWI master application on a nRF51 board, with a sensor associated.
I have often a problem while the reception sequence.
My application:
-> nrf_drv_twi_tx(adr_reg, no_stop)
-> nrf_drv_twi_rx(2 bytes)
So, I want to do a tx message with address register to read two bytes. I managed to have these two bytes sometimes. I check it with a scope.
But, for an unknown reason, I have often an EVENTS_STOPPED at the end of the first byte read. I even can't see all the 8 clock pulses (7 clock pulses often).
This EVENTS_STOPPED break the sequence for an unknow reason. ERROR_SRC is equal to 0 in debug.
I see that the sensor acknowledge each times while it is needed.
SDK 12.3.0
Have you an idea of the reason of this problem?
Thanks.