There are much errors, but all of that seem to be simulaly caused by the no availability of the NRFX_*_ENABLED definition in sdk_config.h.
MDK Keil uVision V5.28.0.0
nRF5 SDK v16.0.0
#define NRFX_UARTE_ENABLED 1
compiling nrf_log_backend_uart.c...
..\..\..\..\..\nRF_SDK16\integration\nrfx\legacy\nrf_drv_uart.h(122): error: #20: identifier "nrf_uarte_baudrate_t" is undefined
..\..\..\..\..\nRF_SDK16\integration\nrfx\legacy\nrf_drv_uart.h(127): error: #20: identifier "nrf_uarte_error_mask_t" is undefined
..\..\..\..\..\nRF_SDK16\integration\nrfx\legacy\nrf_drv_uart.h(130): error: #20: identifier "nrf_uarte_hwfc_t" is undefined
..\..\..\..\..\nRF_SDK16\integration\nrfx\legacy\nrf_drv_uart.h(133): error: #20: identifier "nrf_uarte_parity_t" is undefined
..\..\..\..\..\nRF_SDK16\integration\nrfx\legacy\nrf_drv_uart.h(134): error: #20: identifier "nrf_uarte_task_t" is undefined
..\..\..\..\..\nRF_SDK16\integration\nrfx\legacy\nrf_drv_uart.h(135): error: #20: identifier "nrf_uarte_event_t" is undefined
#include <hal/nrf_uarte.h>
#define NRF_DRV_UART_WITH_UARTE
#endif
#if defined(UART_PRESENT) && NRFX_CHECK(NRFX_UART_ENABLED)
#define NRF_DRV_UART_WITH_UART
#endif
#include <nrfx_uarte.h>
#define NRF_DRV_UART_CREATE_UARTE(id) \
.uarte = NRFX_UARTE_INSTANCE(id),
#else
In another case, defined in sdk_config.h,
#define LPCOMP_ENABLED 0
#define NRFX_LPCOMP_ENABLED 1
#if defined(LPCOMP_ENABLED)
#undef NRFX_LPCOMP_ENABLED
#define NRFX_LPCOMP_ENABLED LPCOMP_ENABLED
#if NRFX_CHECK(NRFX_LPCOMP_ENABLED)
#include <nrfx_lpcomp.h>
#include "prs/nrfx_prs.h"
…
Why is NRFX_*_ENABLED not available, what should I check to solve this phenomenon?