Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bug? Wrong mapping of UARTE->UART framing error mask

Hi,

I just happened to stumble across these lines (123 to 126) in nrf_drv_uart.h:

#define NRF_UART_ERROR_OVERRUN_MASK NRF_UARTE_ERROR_OVERRUN_MASK
#define NRF_UART_ERROR_PARITY_MASK  NRF_UARTE_ERROR_PARITY_MASK
#define NRF_UART_ERROR_FRAMING_MASK NRF_UARTE_ERROR_PARITY_MASK
#define NRF_UART_ERROR_BREAK_MASK   NRF_UARTE_ERROR_BREAK_MASK

And I noticed that on line 125 NRF_UART_ERROR_FRAMING_MASK is mapped to NRF_UARTE_ERROR_PARITY_MASK.

I assume this is a mistake / bug. I noticed it in SDK version 15.3, but it is also present in 17.02.

Simon

Related