nRF Connect SDK Linux Installation & Compiling Failure

Hi,

I installed nRF Connect SDK manually by following the instruction in this page. I had 2 problems but I did a trick and it seems it solved for now. However I need to know for the future.

OS: Ubuntu 22.04

ncs: In home directory and the structure is lie below.

ncs
 |___ .west
 |___ bootloader
 |___ modules
 |___ nrf
 |___ nrfxlib
 |___ zephyr
 |___ ...

SDK: In home directory with the name like zephyr-sdk-0.14.1 and also isntalled 0.15.1 at the same time. However VSCode has given an error that v2.2.0 requires zephyr-sdk-0.15.1. It couldn't detect automatically. I have checked the $PATH env. var. There is no toolchain variable in it, but I don't understand how VScode can find 0.14.1. Anyway I renamed folders 0.14.1 to 0.15.1 and 0.15.1 to 0.14.1. Now VSCode doesn't give any error and it accepts. It seems that this problem has been solved temporarily.

The setting VSCode extention:

nRF Connect SDK: 2.2.0 (/home/soz/ncs)        => as detected

nRF Connect Toolchain: PATH (Zephyr SDK: /home/soz/zephyr-sdk-0.14.1)     => as detected. 0.15.1 couldn't detected so as mentioned above renamed folder.

Output of PATH env.

soz@salihonur-lnx:~/ncs/zephyr$ echo $PATH
/home/soz/ncs/zephyr/scripts:/home/soz/.local/bin:/home/soz/gn:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/soz/nRF52/gcc-arm/bin
soz@salihonur-lnx:~/ncs/zephyr$

Output of ZEPHYR_BASE variable:

soz@salihonur-lnx:~$ echo $ZEPHYR_BASE

soz@salihonur-lnx:~$ cd ncs/zephyr/
soz@salihonur-lnx:~/ncs/zephyr$ source zephyr-env.sh 
soz@salihonur-lnx:~/ncs/zephyr$ echo $ZEPHYR_BASE
/home/soz/ncs/zephyr
soz@salihonur-lnx:~/ncs/zephyr$ echo $BOARD

soz@salihonur-lnx:~/ncs/zephyr$ echo $CONF_FILE

soz@salihonur-lnx:~/ncs/zephyr$ echo $DTS_OVERLAY_FILE

Error of compling "blinky" example in VSCode:

Building blinky
west build --build-dir /home/soz/ELEKTRONIK/Test/blinky/build_1 /home/soz/ELEKTRONIK/Test/blinky --pristine --board nrf52840dongle_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="/home/soz/ELEKTRONIK/Test/blinky/prj.conf"

