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

overrun error when receiving data from UARTE

Hi, 

I have problem with using nrf_serial.h, I am receiving data from Ublox GPS, baud rate = 9600, no flow control as we dont have enough IO pins.

Device is nrf52840 with SDK 16.0. I am using SERIAL_MODE_DMA, SERIAL_BUFF_RX_SIZE = 128, SERIAL_FIFO_RX_SIZE = 4096.

I am constantly getting NRF_SERIAL_EVENT_DRV_ERR events (overrun) even if fifo is empty (see picture below). If i get NRF_SERIAL_EVENT_RX_DATA event I set a flag and call nrf_serial_read in task as i dont want to spend too much time in IRQ.

Related