Buillding error when trying to build UART sample from SDK

Hello everyone,

I am working with the nRF5340 DK as well as the SDK version 2.2.0.

As I would like to implement a UART communication in my project, I tried to run a UART sample from the SKD to get to know hot it works.

The sample I tried to build was the stm32 under the path ncs\v2.2.0\zephyr\samples\drivers\uart

However, when adding a uild configuration (Board: nrf5340dk_nrf5340cpuapp) I get the building error:

ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' --build 'c:\ncs\uart_1\build'

with the DEVICE_DT_GET part of 

const struct device *const sl_uart1 = DEVICE_DT_GET(UART_NODE1);
const struct device *const sl_uart2 = DEVICE_DT_GET(UART_NODE2);
underlined in red.
What is the problem here?
Thenks in advance!
Paul
Related