Hi, I'm using the UART to talk to a radio module with sdk 12.1 on nrf52.
I'm seeing frequent UART errors, where the event handler is called with event type APP_UART_COMMUNICATION_ERROR. Debugging in the UART0_IRQHandler() with this code :
if(p_event->type == NRF_DRV_UART_EVT_ERROR){
// Error trace
Trace_info("uart0_event_handler_t error n°0x%04lX \n", nrf_drv_uart_errorsrc_get(&uart0_inst));
}
The trace is :
uart0_event_handler_t error n°0x0000
I don't understand this error. When I look in nrf52_bitfields.h, it seems, I have no error :
/* Bit 0 : Overrun error */
#define UART_ERRORSRC_OVERRUN_Pos (0UL) /*!< Position of OVERRUN field. */
#define UART_ERRORSRC_OVERRUN_Msk (0x1UL << UART_ERRORSRC_OVERRUN_Pos) /*!< Bit mask of OVERRUN field. */
#define UART_ERRORSRC_OVERRUN_NotPresent (0UL) /*!< Read: error not present */
#define UART_ERRORSRC_OVERRUN_Present (1UL) /*!< Read: error present */
Is it possible to have an explanation about that?