This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Having Trouble getting the nRF-Connected SDK running

Hello everyone,

I getting stocked now for 1,5 days to get the nRF-Connected SDK running

I am using macOSCatalina 10.15.7

segger 5.20

Nordic SDK Tag v1.4.0

using python 3.9.0 via pyenv (before tried it without pyenv, also doesn't working)

I was going through the getting Started Assistent several times, I also deinstalled all things mentioned in the 1. install the toolchain / 2. clone the nrf Connected SDK and installed them again, cause first i thougth there are some python Issues. I also tried to get run with the toolchain manager, but this also wasn't working. I wasn't able to open a nrf Connected SDK Project in Segger at anytime. At the moment the Error which occur when I try to do this is (only Toolchain via Getting Started Assistent is installed (/opt/gnuarmemb), I have uninstalled the toolchain from toolchain manager, cause of the experimental notice, and I was only triyng it, after the getting Started Assistent Worklflow fails):

Creating solution asset_tracker.emProject
/usr/local/Cellar/cmake/3.19.1/bin/cmake -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160 -B/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns -S/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb -DPYTHON_EXECUTABLE=/Users/RudolphAschmoneit/.pyenv/shims/python -DCMAKE_MAKE_PROGRAM=/usr/local/Cellar/ninja/1.10.1_3/bin/ninja -DDTC=/usr/local/Cellar/dtc/1.6.0/bin/dtc -D WEST=/Users/RudolphAschmoneit/.pyenv/shims/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Applications/arm_segger_embedded_studio_v520b_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr)
-- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns
-- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
-- Found dtc: /usr/local/Cellar/dtc/1.6.0/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb)
-- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
Parsing /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/Kconfig
Loaded configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/prj.conf'
Configuration saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/.config'
Kconfig header saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
-- Configuring incomplete, errors occurred!
See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeOutput.log".
See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeError.log".
Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake
nrf9160dk_nrf9160ns.dts.pre.tmp:357.32-361.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property
nrf9160dk_nrf9160ns.dts.pre.tmp:56.42-68.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
nrf9160dk_nrf9160ns.dts.pre.tmp:305.19-311.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/extensions.cmake:1557 (message):
Assertion failed: The toolchain is unable to build a dummy C file. See
CMakeError.log.
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/CMakeLists.txt:42 (assert)



error: cmake failed
create_nordic_project.py failed (1)

See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeError.log".

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags:

The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2: error: ld returned 1 exit status


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags:

The output was:
1
/opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld: /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2: error: ld returned 1 exit status

See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeOutput.log".:

The target system is: Generic - 2.4.0 - arm
The host system is: Darwin - 19.6.0 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
Build flags:
Id flags: -c

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"

The C compiler identification is GNU, found in "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/3.19.1/CompilerIdC/CMakeCCompilerId.o"

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /opt/gnuarmemb/bin/arm-none-eabi-g++
Build flags:
Id flags: -c

The output was:
0


Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"

The CXX compiler identification is GNU, found in "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/3.19.1/CompilerIdCXX/CMakeCXXCompilerId.o"

Checking whether the ASM compiler is GNU using "--version" matched "(GNU assembler)|(GCC)|(Free Software Foundation)":
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I also tried to build via command line using 

source <NCS root folder>/zephyr/zephyr-env.sh

cd <NCS root folder>/nrf/applications/asset tracker

west build -b nrf9160dk_nrf9160ns -d build

then the output is:

Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr)
-- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns
-- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/generic_toolchain.cmake:65 (include):
include could not find load file:

/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/toolchain//generic.cmake
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake:589 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:20 (find_package)


-- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/dts.cmake:164 (message):
command failed with return code: No such file or directory
Call Stack (most recent call first):
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/app/boilerplate.cmake:590 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:20 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 -B/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker/build -S/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/nrf/applications/asset_tracker -GNinja -DBOARD=nrf9160dk_nrf9160ns

Having a closer look to 

CMake Error at /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/generic_toolchain.cmake:65 (include):
include could not find load file:

/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRF_Connect_SDK/ncs/zephyr/cmake/toolchain//generic.cmake it seem like ZEPHYR_TOOLCHAIN_VARIANT is set to an empty string. Also I am a bit familiar with cmake, I never used Zephyr and west before, I am not sure if it is a good and not to time consuming idea to try to manually debug/fix the cmake, cause it looks like an internal dependencies error.


But maybe this errorlogs help you to help me?
Or would you recommend to clean everything up and reinstall it in an clean python enverionment using pipx or pipenv or both? (I am not very familliar with this, but it seems like a good concept for me), but i am also wondering, cause installing ninja via homebrew always installs python 3.9 via homebrew, and i would prefer to only use pyenv managed versions.
So when I do the reinstall any suggestions on how to clean up best before?

