This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 UART RX stoped

Hi,

When we do the UART stress testing with serial_lte_modem sample, the slm will crash by sending AT commands with interval 100ms.

the debug log will show "<wrn> at_host: RX_STOPPED" and the RX_stop reason is UART_ERROR_FRAMING(4), after this event occurred, the UART RX will be no longer available, that means the host cannot communicate with nRF9160 anymore.

How to recover the UART RX in this condition? I tried below functions but still failed.

        err = uart_callback_set(uart_dev, uart_callback, NULL);
		buf_num = 1U;
		err = uart_rx_enable(uart_dev, &uart_rx_buf[0], 1, K_FOREVER);

Related