Compilation Error when building the openthread coprocessor for the nrf52840dongle (as per the "Developing Matter products with nRF Connect SDK" webinar)

Hi,

I have been following the webinar "Developing Matter products with nRF Connect SDK" and was successfully able to build the matter lock sample and flash to my nrf52840 development kit.

However, when building the openthread coprocessor for my nrf52840dongle I run into a compilation error in the build.

As per the instruction in the video (https://www.youtube.com/watch?v=kdMJQFDRoss&t=1000s) I used the following command in the "~/ncs/nrf/samples/openthread/coprocessor" directory

$ west build -b nrf52840dongle_nrf52840 -- -DOVERLAY_CONFIG="overlay-rcp.conf ../cli/overlay-thread_1_2.conf overlay-usb.conf"

However, the build fails with the following error:

device.h:81:39: error: '__device_dts_ord_DT_CHOSEN_zephyr_ot_uart_ORD' undeclared (first use in this function)
   81 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)

My Environment is:

  • development platform: linux ubunty
  • nvc/nrf version: 1.8.0-rc2

Any advice would be greatly appreciated as I am keen to learn more about Matter and the nRF52840.

Rgds

Oide Brett

Parents
  • Hi Oide,

    You need to use the command "west build -b nrf52840dongle_nrf52840 -- -DOVERLAY_CONFIG="overlay-rcp.conf ../cli/overlay-thread_1_2.conf overlay-usb.conf"  -DDTC_OVERLAY_FILE=usb.overlay"  with NCS1.8.0 as specified on NCS document Thread tools — nRF Connect SDK 1.7.99 documentation (nordicsemi.com)

    Here is the explanation from our OT expert:

    In old Zephyr, usb was configured using Kconfig options, but someone decided this is not how it should be done and it was partially rewritten to be configured in a device tree. When the upmerge happen those changes were pulled to NCS and since then additional device tree overlay is needed. Since our samples can work both over usb and uart (probably) we cannot enable it by default.
    Best regards,
    Charlie
Reply
  • Hi Oide,

    You need to use the command "west build -b nrf52840dongle_nrf52840 -- -DOVERLAY_CONFIG="overlay-rcp.conf ../cli/overlay-thread_1_2.conf overlay-usb.conf"  -DDTC_OVERLAY_FILE=usb.overlay"  with NCS1.8.0 as specified on NCS document Thread tools — nRF Connect SDK 1.7.99 documentation (nordicsemi.com)

    Here is the explanation from our OT expert:

    In old Zephyr, usb was configured using Kconfig options, but someone decided this is not how it should be done and it was partially rewritten to be configured in a device tree. When the upmerge happen those changes were pulled to NCS and since then additional device tree overlay is needed. Since our samples can work both over usb and uart (probably) we cannot enable it by default.
    Best regards,
    Charlie
Children
No Data
Related