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

SDK 12.0.0 nrf_drv_uart compile error

Hi,

I think there's an error in SDK12's nrf_drv_uart, some code parts unconditionally use p_instance->reg.p_uart (eg. nrf_drv_uart_task_address_get, interrupts_enable) whereas its definition depends on UART enablement. Either the definition should be unconditional (at a first sight p_uart maps p_uarte correctly) or code should be conditional.

This result in build error with following settings

#define UART_ENABLED 1
#define UART_EASY_DMA_SUPPORT 1
#define UART_DEFAULT_CONFIG_HWFC 0
#define UART_DEFAULT_CONFIG_PARITY 0
#define UART_DEFAULT_CONFIG_BAUDRATE 30801920 // 115200
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
#define UART0_CONFIG_USE_EASY_DMA 1

Regards

Related