-- west build: generating a build system
STATUS,XXXXX: 
Loading Zephyr default modules (Zephyr base).
-- Application: /home/soz/ELEKTRONIK/Test/blinky
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
-- Cache files will be written to: /home/soz/.cache/zephyr
-- Zephyr version: 3.2.99 (/home/soz/ncs/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52840dongle_nrf52840
-- Found host-tools: zephyr 0.15.1 (/home/soz/zephyr-sdk-0.14.1)
-- Found toolchain: zephyr 0.15.1 (/home/soz/zephyr-sdk-0.14.1)
-- Found Dtc: /home/soz/zephyr-sdk-0.14.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (Required is at least version "1.4.6") 
-- Found BOARD.dts: /home/soz/ncs/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
-- Generated zephyr.dts: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/dts.cmake
CMake Error at /home/soz/ncs/zephyr/cmake/modules/dts.cmake:308 (message):
  command failed with return code: No such file or directory
Call Stack (most recent call first):
  /home/soz/ncs/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
  /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:67 (include)
  /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:93 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/soz/.local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/soz/ELEKTRONIK/Test/blinky/build_1 -GNinja -DBOARD=nrf52840dongle_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=/home/soz/ELEKTRONIK/Test/blinky/prj.conf -S/home/soz/ELEKTRONIK/Test/blinky

Questions:

  1. I guess the compiler can't find PATH variables. Only ZEPHYR_BASE variable comes if "source zephyr-env.sh" is executed. What are the default location of these variables below? I can define them manually.
    BOARD
    CONF_FILE
    SHIELD
    ZEPHYR_BASE
    ZEPHYR_EXTRA_MODULES
    ZEPHYR_MODULES
    ZEPHYR_BOARD_ALIASES

    ZEPHYR_SDK_INSTALL_DIR
    ZEPHYR_TOOLCHAIN_VARIANT
    {TOOLCHAIN}_TOOLCHAIN_PATH
  2. Where can I change the toolchain path?
Parents
  • Hi,

    The environment variables you need to define are:

    ZEPHYR_TOOLCHAIN_VARIANT=zephyr

    ZEPHYR_SDK_INSTALL_DIR=<path to zephyr-sdk-0.15.1>

    After you have set this, you should make sure to create a new workspace in VS Code so you do not use previous workspace settings, and delete the build folder before building again.

    Best regards,

    Marte

  • Hi Marte,

    I set those environment variables but still having problem. I closed Workplace in VScode, re-installed nRF Connect extention and created new blinky project.

    Here are the line which are appended into .bashrc file.

    export PATH=${HOME}/zephyr-sdk:"$PATH"
    export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
    export ZEPHYR_SDK_INSTALL_DIR=${HOME}/zephyr-sdk
    
    export GNUARMEMB_TOOLCHAIN_PATH=${HOME}/nRF52/gcc-arm/bin
    

    If ı remove ZEPHYR_TOOLCHAIN_VARIANT and EPHYR_SDK_INSTALL_DIR variables in .bashrc file then VSCode can find the path automatically however this time I get gnu-arm variant error even if it is already set with GNUARMEMB_TOOLCHAIN_PATH variable in the .bashrc file.

    The output when a new project is created:

    [variant] Loaded new set of variants
    [kit] Successfully loaded 2 kits from /home/soz/.local/share/CMakeTools/cmake-tools-kits.json
    [proc] Executing command: /usr/bin/arm-none-eabi-gcc -v
    [main] Configuring folder: blinky 
    [proc] Executing command: /home/soz/.local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-g++ -S/home/soz/ELEKTRONIK/Test/blinky -B/home/soz/ELEKTRONIK/Test/blinky/build -G Ninja
    [cmake] STATUS,XXXXX: 
    [cmake] Not searching for unused variables given on the command line.
    [cmake] -- Application: /home/soz/ELEKTRONIK/Test/blinky
    [cmake] Loading Zephyr default modules (Freestanding).
    [cmake] -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    [cmake] -- Cache files will be written to: /home/soz/.cache/zephyr
    [cmake] -- Zephyr version: 3.2.99 (/home/soz/ncs/zephyr)
    [cmake] -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    [cmake] CMake Error at /home/soz/ncs/zephyr/cmake/modules/extensions.cmake:2520 (message):
    [cmake]   BOARD is not being defined on the CMake command-line, in the environment or
    [cmake]   by the app.
    [cmake] Call Stack (most recent call first):
    [cmake]   /home/soz/ncs/zephyr/cmake/modules/boards.cmake:52 (zephyr_check_cache)
    [cmake]   /home/soz/ncs/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
    [cmake]   /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:67 (include)
    [cmake]   /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:160 (include_boilerplate)
    [cmake]   CMakeLists.txt:4 (find_package)
    [cmake] 
    [cmake] 
    [cmake] -- Configuring incomplete, errors occurred!
    [proc] The command: /home/soz/.local/bin/cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/arm-none-eabi-g++ -S/home/soz/ELEKTRONIK/Test/blinky -B/home/soz/ELEKTRONIK/Test/blinky/build -G Ninja exited with code: 1 and signal: null
    

     

    The output of creating a new "build configuration"

     *  Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for /home/soz/ELEKTRONIK/Test/blinky 
    
    Building blinky
    west build --build-dir /home/soz/ELEKTRONIK/Test/blinky/build_1 /home/soz/ELEKTRONIK/Test/blinky --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE"
    
    -- west build: generating a build system
    STATUS,XXXXX: 
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/soz/ELEKTRONIK/Test/blinky
    -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/soz/.cache/zephyr
    -- Zephyr version: 3.2.99 (/home/soz/ncs/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.15.1 (/home/soz/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.1 (/home/soz/zephyr-sdk)
    -- Found Dtc: /home/soz/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (Required is at least version "1.4.6") 
    -- Found BOARD.dts: /home/soz/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/dts.cmake
    CMake Error at /home/soz/ncs/zephyr/cmake/modules/dts.cmake:308 (message):
      command failed with return code: No such file or directory
    Call Stack (most recent call first):
      /home/soz/ncs/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:67 (include)
      /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:93 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /home/soz/.local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/soz/ELEKTRONIK/Test/blinky/build_1 -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -S/home/soz/ELEKTRONIK/Test/blinky
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    The output of the compile

    Building blinky
    west build --build-dir /home/soz/ELEKTRONIK/Test/blinky/build_1 /home/soz/ELEKTRONIK/Test/blinky --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="/home/soz/ELEKTRONIK/Test/blinky/prj.conf"
    
    -- west build: generating a build system
    STATUS,XXXXX: 
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/soz/ELEKTRONIK/Test/blinky
    -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/soz/.cache/zephyr
    -- Zephyr version: 3.2.99 (/home/soz/ncs/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.15.1 (/home/soz/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.1 (/home/soz/zephyr-sdk)
    -- Found Dtc: /home/soz/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (Required is at least version "1.4.6") 
    -- Found BOARD.dts: /home/soz/ncs/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Generated zephyr.dts: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/soz/ELEKTRONIK/Test/blinky/build_1/zephyr/dts.cmake
    CMake Error at /home/soz/ncs/zephyr/cmake/modules/dts.cmake:308 (message):
      command failed with return code: No such file or directory
    Call Stack (most recent call first):
      /home/soz/ncs/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:67 (include)
      /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:93 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /home/soz/.local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/soz/ELEKTRONIK/Test/blinky/build_1 -GNinja -DBOARD=nrf52840dk_nrf52840 -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONF_FILE:STRING=/home/soz/ELEKTRONIK/Test/blinky/prj.conf -S/home/soz/ELEKTRONIK/Test/blinky
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    

  • Hi,

    Are you able to build on command line, or do you see the same issue there?

    Can you generate support information in VS Code? Go to command palette (ctrl + shift + P) and write nRF Connect: generate support information. Copy the generated information in the output tab and upload it here as you do when inserting code.

    Best regards,

    Marte

  • Hi Marte,

    I'm getting error when compiling the project via command line. I also checked if all requirements for "west" has been installed.

    soz@salihonur-lnx:~/ELEKTRONIK/Test/blinky$ west build -b nrf52840dongle_nrf52840
    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')
    

    soz@salihonur-lnx:~/ncs/zephyr/scripts$ pip3 install -r requirements.txt
    Defaulting to user installation because normal site-packages is not writeable
    Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment
    Ignoring python-magic-bin: markers 'sys_platform == "win32"' don't match your environment
    Requirement already satisfied: pyelftools>=0.27 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 7)) (0.29)
    Requirement already satisfied: PyYAML>=5.1 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 11)) (6.0)
    Requirement already satisfied: pykwalify in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 14)) (1.8.0)
    Requirement already satisfied: canopen in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 17)) (2.0.0)
    Requirement already satisfied: packaging in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 18)) (22.0)
    Requirement already satisfied: progress in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 19)) (1.6)
    Requirement already satisfied: psutil in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 20)) (5.9.4)
    Requirement already satisfied: pylink-square in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 21)) (0.14.3)
    Requirement already satisfied: anytree in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 24)) (2.8.0)
    Requirement already satisfied: intelhex in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 27)) (2.3.0)
    Requirement already satisfied: west>=0.10.1 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 30)) (0.14.0)
    Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from -r requirements-build-test.txt (line 7)) (0.4.4)
    Requirement already satisfied: ply>=3.10 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 10)) (3.11)
    Requirement already satisfied: gcovr>=4.2 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 13)) (5.2)
    Requirement already satisfied: coverage in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 14)) (7.0.0)
    Requirement already satisfied: pytest in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 17)) (7.2.0)
    Requirement already satisfied: mypy in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 18)) (0.991)
    Requirement already satisfied: mock>=4.0.1 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 21)) (4.0.3)
    Requirement already satisfied: breathe>=4.34 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 3)) (4.34.0)
    Requirement already satisfied: sphinx!=5.2.0.post0,~=5.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 4)) (5.3.0)
    Requirement already satisfied: sphinx_rtd_theme~=1.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 5)) (1.1.1)
    Requirement already satisfied: sphinx-tabs in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 6)) (3.4.0)
    Requirement already satisfied: sphinxcontrib-svg2pdfconverter in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 7)) (1.2.1)
    Requirement already satisfied: pygments>=2.9 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 8)) (2.13.0)
    Requirement already satisfied: sphinx-notfound-page in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 9)) (0.8.3)
    Requirement already satisfied: sphinx-copybutton in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 10)) (0.5.1)
    Requirement already satisfied: pyserial in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 6)) (3.5)
    Requirement already satisfied: pyocd>=0.29.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 9)) (0.34.3)
    Requirement already satisfied: tabulate in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 12)) (0.9.0)
    Requirement already satisfied: cbor>=1.0.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 15)) (1.0.0)
    Requirement already satisfied: gitlint in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 7)) (0.18.0)
    Requirement already satisfied: junit2html in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 10)) (30.1.3)
    Requirement already satisfied: clang-format>=1.13x in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 13)) (15.0.6)
    Requirement already satisfied: lpc_checksum in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 16)) (3.0.0)
    Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from -r requirements-extras.txt (line 19)) (9.0.1)
    Requirement already satisfied: imgtool>=1.9 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 22)) (1.9.0)
    Requirement already satisfied: grpcio-tools in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 25)) (1.51.1)
    Requirement already satisfied: PyGithub in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 28)) (1.57)
    Requirement already satisfied: graphviz in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 31)) (0.20.1)
    Requirement already satisfied: python-magic in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-compliance.txt (line 4)) (0.4.27)
    Requirement already satisfied: junitparser>=2 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-compliance.txt (line 6)) (2.8.0)
    Requirement already satisfied: pylint in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-compliance.txt (line 7)) (2.15.9)
    Requirement already satisfied: ruamel.yaml>=0.16.0 in /home/soz/.local/lib/python3.10/site-packages (from pykwalify->-r requirements-base.txt (line 14)) (0.17.21)
    Requirement already satisfied: docopt>=0.6.2 in /home/soz/.local/lib/python3.10/site-packages (from pykwalify->-r requirements-base.txt (line 14)) (0.6.2)
    Requirement already satisfied: python-dateutil>=2.8.0 in /usr/lib/python3/dist-packages (from pykwalify->-r requirements-base.txt (line 14)) (2.8.1)
    Requirement already satisfied: python-can>=3.0.0 in /home/soz/.local/lib/python3.10/site-packages (from canopen->-r requirements-base.txt (line 17)) (4.1.0)
    Requirement already satisfied: future in /home/soz/.local/lib/python3.10/site-packages (from pylink-square->-r requirements-base.txt (line 21)) (0.18.2)
    Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pylink-square->-r requirements-base.txt (line 21)) (1.16.0)
    Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from west>=0.10.1->-r requirements-base.txt (line 30)) (59.6.0)
    Requirement already satisfied: lxml in /home/soz/.local/lib/python3.10/site-packages (from gcovr>=4.2->-r requirements-build-test.txt (line 13)) (4.9.2)
    Requirement already satisfied: jinja2 in /home/soz/.local/lib/python3.10/site-packages (from gcovr>=4.2->-r requirements-build-test.txt (line 13)) (3.0.3)
    Requirement already satisfied: attrs>=19.2.0 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (22.2.0)
    Requirement already satisfied: tomli>=1.0.0 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (2.0.1)
    Requirement already satisfied: pluggy<2.0,>=0.12 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (1.0.0)
    Requirement already satisfied: exceptiongroup>=1.0.0rc8 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (1.1.0)
    Requirement already satisfied: iniconfig in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (1.1.1)
    Requirement already satisfied: typing-extensions>=3.10 in /home/soz/.local/lib/python3.10/site-packages (from mypy->-r requirements-build-test.txt (line 18)) (4.4.0)
    Requirement already satisfied: mypy-extensions>=0.4.3 in /home/soz/.local/lib/python3.10/site-packages (from mypy->-r requirements-build-test.txt (line 18)) (0.4.3)
    Requirement already satisfied: docutils>=0.12 in /home/soz/.local/lib/python3.10/site-packages (from breathe>=4.34->-r requirements-doc.txt (line 3)) (0.17.1)
    Requirement already satisfied: requests>=2.5.0 in /usr/lib/python3/dist-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.25.1)
    Requirement already satisfied: snowballstemmer>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.2.0)
    Requirement already satisfied: sphinxcontrib-jsmath in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.1)
    Requirement already satisfied: sphinxcontrib-qthelp in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.3)
    Requirement already satisfied: imagesize>=1.3 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.4.1)
    Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.1.5)
    Requirement already satisfied: sphinxcontrib-devhelp in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.2)
    Requirement already satisfied: babel>=2.9 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.11.0)
    Requirement already satisfied: sphinxcontrib-applehelp in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.2)
    Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.0.0)
    Requirement already satisfied: alabaster<0.8,>=0.7 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (0.7.12)
    Requirement already satisfied: cmsis-pack-manager<1.0,>=0.4.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (0.5.1)
    Requirement already satisfied: libusb-package<2.0,>=1.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.0.26.1)
    Requirement already satisfied: pyusb<2.0,>=1.2.1 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.2.1)
    Requirement already satisfied: capstone<5.0,>=4.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (4.0.2)
    Requirement already satisfied: prettytable<4.0,>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (3.5.0)
    Requirement already satisfied: intervaltree<4.0,>=3.0.2 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (3.1.0)
    Requirement already satisfied: natsort<9.0,>=8.0.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (8.2.0)
    Requirement already satisfied: gitlint-core[trusted-deps]==0.18.0 in /home/soz/.local/lib/python3.10/site-packages (from gitlint->-r requirements-extras.txt (line 7)) (0.18.0)
    Requirement already satisfied: Click>=8 in /usr/lib/python3/dist-packages (from gitlint-core[trusted-deps]==0.18.0->gitlint->-r requirements-extras.txt (line 7)) (8.0.3)
    Requirement already satisfied: arrow>=1 in /home/soz/.local/lib/python3.10/site-packages (from gitlint-core[trusted-deps]==0.18.0->gitlint->-r requirements-extras.txt (line 7)) (1.2.1)
    Requirement already satisfied: sh>=1.13.0 in /home/soz/.local/lib/python3.10/site-packages (from gitlint-core[trusted-deps]==0.18.0->gitlint->-r requirements-extras.txt (line 7)) (1.14.2)
    Requirement already satisfied: cbor2 in /home/soz/.local/lib/python3.10/site-packages (from imgtool>=1.9->-r requirements-extras.txt (line 22)) (5.4.6)
    Requirement already satisfied: cryptography>=2.4.2 in /usr/lib/python3/dist-packages (from imgtool>=1.9->-r requirements-extras.txt (line 22)) (3.4.8)
    Requirement already satisfied: protobuf<5.0dev,>=4.21.6 in /home/soz/.local/lib/python3.10/site-packages (from grpcio-tools->-r requirements-extras.txt (line 25)) (4.21.12)
    Requirement already satisfied: grpcio>=1.51.1 in /home/soz/.local/lib/python3.10/site-packages (from grpcio-tools->-r requirements-extras.txt (line 25)) (1.51.1)
    Requirement already satisfied: deprecated in /home/soz/.local/lib/python3.10/site-packages (from PyGithub->-r requirements-extras.txt (line 28)) (1.2.13)
    Requirement already satisfied: pynacl>=1.4.0 in /usr/lib/python3/dist-packages (from PyGithub->-r requirements-extras.txt (line 28)) (1.5.0)
    Requirement already satisfied: pyjwt>=2.4.0 in /home/soz/.local/lib/python3.10/site-packages (from PyGithub->-r requirements-extras.txt (line 28)) (2.6.0)
    Requirement already satisfied: dill>=0.2 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (0.3.6)
    Requirement already satisfied: platformdirs>=2.2.0 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (2.6.0)
    Requirement already satisfied: astroid<=2.14.0-dev0,>=2.12.13 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (2.12.13)
    Requirement already satisfied: isort<6,>=4.2.5 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (5.11.4)
    Requirement already satisfied: tomlkit>=0.10.1 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (0.11.6)
    Requirement already satisfied: mccabe<0.8,>=0.6 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (0.7.0)
    Requirement already satisfied: wrapt<2,>=1.11 in /home/soz/.local/lib/python3.10/site-packages (from astroid<=2.14.0-dev0,>=2.12.13->pylint->-r requirements-compliance.txt (line 7)) (1.14.1)
    Requirement already satisfied: lazy-object-proxy>=1.4.0 in /home/soz/.local/lib/python3.10/site-packages (from astroid<=2.14.0-dev0,>=2.12.13->pylint->-r requirements-compliance.txt (line 7)) (1.8.0)
    Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3/dist-packages (from babel>=2.9->sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2022.1)
    Requirement already satisfied: cffi in /home/soz/.local/lib/python3.10/site-packages (from cmsis-pack-manager<1.0,>=0.4.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.15.1)
    Requirement already satisfied: appdirs<2.0,>=1.4 in /home/soz/.local/lib/python3.10/site-packages (from cmsis-pack-manager<1.0,>=0.4.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.4.4)
    Requirement already satisfied: sortedcontainers<3.0,>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from intervaltree<4.0,>=3.0.2->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (2.4.0)
    Requirement already satisfied: MarkupSafe>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from jinja2->gcovr>=4.2->-r requirements-build-test.txt (line 13)) (2.1.1)
    Requirement already satisfied: wcwidth in /home/soz/.local/lib/python3.10/site-packages (from prettytable<4.0,>=2.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (0.2.5)
    Requirement already satisfied: msgpack~=1.0.0 in /home/soz/.local/lib/python3.10/site-packages (from python-can>=3.0.0->canopen->-r requirements-base.txt (line 17)) (1.0.4)
    Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in /home/soz/.local/lib/python3.10/site-packages (from ruamel.yaml>=0.16.0->pykwalify->-r requirements-base.txt (line 14)) (0.2.7)
    Requirement already satisfied: pycparser in /home/soz/.local/lib/python3.10/site-packages (from cffi->cmsis-pack-manager<1.0,>=0.4.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (2.21)
    

    VSCode Support Information: 

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "linux",
        "osVersion": "#62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022",
        "osKernel": "5.15.0-56-generic",
        "vscode": "1.74.2",
        "electron": "19.1.8",
        "node": "v16.14.2"
      },
      "system": {
        "date": "2022-12-28T10:52:48.815Z",
        "vscodeRoot": "/snap/code/116/usr/share/code/resources/app",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:29",
        "osUptime": "00:39:12",
        "cpu": {
          "model": "Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz",
          "speed": "1200 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.52 GB",
          "free": "12.40 GB"
        }
      },
      "workspace": {
        "name": "blinky",
        "workspaceFile": null,
        "folders": [
          "/home/soz/ELEKTRONIK/Test/blinky"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.11.140",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.11.140-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.11.29",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.11.29",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2022.11.153",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.11.153",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2022.11.50",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.11.50",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.6.9",
          "ms-vscode.cpptools": "1.13.8",
          "ms-vscode.js-debug": "1.74.1",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "cschlosser.doxdocgen": "1.4.0",
          "jeff-hykin.better-cpp-syntax": "1.17.2",
          "mcu-debug.debug-tracker-vscode": "0.0.12",
          "mcu-debug.memory-view": "0.0.18",
          "mcu-debug.rtos-views": "0.0.2",
          "MS-CEINTL.vscode-language-pack-tr": "1.74.12140921",
          "ms-vscode.cmake-tools": "1.12.27",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "platformio.platformio-ide": "2.5.5",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "zephyr-sdk": "Not found",
        "/opt/SEGGER/JLink/JLinkExe": "7.80c",
        "/usr/local/bin/nrfjprog": "10.18.1",
        "nrfutil": "Not found",
        "/home/soz/.local/bin/cmake": "3.25.0",
        "/home/soz/.local/bin/west": "0.14.0",
        "/usr/bin/python3": "3.10.6",
        "/usr/bin/ninja": "1.10.1",
        "/usr/bin/gperf": "3.1",
        "/usr/bin/dtc": "1.6.1",
        "/home/soz/gn/gn": "2077",
        "/usr/bin/git": "2.34.1",
        "gdbPath": "/home/soz/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "sdks": [
        {
          "version": "2.2.0",
          "path": "/home/soz/ncs"
        }
      ],
      "toolchains": [],
      "connectedDevices": [],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.2.0}",
          "toolchain": {
            "path": "PATH"
          },
          "ozonePath": "",
          "applications": [
            "."
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "scrollBack": 1000
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/soz",
          "PATH": "/home/soz/.local/bin:/home/soz/zephyr-sdk:/home/soz/.local/bin:/home/soz/gn:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/soz/nRF52/gcc-arm/bin",
          "ZEPHYR_BASE": "/home/soz/ncs/zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "/home/soz/nRF52/gcc-arm/bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/soz/zephyr-sdk",
          "USER": "soz"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/soz",
          "PATH": "/home/soz/.local/bin:/home/soz/zephyr-sdk:/home/soz/.local/bin:/home/soz/gn:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/soz/nRF52/gcc-arm/bin",
          "GNUARMEMB_TOOLCHAIN_PATH": "/home/soz/nRF52/gcc-arm/bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/soz/zephyr-sdk",
          "USER": "soz"
        },
        "toolchainPath": "PATH"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }

