Hi Jared,

I was trying to load the blinky example (https://docs.jaredwolff.com/nrf9160-blinky-sample.html) but while performing west build -b circuitdojo_feather_nrf9160ns on cmd got below error.

– Configuring incomplete, errors occurred!
See also “C:/Users/Rahul Kidecha/ncs/v1.3.1/zephyr/samples/hello_world/build/CMakeFiles/CMakeOutput.log”.
See also “C:/Users/Rahul Kidecha/ncs/v1.3.1/zephyr/samples/hello_world/build/CMakeFiles/CMakeError.log”.
FATAL ERROR: command exited with status 1: ‘C:\Program Files\CMake\bin\cmake.EXE’ ‘-BC:\Users\Rahul Kidecha\ncs\v1.3.1\zephyr\samples\hello_world\build’ ‘-SC:\Users\Rahul Kidecha\ncs\v1.3.1\zephyr\samples\hello_world’ -GNinja -DBOARD=circuitdojo_feather_nrf9160ns

please tell me what needs to be done?

Regards,
Rahul Kidecha

    RKidecha can you copy and paste your full CMakeOutput.log and CMakeError.log? When you paste the text put them in a code block so it’s easier to read.

    Hi Jared,

    when I checked CMakeFiles in blinky I could only see “cmake.check_cache” file.

    So tried to build one more time and got the below error.

    C:\Users\rahul\ncs\v1.3.1\zephyr\samples\basic\blinky>west build -b circuitdojo_feather_nrf9160ns -p
    
    -- west build: making build dir C:\Users\rahul\ncs\v1.3.1\zephyr\samples\basic\blinky\build pristine
    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/Users/rahul/ncs/v1.3.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/Users/rahul/ncs/v1.3.1/zephyr/samples/basic/blinky
    -- Zephyr version: 2.3.0-rc1 (C:/Users/rahul/ncs/v1.3.1/zephyr)
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.0") found components: Interpreter
    -- Board: circuitdojo_feather_nrf9160ns
    -- Found west: C:/Python39/Scripts/west.exe (found suitable version "0.8.0", minimum required is "0.7.1")
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    CMake Error at C:/Users/rahul/ncs/v1.3.1/zephyr/cmake/toolchain/gnuarmemb/generic.cmake:16 (message):
      Nothing found at GNUARMEMB_TOOLCHAIN_PATH: 'C:/Program Files (x86)/GNU Arm
      Embedded Toolchain/9 2020-q2-update'
    Call Stack (most recent call first):
      C:/Users/rahul/ncs/v1.3.1/zephyr/cmake/generic_toolchain.cmake:64 (include)
      C:/Users/rahul/ncs/v1.3.1/zephyr/cmake/app/boilerplate.cmake:504 (include)
      C:/Users/rahul/ncs/v1.3.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      C:/Users/rahul/ncs/v1.3.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-BC:\Users\rahul\ncs\v1.3.1\zephyr\samples\basic\blinky\build' '-SC:\Users\rahul\ncs\v1.3.1\zephyr\samples\basic\blinky' -GNinja -DBOARD=circuitdojo_feather_nrf9160n

    Questions:

    1) do we have to keep gnuarmemb in the same folder of ncs of can keep anywhere in c drive?

    with Regards,
    Rahul Kidecha

      RKidecha Nothing found at GNUARMEMB_TOOLCHAIN_PATH: ’C:/Program Files (x86)/GNU Arm
      Embedded Toolchain/9 2020-q2-update’

      It appears that your toolchain is not installed correctly. I recommend you install the 9-2019-q4-major version. The instructions are updated to match this.

      RKidecha 1) do we have to keep gnuarmemb in the same folder of ncs of can keep anywhere in c drive?

      Anywhere on the drive.

      Hi Jared,

      I have installed GNU Arm Embedded Toolchain as you suggested and set the environmental variable as shown in the link.

      check the below output:

      C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>arm-none-eabi-gcc --version
      arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
      Copyright (C) 2019 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.
      
      C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>setx ZEPHYR_TOOLCHAIN_VARIANT gnuarmemb
      
      SUCCESS: Specified value was saved.
      
      C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>setx GNUARMEMB_TOOLCHAIN_PATH "C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major"
      
      SUCCESS: Specified value was saved.
      
      C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>

      Then again I tried to build in blinky example. Set the directory to the blink folder on CMD and tried to run west build -b circuitdojo_feather_nrf9160ns.

      I still got an error. check it below:

      C:\Users\rahul\ncs\zephyr\samples\basic\blinky>west build -b circuitdojo_feather_nrf9160ns
      -- west build: generating a build system
      Including boilerplate (Zephyr base (cached)): C:/Users/rahul/ncs/zephyr/cmake/app/boilerplate.cmake
      -- Application: C:/Users/rahul/ncs/zephyr/samples/basic/blinky
      -- Zephyr version: 2.4.0 (C:/Users/rahul/ncs/zephyr)
      -- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
      -- Board: circuitdojo_feather_nrf9160ns
      -- Cache files will be written to: C:/Users/rahul/ncs/zephyr/.cache
      -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
      CMake Error at C:/Users/rahul/ncs/zephyr/cmake/toolchain/gnuarmemb/generic.cmake:16 (message):
        Nothing found at GNUARMEMB_TOOLCHAIN_PATH: 'C:/Program Files (x86)/GNU Arm
        Embedded Toolchain/9 2020-q2-update'
      Call Stack (most recent call first):
        C:/Users/rahul/ncs/zephyr/cmake/generic_toolchain.cmake:65 (include)
        C:/Users/rahul/ncs/zephyr/cmake/app/boilerplate.cmake:589 (include)
        C:/Users/rahul/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
        C:/Users/rahul/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
        CMakeLists.txt:4 (find_package)
      
      
      -- Configuring incomplete, errors occurred!
      FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=c:\python39\python.exe' '-BC:\Users\rahul\ncs\zephyr\samples\basic\blinky\build' '-SC:\Users\rahul\ncs\zephyr\samples\basic\blinky' -GNinja
      
      C:\Users\rahul\ncs\zephyr\samples\basic\blinky>

      I do not know what is going wrong, from the last three days resolving the same issue.

      Please Help Jared.

      Regards, Rahul Kidecha

        RKidecha Nothing found at GNUARMEMB_TOOLCHAIN_PATH: ’C:/Program Files (x86)/GNU Arm
        Embedded Toolchain/9 2020-q2-update’

        You need to either remove GNUARMEMB_TOOLCHAIN_PATH or update it in your System Environment Variables screen. Here’s how to update/remove.

        In the end it should be equal to C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major

        I recommend you try an internet searches during your downtime to find the error. Reading the error carefully can provide many clues. That’s the way I learned. You can too. 😀

        Hi Jared,

        I took the help of the Nordic Community and the problem is solved for the environmental variable. Flash the blinky program using the west everything worked properly.

        Terms and Conditions | Privacy Policy