Hello, I am currently using the TWI in non-blocking mode, however I frequently run into the issue where the code gets stuck on nrf_drv_twi_tx. function at the return result statement. I can't step in or out of the code. I have also encountered this intermittently - It happens less when I step through the code, and happens immediately if I let the code run.
The circuit is guaranteed to work because it has been flashed with firmware and that can retrieve value from the sensor I'm using, so I'm sure there is something wrong with how I understand the twi code.
My question is why my code works when I step through it, but fails when I let it run?