I am thankful for any help, cause at the moment I am a little bit frustrated.

so Thank you in Advance!

Greetings Rudolph

Parents
  • After I got stuck here, I tried to get zephyr stand alone running, so the error I have mentioned above when building in the command line was in my opinion while there was no ZEPHYR_TOOLCHAIN_VARIANT set, in the getting started with zephyr this is explained a bit more in depth, but maybe someone could explain like Nordic is handling this, or is this handeld by segger, cause segger gets the path to the toolchain,

    the other error I got, when using segger is obviously related to an buf in cmake 3.19/3.19.1 as mentioned here:
    https://github.com/zephyrproject-rtos/zephyr/pull/30272/commits/86bc6e1ae4c034f23ba6606c3aaf190dcb6c0751

    I will try this workaround and/or downgrade cmake and will try get nRF_Connected_SDK running again.

  • Ok, I doesn't downgrade cmake, but I implemented the Workaround mentioned here:

    https://github.com/zephyrproject-rtos/zephyr/pull/30272/commits/86bc6e1ae4c034f23ba6606c3aaf190dcb6c0751

    Now I can build zephyr and also nRF_Connect_SDK Applications via Toolchain with this Commands:

    source <NCS root folder>/zephyr/zephyr-env.sh

    cd <NCS root folder>/nrf/applications/asset tracker

    west build -b nrf9160dk_nrf9160ns -d build

    west flash

    Segger is still not working because of Kconfig but I haven't time to get deeper in to this and building via Commandline is absolutly fine for me. So let's hope that cmake will fix there error soon.

  • Hello, Rudolph!

    Good to hear that you are managing to build now. We are aware that there is a bug in the newest version of CMake and it is being worked on!

    As for building in SES, could you try the following:
    1. Close SES
    2. Call the following command from terminal: rm -r ~/Library/Caches/zephyr
    3. Reopen SES and open your desired NCS project with a "Clean Build Folder"

    Does that help?

    Best regards,
    Carl Richard

  • Hy, thanks for your reply,

    I tried the solution you mentioned before, but I tried it now another time:

    I get the following Error:




    Creating solution asset_tracker.emProject
    /usr/local/Cellar/cmake/3.19.1/bin/cmake -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160 -B/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns -S/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/Applications/ARM -DPYTHON_EXECUTABLE=/Users/RudolphAschmoneit/.pyenv/shims/python -DCMAKE_MAKE_PROGRAM=/usr/local/Cellar/ninja/1.10.1_3/bin/ninja -DDTC=/usr/local/Cellar/dtc/1.6.0/bin/dtc -D WEST=/Users/RudolphAschmoneit/.pyenv/shims/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Applications/arm_segger_embedded_studio_v520b_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
    -- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker
    -- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr)
    -- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160ns
    -- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
    -- Found dtc: /usr/local/Cellar/dtc/1.6.0/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (/Applications/ARM)
    -- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
    -- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
    Parsing /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/Kconfig
    Loaded configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
    Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/prj.conf'
    Configuration saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/.config'
    Kconfig header saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.3.1
    -- The CXX compiler identification is GNU 9.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /Applications/ARM/bin/arm-none-eabi-gcc
    -- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/samples/spm
    -- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr)
    -- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160
    -- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
    -- Found toolchain: gnuarmemb (/Applications/ARM)
    -- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/samples/spm/nrf9160dk_nrf9160.overlay
    -- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/include/generated/devicetree_unfixed.h
    Parsing /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/Kconfig
    Loaded configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/spm.conf'
    Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/.config'
    Kconfig header saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/include/generated/autoconf.h'
    -- Configuring incomplete, errors occurred!
    See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/CMakeFiles/CMakeOutput.log".
    -- Configuring incomplete, errors occurred!
    See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeOutput.log".
    See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeError.log".
    Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/cmake/app/boilerplate.cmake
    nrf9160dk_nrf9160ns.dts.pre.tmp:357.32-361.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property
    nrf9160dk_nrf9160ns.dts.pre.tmp:56.42-68.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
    nrf9160dk_nrf9160ns.dts.pre.tmp:305.19-311.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)

    === child image spm - begin ===
    Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/cmake/app/boilerplate.cmake
    CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
    CMake Error at ../../cmake/multi_image.cmake:214 (message):
    CMake generation for spm failed, aborting. Command: 1
    Call Stack (most recent call first):
    ../../cmake/multi_image.cmake:75 (add_child_image_from_source)
    ../../samples/CMakeLists.txt:22 (add_child_image)



    error: cmake failed
    create_nordic_project.py failed (1)


    So Cmake is unable to find Ninja.

    I double checked the path of Ninja in the SES Tools/Options/nRF Connect Section,

    I get a similar Error when I build from Commandline too, when I forget to delete the old build folder before, I think that have something to do with the Cmake Cache Stuff ?

    But I also have double checked if the build folder is deleted before opening SES. Are there Nordic specific Caches I also have to delete before? But in my understanding anything temporary goes to the build folder, am I right?

    Thank you in Advance.

    Many Greetings

