Dear Nordic Support Team,
I wanted to configure the nRF52840 dongle as radio co-processor. For that I wanted to build and flash the Thread: Co-processor sample in nRF52840 dongle. But when I tried to build the sample I am getting the following error.
Host platform: Mac OS
Zephyr version: 0.14.1
NCS Version: V2.1.0
Board: nrf52840dongle_nrf52840
-- Application: /Users/das/sdk-nrf/samples/openthread/coprocessor -- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter -- Cache files will be written to: /Users/das/Library/Caches/zephyr -- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf52840dongle_nrf52840 -- Found host-tools: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk) -- Found dtc: /opt/nordic/ncs/toolchains/v2.1.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found toolchain: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk) -- Found BOARD.dts: /opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts -- Found devicetree overlay: usb.overlay -- Generated zephyr.dts: /Users/das/sdk-nrf/samples/openthread/coprocessor/build/zephyr/zephyr.dts -- Generated devicetree_unfixed.h: /Users/das/sdk-nrf/samples/openthread/coprocessor/build/zephyr/include/generated/devicetree_unfixed.h -- Generated device_extern.h: /Users/das/sdk-nrf/samples/openthread/coprocessor/build/zephyr/include/generated/device_extern.h -- Including generated dts.cmake file: /Users/das/sdk-nrf/samples/openthread/coprocessor/build/zephyr/dts.cmake Parsing /Users/das/sdk-nrf/samples/openthread/coprocessor/Kconfig Loaded configuration '/opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840_defconfig' Merged configuration '/Users/das/sdk-nrf/samples/openthread/coprocessor/prj.conf' Merged configuration '/Users/das/sdk-nrf/samples/openthread/coprocessor/overlay-usb.conf' Configuration saved to '/Users/das/sdk-nrf/samples/openthread/coprocessor/build/zephyr/.config' Kconfig header saved to '/Users/das/sdk-nrf/samples/openthread/coprocessor/build/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -- OpenThread Source Directory: /opt/nordic/ncs/v2.1.0/modules/lib/openthread -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Searching 16 bit integer - Using unsigned short -- Check if the system is big endian - little endian -- Package Name: OPENTHREAD -- Setting default package version: thread-reference-20200818-ncs1-rc3-764-g0d19f9112 -- Package Version: thread-reference-20200818-ncs1-rc3-764-g0d19f9112
In file included from /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/toolchain/gcc.h:88, from /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/toolchain.h:50, from /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/devicetree/zephyr.h:15, from /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/devicetree.h:3101, from /opt/nordic/ncs/v2.1.0/zephyr/modules/hal_nordic/nrfx/nrfx_config.h:10, from /opt/nordic/ncs/v2.1.0/modules/hal/nordic/nrfx/nrfx.h:37, from /opt/nordic/ncs/v2.1.0/modules/hal/nordic/nrfx/hal/nrf_radio.h:37, from /opt/nordic/ncs/v2.1.0/nrfxlib/nrf_802154/driver/include/nrf_802154_types.h:44, from /opt/nordic/ncs/v2.1.0/nrfxlib/nrf_802154/driver/include/nrf_802154.h:48, from /Users/das/sdk-nrf/samples/openthread/coprocessor/src/nrf_802154_radio_wrapper.c:7: /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/device.h:96:39: error: '__device_dts_ord_DT_CHOSEN_zephyr_ieee802154_ORD' undeclared here (not in a function) 96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name) | ^~~~~~~~~ /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/toolchain/common.h:132:26: note: in definition of macro '_DO_CONCAT' 132 | #define _DO_CONCAT(x, y) x ## y | ^ /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/device.h:96:31: note: in expansion of macro '_CONCAT' 96 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name) | ^~~~~~~ /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/device.h:276:37: note: in expansion of macro 'DEVICE_NAME_GET' 276 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id)) | ^~~~~~~~~~~~~~~ /opt/nordic/ncs/v2.1.0/zephyr/include/zephyr/device.h:296:34: note: in expansion of macro 'DEVICE_DT_NAME_GET' 296 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id)) | ^~~~~~~~~~~~~~~~~~ /Users/das/sdk-nrf/samples/openthread/coprocessor/src/nrf_802154_radio_wrapper.c:12:2: note: in expansion of macro 'DEVICE_DT_GET' 12 | DEVICE_DT_GET(DT_CHOSEN(zephyr_ieee802154));
Did I miss something to consider in the prj.conf in order to build for nRF52840 dongle.