How to successfully build Thread coprocessor RCP for nrf5340?

I'm running into a similar issue to Case ID 304027 with trying to build the nRF Thread coprocessor project for the nRF5340. I'm able to compile the coprocessor project just fine for the nRF52840 and I can compile the CLI project for both the 52840 and 5340. But I keep getting errors when trying to build the coprocessor project for the 5340.

When I create a new project based on the nrf Openthread coprocess project, I don't see any overlays created for the 5340. So I add the overlays as you defined above. the cpuapp.overlay at the CMakeList level and the cpunet in the boards folder. I modified the compatible to the 5340 dk instead of the audio 5340 dk. In the Add Build Configuration I have the nrf5340dk_nrf5340_cpuapp selected, configuration set to prj.conf, no Kconfig fragments, and Extra CMake set to -DDTC_OVERLAY_FILE="nrf5340_dk_nrf5340_cpuapp.overlay".

I've tried this with both nRF v2.2.0 and v2.4.0.

This is what I get as a error from v2.2.0: (v2.4.0 errors after this)

[204/410] Building C object CMakeFiles/app.dir/src/nrf_802154_radio_wrapper.c.obj
../src/nrf_802154_radio_wrapper.c: In function 'nrf_802154_radio_wrapper_auto_ack_get':
c:\repos\Hub_3\nrf_coprocessor_2.2.0\src\nrf_802154_radio_wrapper.c:17:16: warning: implicit declaration of function 'nrf_802154_auto_ack_get'; did you mean 'nrf_802154_time_get'? [-Wimplicit-function-declaration]
   17 |         return nrf_802154_auto_ack_get();
      |                ^~~~~~~~~~~~~~~~~~~~~~~
      |                nrf_802154_time_get
../src/nrf_802154_radio_wrapper.c: In function 'nrf_802154_radio_wrapper_auto_ack_set':
c:\repos\Hub_3\nrf_coprocessor_2.2.0\src\nrf_802154_radio_wrapper.c:22:9: warning: implicit declaration of function 'nrf_802154_auto_ack_set'; did you mean 'nrf_802154_ack_data_set'? [-Wimplicit-function-declaration]
   22 |         nrf_802154_auto_ack_set(enabled);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         nrf_802154_ack_data_set
[316/410] Building C object modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj
FAILED: modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj
C:\ncs\v2.2.0\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF5340_XXAA_APPLICATION -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=1 -DNRF_802154_IE_WRITER_ENABLED=1 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES="" -DNRF_802154_PENDING_SHORT_ADDRESSES="" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DOPENTHREAD_CONFIG_LOG_LEVEL=1 -DOPENTHREAD_CONFIG_LOG_OUTPUT=OPENTHREAD_CONFIG_LOG_OUTPUT_APP -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-core-zephyr-config.h\" -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.2.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.2.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.2.0/zephyr/subsys/net/lib/openthread/platform -IC:/ncs/v2.2.0/zephyr/subsys/settings/include -IC:/ncs/v2.2.0/nrf/include -IC:/ncs/v2.2.0/nrf/tests/include -IC:/ncs/v2.2.0/zephyr/modules/openthread/platform/. -IC:/ncs/v2.2.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.2.0/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.2.0/modules/lib/open-amp/open-amp/lib/include -Imodules/openthread/build/etc/cmake -IC:/ncs/v2.2.0/modules/lib/openthread/etc/cmake -IC:/ncs/v2.2.0/nrfxlib/nrf_802154/serialization/include -IC:/ncs/v2.2.0/nrfxlib/nrf_802154/serialization/include/platform -IC:/ncs/v2.2.0/nrfxlib/nrf_802154/serialization/include/serialization -IC:/ncs/v2.2.0/nrfxlib/nrf_802154/serialization/include/host -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IC:/ncs/v2.2.0/nrfxlib/nrf_security/include -IC:/ncs/v2.2.0/nrfxlib/nrf_security/include/mbedtls -IC:/ncs/v2.2.0/nrfxlib/nrf_security/include/psa -IC:/ncs/v2.2.0/mbedtls/include -IC:/ncs/v2.2.0/mbedtls/include/mbedtls -IC:/ncs/v2.2.0/mbedtls/include/psa -IC:/ncs/v2.2.0/mbedtls/library -IC:/ncs/v2.2.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include -IC:/ncs/v2.2.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.2.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -IC:/ncs/v2.2.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.2.0/nrfxlib/crypto/nrf_oberon/include -isystem C:/ncs/v2.2.0/zephyr/subsys/cpp/include -isystem C:/ncs/v2.2.0/modules/lib/openthread/include -isystem C:/ncs/v2.2.0/modules/lib/openthread/examples/platforms -isystem C:/ncs/v2.2.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/repos/Hub_3/nrf_coprocessor_2.2.0/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/ncs/v2.2.0/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.2.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/repos/Hub_3/nrf_coprocessor_2.2.0=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.2.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.2.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj -MF modules\openthread\platform\CMakeFiles\openthread_platform.dir\uart.c.obj.d -o modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj -c C:/ncs/v2.2.0/zephyr/modules/openthread/platform/uart.c
In file included from C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain\gcc.h:88,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain.h:50,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\sys\cbprintf.h:13,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\logging\log_msg.h:11,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\logging\log_core.h:9,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\logging\log.h:11,
                 from C:\ncs\v2.2.0\zephyr\modules\openthread\platform\uart.c:10:
C:/ncs/v2.2.0/zephyr/modules/openthread/platform/uart.c: In function 'otPlatUartEnable':
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:83:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_ot_uart_ORD' undeclared (first use in this function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\modules\openthread\platform\uart.c:160:23: note: in expansion of macro 'DEVICE_DT_GET'
  160 |         ot_uart.dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_ot_uart));
      |                       ^~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:83:41: note: each undeclared identifier is reported only once for each function it appears in
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\modules\openthread\platform\uart.c:160:23: note: in expansion of macro 'DEVICE_DT_GET'
  160 |         ot_uart.dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_ot_uart));
      |                       ^~~~~~~~~~~~~
[324/410] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.2.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
FATAL ERROR: command exited with status 1: 'C:\ncs\v2.2.0\toolchains\v2.2.0\opt\bin\cmake.EXE' --build 'c:\repos\Hub_3\nrf_coprocessor_2.2.0\build'
ninja: build stopped: subcommand failed.

Error from v2.4.0:

[228/419] Building C object CMakeFiles/app.dir/src/nrf_802154_radio_wrapper.c.obj
../src/nrf_802154_radio_wrapper.c: In function 'nrf_802154_radio_wrapper_auto_ack_get':
c:\repos\Hub_3\nrf_coprocessor_2_4_0\src\nrf_802154_radio_wrapper.c:17:16: warning: implicit declaration of function 'nrf_802154_auto_ack_get'; did you mean 'nrf_802154_time_get'? [-Wimplicit-function-declaration]
   17 |         return nrf_802154_auto_ack_get();
      |                ^~~~~~~~~~~~~~~~~~~~~~~
      |                nrf_802154_time_get
../src/nrf_802154_radio_wrapper.c: In function 'nrf_802154_radio_wrapper_auto_ack_set':
c:\repos\Hub_3\nrf_coprocessor_2_4_0\src\nrf_802154_radio_wrapper.c:22:9: warning: implicit declaration of function 'nrf_802154_auto_ack_set'; did you mean 'nrf_802154_ack_data_set'? [-Wimplicit-function-declaration]
   22 |         nrf_802154_auto_ack_set(enabled);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         nrf_802154_ack_data_set
