Hello! I have a serial device (RN8209 power meter) which is connected by UART to a nRF52832 with 4800 Baud. I am using SDK17 nrfx UARTE to access it, but I have observed, that sometimes nrfx_uarte_rx() hangs. It hangs in:
modules/nrfx/drivers/src/nrfx_uarte.c:505
} while ((!endrx) && (!rxto) && (!error));
Interestingly I can avoid hanging the UART by placing a nrf_delay_us(100); right after the call to nrfx_uarte_rx();
Apart from the initialization (which works fine), the communication to the device is mostly: TX 1 byte, RX 2-5 bytes and repeated. It looks like the second time I do that, the RX hangs. Any ideas?