libuarte rx start after stop

After executing nrf_libuarte_drv_rx_stop(), nrf_libuarte_drv_rx_start() will produce an error.

In nrf_libuarte_drv_rx_start() this line in nrf_libuarte_drv.c (Line 625 in SDK 17.1.0) tries to enable the timer but fails:

nrfx_timer_enable(&p_libuarte->timer);

What would be the preferred way of starting and stopping rx, if not using nrf_libuarte_drv_rx_stop() and nrf_libuarte_drv_rx_start()? My goal is put the device to sleep when there are no more RX bytes to receive.

Parents Reply Children
Related