Following nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0 Failure

Hi,

This is under Linux Ubutnu 20.
I am trying to evaluate the Nordic NRFConnect SDK following the tutorial at:

https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0


My tree is: (after running once west build)

├── build
│   ├── CMakeCache.txt
│   ├── CMakeFiles
│   ├── Kconfig
│   ├── zephyr
│   ├── zephyr_modules.txt
│   └── zephyr_settings.txt
├── CMakeLists.txt
├── proj.conf
├── src
│   └── main.c
└── zephyr
    ├── arch

I already ran these  inside of folder.

west init
west update

My env vars are:

ZEPHYR_BASE=/NRF_CONNECT/ncs/zephyr
TOOLCHAIN_ROOT=/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10
CMAKE_PREFIX_PATH=/NRF_CONNECT/ncs/zephyr
TOOLCHAIN_HOME=/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10
GNUARMEMB_TOOLCHAIN_PATH=/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10
PATH=/NRF_CONNECT/gn:/NRF_CONNECT/gn:/home/marius/perl5/bin:/home/marius/usr/bin:/home/marius/.linuxbrew/bin:/home/marius/bin:/home/marius/.local/bin:/opt/SEGGER/JLink/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin/flutter:/usr/bin/dart:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/dart/bin:/usr/lib/jvm/java-8-openjdk-amd64/bin:/usr/lib/dart/bin
CROSS_COMPILE=/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-

Then I The error is:

west build -b bl653_dvk
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /home/marius/_peg/ATOM/concepts/hello
-- Cache files will be written to: /home/marius/.cache/zephyr
-- Zephyr version: 3.1.99 (/home/marius/_peg/ATOM/concepts/hello/zephyr)
-- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
-- Board: bl653_dvk
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
CMake Error at zephyr/cmake/modules/generic_toolchain.cmake:45 (include):
  include could not find requested file:

    /NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10/cmake/toolchain/armclang/generic.cmake
Call Stack (most recent call first):
  zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:96 (include_boilerplate)
  CMakeLists.txt:3 (find_package)


-- Found BOARD.dts: /home/marius/_peg/ATOM/concepts/hello/zephyr/boards/arm/bl653_dvk/bl653_dvk.dts
CMake Error at zephyr/cmake/modules/dts.cmake:174 (message):
  command failed with return code: No such file or directory
Call Stack (most recent call first):
  zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:96 (include_boilerplate)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /home/marius/.local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/marius/hello/build -S/home/marius/_peg/ATOM/concepts/hello -GNinja

Parents
  • I  went over the make files and I fix it. The tutorial is missing steps, of course... Is done in a hurry!
    Here are the vars I use.
    I installed the NRfConnect into root /NRF_CONNECT so it can be shared among several pc
    not depending of $HOME because moving projects along creates problems with all the build
    encyclopedia procedures.

    These are my env

    #!/bin/bash
    export PATH=/NRF_CONNECT/gn:"$PATH"

    export ARMCLANG_TOOLCHAIN_PATH="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10"
    export GNUARMEMB_TOOLCHAIN_PATH="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10"
    export TOOLCHAIN_HOME="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10"

    export TOOLCHAIN_ROOT="/NRF_CONNECT/ncs/zephyr"
    export CMAKE_PREFIX_PATH="/NRF_CONNECT/ncs/zephyr"

    export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb  # for the gcc-arm-none-eabi-10.3-2021.10
    export CROSS_COMPILE="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-"
    export ZEPHYR_BASE="/NRF_CONNECT/ncs/zephyr"

    That west thing works now.

Reply
  • I  went over the make files and I fix it. The tutorial is missing steps, of course... Is done in a hurry!
    Here are the vars I use.
    I installed the NRfConnect into root /NRF_CONNECT so it can be shared among several pc
    not depending of $HOME because moving projects along creates problems with all the build
    encyclopedia procedures.

    These are my env

    #!/bin/bash
    export PATH=/NRF_CONNECT/gn:"$PATH"

    export ARMCLANG_TOOLCHAIN_PATH="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10"
    export GNUARMEMB_TOOLCHAIN_PATH="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10"
    export TOOLCHAIN_HOME="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10"

    export TOOLCHAIN_ROOT="/NRF_CONNECT/ncs/zephyr"
    export CMAKE_PREFIX_PATH="/NRF_CONNECT/ncs/zephyr"

    export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb  # for the gcc-arm-none-eabi-10.3-2021.10
    export CROSS_COMPILE="/NRF_CONNECT/tc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-"
    export ZEPHYR_BASE="/NRF_CONNECT/ncs/zephyr"

    That west thing works now.

Children
No Data
Related