Reply
  • Hy, thanks for your reply,

    I tried the solution you mentioned before, but I tried it now another time:

    I get the following Error:




    Creating solution asset_tracker.emProject
    /usr/local/Cellar/cmake/3.19.1/bin/cmake -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160 -B/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns -S/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/Applications/ARM -DPYTHON_EXECUTABLE=/Users/RudolphAschmoneit/.pyenv/shims/python -DCMAKE_MAKE_PROGRAM=/usr/local/Cellar/ninja/1.10.1_3/bin/ninja -DDTC=/usr/local/Cellar/dtc/1.6.0/bin/dtc -D WEST=/Users/RudolphAschmoneit/.pyenv/shims/west -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Applications/arm_segger_embedded_studio_v520b_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
    -- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker
    -- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr)
    -- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160ns
    -- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
    -- Found dtc: /usr/local/Cellar/dtc/1.6.0/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (/Applications/ARM)
    -- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
    -- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
    Parsing /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/Kconfig
    Loaded configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
    Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/prj.conf'
    Configuration saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/.config'
    Kconfig header saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.3.1
    -- The CXX compiler identification is GNU 9.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: /Applications/ARM/bin/arm-none-eabi-gcc
    -- Application: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/samples/spm
    -- Zephyr version: 2.4.0 (/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr)
    -- Found Python3: /Users/RudolphAschmoneit/.pyenv/versions/3.9.0/bin/python3.9 (found suitable exact version "3.9.0") found components: Interpreter
    -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160
    -- Cache files will be written to: /Users/RudolphAschmoneit/Library/Caches/zephyr
    -- Found toolchain: gnuarmemb (/Applications/ARM)
    -- Found BOARD.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/samples/spm/nrf9160dk_nrf9160.overlay
    -- Generated zephyr.dts: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/include/generated/devicetree_unfixed.h
    Parsing /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/Kconfig
    Loaded configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/spm.conf'
    Merged configuration '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/.config'
    Kconfig header saved to '/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/zephyr/include/generated/autoconf.h'
    -- Configuring incomplete, errors occurred!
    See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/spm/CMakeFiles/CMakeOutput.log".
    -- Configuring incomplete, errors occurred!
    See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeOutput.log".
    See also "/Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/nrf/applications/asset_tracker/build_nrf9160dk_nrf9160ns/CMakeFiles/CMakeError.log".
    Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/cmake/app/boilerplate.cmake
    nrf9160dk_nrf9160ns.dts.pre.tmp:357.32-361.5: Warning (simple_bus_reg): /soc/cryptocell-sw: missing or empty reg/ranges property
    nrf9160dk_nrf9160ns.dts.pre.tmp:56.42-68.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/flash-controller@39000: duplicate unit-address (also used in node /soc/peripheral@40000000/kmu@39000)
    nrf9160dk_nrf9160ns.dts.pre.tmp:305.19-311.3: Warning (unique_unit_address_if_enabled): /soc/peripheral@40000000/clock@5000: duplicate unit-address (also used in node /soc/peripheral@40000000/power@5000)
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)

    === child image spm - begin ===
    Including boilerplate (Zephyr base): /Users/RudolphAschmoneit/Documents/Arbeit/VRaktion/nordic/nRFConnectedSDK/ncs/zephyr/cmake/app/boilerplate.cmake
    CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
    CMake Error at ../../cmake/multi_image.cmake:214 (message):
    CMake generation for spm failed, aborting. Command: 1
    Call Stack (most recent call first):
    ../../cmake/multi_image.cmake:75 (add_child_image_from_source)
    ../../samples/CMakeLists.txt:22 (add_child_image)



    error: cmake failed
    create_nordic_project.py failed (1)


    So Cmake is unable to find Ninja.

    I double checked the path of Ninja in the SES Tools/Options/nRF Connect Section,

    I get a similar Error when I build from Commandline too, when I forget to delete the old build folder before, I think that have something to do with the Cmake Cache Stuff ?

    But I also have double checked if the build folder is deleted before opening SES. Are there Nordic specific Caches I also have to delete before? But in my understanding anything temporary goes to the build folder, am I right?

    Thank you in Advance.

    Many Greetings

Children
Related