[313/419] Building C object modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj
FAILED: modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj
C:\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF5340_XXAA_APPLICATION -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_CARRIER_FUNCTIONS_ENABLED=0 -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=1 -DNRF_802154_IE_WRITER_ENABLED=1 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES="" -DNRF_802154_PENDING_SHORT_ADDRESSES="" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DOPENTHREAD_CONFIG_LOG_LEVEL=0 -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-core-zephyr-config.h\" -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.4.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.4.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.4.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.4.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.4.0/zephyr/subsys/settings/include -IC:/ncs/v2.4.0/nrf/include -IC:/ncs/v2.4.0/nrf/tests/include -IC:/ncs/v2.4.0/zephyr/modules/openthread/platform/. -IC:/ncs/v2.4.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.4.0/modules/hal/nordic/nrfx -IC:/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.4.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.4.0/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.4.0/modules/lib/open-amp/open-amp/lib/include -Imodules/openthread/build/etc/cmake -IC:/ncs/v2.4.0/modules/lib/openthread/etc/cmake -IC:/ncs/v2.4.0/nrfxlib/nrf_802154/serialization/include -IC:/ncs/v2.4.0/nrfxlib/nrf_802154/serialization/include/platform -IC:/ncs/v2.4.0/nrfxlib/nrf_802154/serialization/include/serialization -IC:/ncs/v2.4.0/nrfxlib/nrf_802154/serialization/include/host -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IC:/ncs/v2.4.0/nrfxlib/nrf_security/include -IC:/ncs/v2.4.0/nrfxlib/nrf_security/../crypto/nrf_oberon/core/include -IC:/ncs/v2.4.0/nrfxlib/nrf_security/../crypto/nrf_oberon/core/library -IC:/ncs/v2.4.0/modules/crypto/mbedtls/include -IC:/ncs/v2.4.0/modules/crypto/mbedtls/library -IC:/ncs/v2.4.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include -IC:/ncs/v2.4.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.4.0/nrfxlib/nrf_security/../crypto/nrf_oberon/core/oberon/drivers -IC:/ncs/v2.4.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.4.0/nrfxlib/crypto/nrf_oberon/include -isystem C:/ncs/v2.4.0/zephyr/lib/cpp/minimal/include -isystem C:/ncs/v2.4.0/modules/lib/openthread/include -isystem C:/ncs/v2.4.0/modules/lib/openthread/examples/platforms -isystem C:/ncs/v2.4.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/repos/Hub_3/nrf_coprocessor_2_4_0/build/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard --sysroot=C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.4.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/repos/Hub_3/nrf_coprocessor_2_4_0=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.4.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.4.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj -MF modules\openthread\platform\CMakeFiles\openthread_platform.dir\uart.c.obj.d -o modules/openthread/platform/CMakeFiles/openthread_platform.dir/uart.c.obj -c C:/ncs/v2.4.0/zephyr/modules/openthread/platform/uart.c
In file included from C:\ncs\v2.4.0\zephyr\include\zephyr\toolchain\gcc.h:92,
                 from C:\ncs\v2.4.0\zephyr\include\zephyr\toolchain.h:50,
                 from C:\ncs\v2.4.0\zephyr\include\zephyr\sys\cbprintf.h:13,
                 from C:\ncs\v2.4.0\zephyr\include\zephyr\logging\log_msg.h:11,
                 from C:\ncs\v2.4.0\zephyr\include\zephyr\logging\log_core.h:9,
                 from C:\ncs\v2.4.0\zephyr\include\zephyr\logging\log.h:11,
                 from C:\ncs\v2.4.0\zephyr\modules\openthread\platform\uart.c:10:
C:/ncs/v2.4.0/zephyr/modules/openthread/platform/uart.c: In function 'otPlatUartEnable':
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:84:41: error: '__device_dts_ord_DT_CHOSEN_zephyr_ot_uart_ORD' undeclared (first use in this function)
   84 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:84:33: note: in expansion of macro '_CONCAT'
   84 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:210:37: note: in expansion of macro 'DEVICE_NAME_GET'
  210 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:227:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  227 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.4.0\zephyr\modules\openthread\platform\uart.c:160:23: note: in expansion of macro 'DEVICE_DT_GET'
  160 |         ot_uart.dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_ot_uart));
      |                       ^~~~~~~~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:84:41: note: each undeclared identifier is reported only once for each function it appears in
   84 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:84:33: note: in expansion of macro '_CONCAT'
   84 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:210:37: note: in expansion of macro 'DEVICE_NAME_GET'
  210 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\ncs\v2.4.0\zephyr\include\zephyr\device.h:227:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  227 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.4.0\zephyr\modules\openthread\platform\uart.c:160:23: note: in expansion of macro 'DEVICE_DT_GET'
  160 |         ot_uart.dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_ot_uart));
      |                       ^~~~~~~~~~~~~
[321/419] Building C objFATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' --build 'c:\repos\Hub_3\nrf_coprocessor_2_4_0\build'
ect modules/openthread/platform/CMakeFiles/openthread_platform.dir/settings.c.obj
ninja: build stopped: subcommand failed.

Related