nrf5340dk - undefined reference to `__device_dts_ord_119' when device is uart1

I have trouble compiling when using the uart1 device on nrf5340dk with ncs 2.0.2. 

I took the uart example program from Developer Academy. It compiles fine with the original uart0 driver.

const struct device *uart= DEVICE_DT_GET(DT_NODELABEL(uart0));

but when I change it to:

const struct device *uart= DEVICE_DT_GET(DT_NODELABEL(uart1));

I get this error when compiling:

/home/k/bin/zephyr-sdk-0.15.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd: 
app/libapp.a(main.c.obj):/home/k/src/nrf_uart_eg/src/main.c:33: undefined reference to `__device_dts_ord_119'

I get the same error after adding this to prj.conf:

CONFIG_NRFX_UARTE1=y

Thanks in advance,

Jan Erik

Parents Reply Children
No Data
Related