Reply
  • Hi Marte,

    I'm getting error when compiling the project via command line. I also checked if all requirements for "west" has been installed.

    soz@salihonur-lnx:~/ELEKTRONIK/Test/blinky$ west build -b nrf52840dongle_nrf52840
    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')
    

    soz@salihonur-lnx:~/ncs/zephyr/scripts$ pip3 install -r requirements.txt
    Defaulting to user installation because normal site-packages is not writeable
    Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment
    Ignoring python-magic-bin: markers 'sys_platform == "win32"' don't match your environment
    Requirement already satisfied: pyelftools>=0.27 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 7)) (0.29)
    Requirement already satisfied: PyYAML>=5.1 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 11)) (6.0)
    Requirement already satisfied: pykwalify in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 14)) (1.8.0)
    Requirement already satisfied: canopen in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 17)) (2.0.0)
    Requirement already satisfied: packaging in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 18)) (22.0)
    Requirement already satisfied: progress in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 19)) (1.6)
    Requirement already satisfied: psutil in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 20)) (5.9.4)
    Requirement already satisfied: pylink-square in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 21)) (0.14.3)
    Requirement already satisfied: anytree in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 24)) (2.8.0)
    Requirement already satisfied: intelhex in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 27)) (2.3.0)
    Requirement already satisfied: west>=0.10.1 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-base.txt (line 30)) (0.14.0)
    Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from -r requirements-build-test.txt (line 7)) (0.4.4)
    Requirement already satisfied: ply>=3.10 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 10)) (3.11)
    Requirement already satisfied: gcovr>=4.2 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 13)) (5.2)
    Requirement already satisfied: coverage in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 14)) (7.0.0)
    Requirement already satisfied: pytest in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 17)) (7.2.0)
    Requirement already satisfied: mypy in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 18)) (0.991)
    Requirement already satisfied: mock>=4.0.1 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-build-test.txt (line 21)) (4.0.3)
    Requirement already satisfied: breathe>=4.34 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 3)) (4.34.0)
    Requirement already satisfied: sphinx!=5.2.0.post0,~=5.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 4)) (5.3.0)
    Requirement already satisfied: sphinx_rtd_theme~=1.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 5)) (1.1.1)
    Requirement already satisfied: sphinx-tabs in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 6)) (3.4.0)
    Requirement already satisfied: sphinxcontrib-svg2pdfconverter in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 7)) (1.2.1)
    Requirement already satisfied: pygments>=2.9 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 8)) (2.13.0)
    Requirement already satisfied: sphinx-notfound-page in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 9)) (0.8.3)
    Requirement already satisfied: sphinx-copybutton in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-doc.txt (line 10)) (0.5.1)
    Requirement already satisfied: pyserial in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 6)) (3.5)
    Requirement already satisfied: pyocd>=0.29.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 9)) (0.34.3)
    Requirement already satisfied: tabulate in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 12)) (0.9.0)
    Requirement already satisfied: cbor>=1.0.0 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-run-test.txt (line 15)) (1.0.0)
    Requirement already satisfied: gitlint in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 7)) (0.18.0)
    Requirement already satisfied: junit2html in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 10)) (30.1.3)
    Requirement already satisfied: clang-format>=1.13x in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 13)) (15.0.6)
    Requirement already satisfied: lpc_checksum in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 16)) (3.0.0)
    Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from -r requirements-extras.txt (line 19)) (9.0.1)
    Requirement already satisfied: imgtool>=1.9 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 22)) (1.9.0)
    Requirement already satisfied: grpcio-tools in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 25)) (1.51.1)
    Requirement already satisfied: PyGithub in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 28)) (1.57)
    Requirement already satisfied: graphviz in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-extras.txt (line 31)) (0.20.1)
    Requirement already satisfied: python-magic in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-compliance.txt (line 4)) (0.4.27)
    Requirement already satisfied: junitparser>=2 in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-compliance.txt (line 6)) (2.8.0)
    Requirement already satisfied: pylint in /home/soz/.local/lib/python3.10/site-packages (from -r requirements-compliance.txt (line 7)) (2.15.9)
    Requirement already satisfied: ruamel.yaml>=0.16.0 in /home/soz/.local/lib/python3.10/site-packages (from pykwalify->-r requirements-base.txt (line 14)) (0.17.21)
    Requirement already satisfied: docopt>=0.6.2 in /home/soz/.local/lib/python3.10/site-packages (from pykwalify->-r requirements-base.txt (line 14)) (0.6.2)
    Requirement already satisfied: python-dateutil>=2.8.0 in /usr/lib/python3/dist-packages (from pykwalify->-r requirements-base.txt (line 14)) (2.8.1)
    Requirement already satisfied: python-can>=3.0.0 in /home/soz/.local/lib/python3.10/site-packages (from canopen->-r requirements-base.txt (line 17)) (4.1.0)
    Requirement already satisfied: future in /home/soz/.local/lib/python3.10/site-packages (from pylink-square->-r requirements-base.txt (line 21)) (0.18.2)
    Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pylink-square->-r requirements-base.txt (line 21)) (1.16.0)
    Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from west>=0.10.1->-r requirements-base.txt (line 30)) (59.6.0)
    Requirement already satisfied: lxml in /home/soz/.local/lib/python3.10/site-packages (from gcovr>=4.2->-r requirements-build-test.txt (line 13)) (4.9.2)
    Requirement already satisfied: jinja2 in /home/soz/.local/lib/python3.10/site-packages (from gcovr>=4.2->-r requirements-build-test.txt (line 13)) (3.0.3)
    Requirement already satisfied: attrs>=19.2.0 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (22.2.0)
    Requirement already satisfied: tomli>=1.0.0 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (2.0.1)
    Requirement already satisfied: pluggy<2.0,>=0.12 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (1.0.0)
    Requirement already satisfied: exceptiongroup>=1.0.0rc8 in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (1.1.0)
    Requirement already satisfied: iniconfig in /home/soz/.local/lib/python3.10/site-packages (from pytest->-r requirements-build-test.txt (line 17)) (1.1.1)
    Requirement already satisfied: typing-extensions>=3.10 in /home/soz/.local/lib/python3.10/site-packages (from mypy->-r requirements-build-test.txt (line 18)) (4.4.0)
    Requirement already satisfied: mypy-extensions>=0.4.3 in /home/soz/.local/lib/python3.10/site-packages (from mypy->-r requirements-build-test.txt (line 18)) (0.4.3)
    Requirement already satisfied: docutils>=0.12 in /home/soz/.local/lib/python3.10/site-packages (from breathe>=4.34->-r requirements-doc.txt (line 3)) (0.17.1)
    Requirement already satisfied: requests>=2.5.0 in /usr/lib/python3/dist-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.25.1)
    Requirement already satisfied: snowballstemmer>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.2.0)
    Requirement already satisfied: sphinxcontrib-jsmath in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.1)
    Requirement already satisfied: sphinxcontrib-qthelp in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.3)
    Requirement already satisfied: imagesize>=1.3 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.4.1)
    Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.5 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.1.5)
    Requirement already satisfied: sphinxcontrib-devhelp in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.2)
    Requirement already satisfied: babel>=2.9 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.11.0)
    Requirement already satisfied: sphinxcontrib-applehelp in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (1.0.2)
    Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2.0.0)
    Requirement already satisfied: alabaster<0.8,>=0.7 in /home/soz/.local/lib/python3.10/site-packages (from sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (0.7.12)
    Requirement already satisfied: cmsis-pack-manager<1.0,>=0.4.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (0.5.1)
    Requirement already satisfied: libusb-package<2.0,>=1.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.0.26.1)
    Requirement already satisfied: pyusb<2.0,>=1.2.1 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.2.1)
    Requirement already satisfied: capstone<5.0,>=4.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (4.0.2)
    Requirement already satisfied: prettytable<4.0,>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (3.5.0)
    Requirement already satisfied: intervaltree<4.0,>=3.0.2 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (3.1.0)
    Requirement already satisfied: natsort<9.0,>=8.0.0 in /home/soz/.local/lib/python3.10/site-packages (from pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (8.2.0)
    Requirement already satisfied: gitlint-core[trusted-deps]==0.18.0 in /home/soz/.local/lib/python3.10/site-packages (from gitlint->-r requirements-extras.txt (line 7)) (0.18.0)
    Requirement already satisfied: Click>=8 in /usr/lib/python3/dist-packages (from gitlint-core[trusted-deps]==0.18.0->gitlint->-r requirements-extras.txt (line 7)) (8.0.3)
    Requirement already satisfied: arrow>=1 in /home/soz/.local/lib/python3.10/site-packages (from gitlint-core[trusted-deps]==0.18.0->gitlint->-r requirements-extras.txt (line 7)) (1.2.1)
    Requirement already satisfied: sh>=1.13.0 in /home/soz/.local/lib/python3.10/site-packages (from gitlint-core[trusted-deps]==0.18.0->gitlint->-r requirements-extras.txt (line 7)) (1.14.2)
    Requirement already satisfied: cbor2 in /home/soz/.local/lib/python3.10/site-packages (from imgtool>=1.9->-r requirements-extras.txt (line 22)) (5.4.6)
    Requirement already satisfied: cryptography>=2.4.2 in /usr/lib/python3/dist-packages (from imgtool>=1.9->-r requirements-extras.txt (line 22)) (3.4.8)
    Requirement already satisfied: protobuf<5.0dev,>=4.21.6 in /home/soz/.local/lib/python3.10/site-packages (from grpcio-tools->-r requirements-extras.txt (line 25)) (4.21.12)
    Requirement already satisfied: grpcio>=1.51.1 in /home/soz/.local/lib/python3.10/site-packages (from grpcio-tools->-r requirements-extras.txt (line 25)) (1.51.1)
    Requirement already satisfied: deprecated in /home/soz/.local/lib/python3.10/site-packages (from PyGithub->-r requirements-extras.txt (line 28)) (1.2.13)
    Requirement already satisfied: pynacl>=1.4.0 in /usr/lib/python3/dist-packages (from PyGithub->-r requirements-extras.txt (line 28)) (1.5.0)
    Requirement already satisfied: pyjwt>=2.4.0 in /home/soz/.local/lib/python3.10/site-packages (from PyGithub->-r requirements-extras.txt (line 28)) (2.6.0)
    Requirement already satisfied: dill>=0.2 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (0.3.6)
    Requirement already satisfied: platformdirs>=2.2.0 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (2.6.0)
    Requirement already satisfied: astroid<=2.14.0-dev0,>=2.12.13 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (2.12.13)
    Requirement already satisfied: isort<6,>=4.2.5 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (5.11.4)
    Requirement already satisfied: tomlkit>=0.10.1 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (0.11.6)
    Requirement already satisfied: mccabe<0.8,>=0.6 in /home/soz/.local/lib/python3.10/site-packages (from pylint->-r requirements-compliance.txt (line 7)) (0.7.0)
    Requirement already satisfied: wrapt<2,>=1.11 in /home/soz/.local/lib/python3.10/site-packages (from astroid<=2.14.0-dev0,>=2.12.13->pylint->-r requirements-compliance.txt (line 7)) (1.14.1)
    Requirement already satisfied: lazy-object-proxy>=1.4.0 in /home/soz/.local/lib/python3.10/site-packages (from astroid<=2.14.0-dev0,>=2.12.13->pylint->-r requirements-compliance.txt (line 7)) (1.8.0)
    Requirement already satisfied: pytz>=2015.7 in /usr/lib/python3/dist-packages (from babel>=2.9->sphinx!=5.2.0.post0,~=5.0->-r requirements-doc.txt (line 4)) (2022.1)
    Requirement already satisfied: cffi in /home/soz/.local/lib/python3.10/site-packages (from cmsis-pack-manager<1.0,>=0.4.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.15.1)
    Requirement already satisfied: appdirs<2.0,>=1.4 in /home/soz/.local/lib/python3.10/site-packages (from cmsis-pack-manager<1.0,>=0.4.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (1.4.4)
    Requirement already satisfied: sortedcontainers<3.0,>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from intervaltree<4.0,>=3.0.2->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (2.4.0)
    Requirement already satisfied: MarkupSafe>=2.0 in /home/soz/.local/lib/python3.10/site-packages (from jinja2->gcovr>=4.2->-r requirements-build-test.txt (line 13)) (2.1.1)
    Requirement already satisfied: wcwidth in /home/soz/.local/lib/python3.10/site-packages (from prettytable<4.0,>=2.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (0.2.5)
    Requirement already satisfied: msgpack~=1.0.0 in /home/soz/.local/lib/python3.10/site-packages (from python-can>=3.0.0->canopen->-r requirements-base.txt (line 17)) (1.0.4)
    Requirement already satisfied: ruamel.yaml.clib>=0.2.6 in /home/soz/.local/lib/python3.10/site-packages (from ruamel.yaml>=0.16.0->pykwalify->-r requirements-base.txt (line 14)) (0.2.7)
    Requirement already satisfied: pycparser in /home/soz/.local/lib/python3.10/site-packages (from cffi->cmsis-pack-manager<1.0,>=0.4.0->pyocd>=0.29.0->-r requirements-run-test.txt (line 9)) (2.21)
    

    VSCode Support Information: 

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.
    
    For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "linux",
        "osVersion": "#62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022",
        "osKernel": "5.15.0-56-generic",
        "vscode": "1.74.2",
        "electron": "19.1.8",
        "node": "v16.14.2"
      },
      "system": {
        "date": "2022-12-28T10:52:48.815Z",
        "vscodeRoot": "/snap/code/116/usr/share/code/resources/app",
        "nrfConnectForDesktopInstalled": "unknown",
        "vscodeUptime": "00:00:29",
        "osUptime": "00:39:12",
        "cpu": {
          "model": "Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz",
          "speed": "1200 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.52 GB",
          "free": "12.40 GB"
        }
      },
      "workspace": {
        "name": "blinky",
        "workspaceFile": null,
        "folders": [
          "/home/soz/ELEKTRONIK/Test/blinky"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.11.140",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.11.140-linux-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.11.29",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.11.29",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2022.11.153",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.11.153",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2022.11.50",
            "path": "/home/soz/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.11.50",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.6.9",
          "ms-vscode.cpptools": "1.13.8",
          "ms-vscode.js-debug": "1.74.1",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "cschlosser.doxdocgen": "1.4.0",
          "jeff-hykin.better-cpp-syntax": "1.17.2",
          "mcu-debug.debug-tracker-vscode": "0.0.12",
          "mcu-debug.memory-view": "0.0.18",
          "mcu-debug.rtos-views": "0.0.2",
          "MS-CEINTL.vscode-language-pack-tr": "1.74.12140921",
          "ms-vscode.cmake-tools": "1.12.27",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "platformio.platformio-ide": "2.5.5",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "zephyr-sdk": "Not found",
        "/opt/SEGGER/JLink/JLinkExe": "7.80c",
        "/usr/local/bin/nrfjprog": "10.18.1",
        "nrfutil": "Not found",
        "/home/soz/.local/bin/cmake": "3.25.0",
        "/home/soz/.local/bin/west": "0.14.0",
        "/usr/bin/python3": "3.10.6",
        "/usr/bin/ninja": "1.10.1",
        "/usr/bin/gperf": "3.1",
        "/usr/bin/dtc": "1.6.1",
        "/home/soz/gn/gn": "2077",
        "/usr/bin/git": "2.34.1",
        "gdbPath": "/home/soz/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "sdks": [
        {
          "version": "2.2.0",
          "path": "/home/soz/ncs"
        }
      ],
      "toolchains": [],
      "connectedDevices": [],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:2.2.0}",
          "toolchain": {
            "path": "PATH"
          },
          "ozonePath": "",
          "applications": [
            "."
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "scrollBack": 1000
        },
        "marus25.cortex-debug": {
          "armToolchainPath": null,
          "armToolchainPrefix": "arm-none-eabi",
          "gdbPath": null,
          "objdumpPath": null,
          "JLinkGDBServerPath": null,
          "openocdPath": null,
          "pyocdPath": null,
          "PEGDBServerPath": null,
          "stutilPath": null,
          "stlinkPath": null,
          "stm32cubeprogrammer": null,
          "enableTelemetry": true,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/soz",
          "PATH": "/home/soz/.local/bin:/home/soz/zephyr-sdk:/home/soz/.local/bin:/home/soz/gn:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/soz/nRF52/gcc-arm/bin",
          "ZEPHYR_BASE": "/home/soz/ncs/zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "/home/soz/nRF52/gcc-arm/bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/soz/zephyr-sdk",
          "USER": "soz"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/home/soz",
          "PATH": "/home/soz/.local/bin:/home/soz/zephyr-sdk:/home/soz/.local/bin:/home/soz/gn:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/soz/nRF52/gcc-arm/bin",
          "GNUARMEMB_TOOLCHAIN_PATH": "/home/soz/nRF52/gcc-arm/bin",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/home/soz/zephyr-sdk",
          "USER": "soz"
        },
        "toolchainPath": "PATH"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }

Children
  • Hi,

    The error you get when building on command line is because you are building an out of tree application without having ZEPHYR_BASE set in your environment variables. Set ZEPHYR_BASE=${HOME}/ncs/zephyr and you should not get the west error anymore. Please try again after fixing this and see if you get the same error there as in VS Code.

    I will look at the support information from VS Code and get back to you.

    Best regards,

    Marte

  • Now the build function works. However I'm still getting the compiling error same as VSCode.

    soz@salihonur-lnx:~/ELEKTRONIK/Test/blinky$ west build -b nrf52840dongle_nrf52840
    -- west build: generating a build system
    STATUS,XXXXX: 
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/soz/ELEKTRONIK/Test/blinky
    -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter 
    -- Cache files will be written to: /home/soz/.cache/zephyr
    -- Zephyr version: 3.2.99 (/home/soz/ncs/zephyr)
    -- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
    -- Board: nrf52840dongle_nrf52840
    -- Found host-tools: zephyr 0.15.1 (/home/soz/zephyr-sdk)
    -- Found toolchain: zephyr 0.15.1 (/home/soz/zephyr-sdk)
    -- Found Dtc: /home/soz/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (Required is at least version "1.4.6") 
    -- Found BOARD.dts: /home/soz/ncs/zephyr/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts
    -- Generated zephyr.dts: /home/soz/ELEKTRONIK/Test/blinky/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/soz/ELEKTRONIK/Test/blinky/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/soz/ELEKTRONIK/Test/blinky/build/zephyr/dts.cmake
    CMake Error at /home/soz/ncs/zephyr/cmake/modules/dts.cmake:308 (message):
      command failed with return code: No such file or directory
    Call Stack (most recent call first):
      /home/soz/ncs/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:67 (include)
      /home/soz/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:93 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: /home/soz/.local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/soz/ELEKTRONIK/Test/blinky/build -GNinja -DBOARD=nrf52840dongle_nrf52840 -S/home/soz/ELEKTRONIK/Test/blinky
    

  • Hi,

    I will continue helping in this case.

    Can you run the following command and upload the log file?

    cd ncs/zephyr
    tree > tree_log.txt

    Regards,
    Sigurd Hellesvik

  • From the log, I can find the file I thought were missing, so that should be fine.

    Can you try  to build the zephyr/samples/hello_world sample, and see if you still get the same error?

    I had 2 problems but I did a trick and it seems it solved for now.

    By the way, what was this trick?

    Regards,
    Sigurd Hellesvik

Related