Cannot create "nrf/samples/openthread/coprocessor/" app for building border router with nRF52840 Dongle

I'm trying to follow the guide on how to setup a border router with the nRF52840 dongle (see https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_thread_tools.html#configuring-a-radio-co-processor). The guide tells me to build the "nrf/samples/openthread/coprocessor/" app, however when using the VSCode Extension to create the project (see screenshot below), I get the following error:


[west]: updating /home/leon/Desktop/ivy/code/thread/nrf_coprocessor...

[west]: === updating sdk-nrf (nrf):
[west]: --- sdk-nrf: initializing
[west]: warning: templates not found in /home/leon/ncs/toolchains/v2.1.2/usr/share/git-core/templates
[west]: Initialized empty Git repository in /home/leon/Desktop/ivy/code/thread/nrf/.git/
[west]: --- sdk-nrf: fetching, need revision v2.1.99-dev2
[west]: fatal: unable to find remote helper for 'https'
[west]: FATAL ERROR: command exited with status 128: fetch -f --tags --depth 1 -- github.com/.../sdk-nrf v2.1.99-dev2

[west]: exited with code 128.


I've also tried the freestanding option, but when executing the command

west build -p always -b nrf52840dongle_nrf52840 nrf/samples/openthread/coprocessor/ -- -DOVERLAY_CONFIG="overlay-usb.conf" -DDTC_OVERLAY_FILE="usb.overlay"

I only get the error

usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

  • Hi Leon, 

    Are you on the same SDK and toolchain version?

    I see that you are 2.1.99 nCS and 2.1.2. toolchain version.

    Could that be the problem? I am not sure, but could you please remove and reinstall the latest (2.1.2) ncs version and update its toolchain and use that for your project. Sometimes there could be issues in SDK installations.

    Just showing below the usage of toolchain manager from nrf connect for desktop applicaiton.

    Are / were you able to use VSCode to build other projects?

    Regards,

    Naeem

Related