DTM example build fails using ncs 2.4.1

I'm trying to build the DTM sample app on ncs 2.4.1 on nRF5340 dk, but I get the following errors

c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(main.c.obj): in function `main':
C:\ncs\v2.4.1\nrf\samples\bluetooth\direct_test_mode\src\main.c:73: undefined reference to `__device_dts_ord_65'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' --build 'c:\ncs\v2.4.1\nrf\samples\bluetooth\direct_test_mode\build'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.