Hi folks, I’m trying to follow this tute:
https://docs.circuitdojo.com/nrf9160-feather/sdk-setup-windows.html

I get most of the way through using the nRF9160 feather board.

Zephyr Tools: Setup
Zephyr Tools: Init Repo – https://github.com/circuitdojo/nrf9160-feather-examples-and-drivers.git
Zephyr Tools: Build
– selected circuitdojo_feather_nrf9160
– selected blinky app

I get this error when compiling:

Executing task: west build -b thingy91_nrf9160 -d build\thingy91_nrf9160 

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: D:/Desktop/CircuitDojo/nfed/samples/blinky
-- CMake version: 3.22.0
-- Cache files will be written to: D:/Desktop/CircuitDojo/zephyr/.cache
-- Zephyr version: 3.3.99 (D:/Desktop/CircuitDojo/zephyr)
-- Found west (found suitable version "1.3.0", minimum required is "0.7.1")
-- Board: thingy91_nrf9160
CMake Error at D:/Desktop/CircuitDojo/zephyr/cmake/modules/FindZephyr-sdk.cmake:56 (find_package):
  Could not find a package configuration file provided by "Zephyr-sdk"
  (requested version 0.15) with any of the following names:

    Zephyr-sdkConfig.cmake
    zephyr-sdk-config.cmake

  Add the installation prefix of "Zephyr-sdk" to CMAKE_PREFIX_PATH or set
  "Zephyr-sdk_DIR" to a directory containing one of the above files.  If
  "Zephyr-sdk" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  D:/Desktop/CircuitDojo/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package)
  D:/Desktop/CircuitDojo/zephyr/cmake/modules/dts.cmake:9 (find_package)
  D:/Desktop/CircuitDojo/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
  D:/Desktop/CircuitDojo/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  D:/Desktop/CircuitDojo/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Users\hemon\.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE' -DWEST_PYTHON=C:/Users/hemon/.zephyrtools/env/Scripts/python.exe '-BD:\Desktop\CircuitDojo\nfed\samples\blinky\build\thingy91_nrf9160' -GNinja '-SD:\Desktop\CircuitDojo\nfed\samples\blinky'

Can somebody please guide me and tell me what I’m doing wrong? Many thanks!

Regards,
Hemon

    Hi Hermon

    You should be selecting circuitdojo_feather_nrf9160_ns. It appears your target is currently set to thingy91_nrf9160 (see the first line of your log output).

    Also, the CircuitDojo extension doesn’t play nice with Nordic’s extension so you’ll have to disable it if you have it installed.

    Could not find a package configuration file provided by “Zephyr-sdk”

    This usually means the environment was not set up correctly. I’m assuming you started from scratch and didn’t clone any files?

      Thanks Jared … I have switched to circuitdogo_feather_nrf9160_ns now, but problem persists. I’ve also removed any extension that started with nRF, and restarted VSCode, I don’t recall installing anything from Nordic. This time I’m trying to compile the LED_PWM sample project.

      It seems to be having issue with “Zephyr-sdk” … when I did the >setup, I selected “zephyr-sdk-0.16.4” instead of “zephyr-sdk-0.15.1” … is that correct?

      Executing task: west build -b circuitdojo_feather_nrf9160_ns -d build\circuitdojo_feather_nrf9160_ns 
      
      -- west build: generating a build system
      Loading Zephyr default modules (Zephyr base (cached)).
      -- Application: D:/CircuitDojo/nfed/samples/led_pwm
      -- CMake version: 3.22.0
      -- Cache files will be written to: D:/CircuitDojo/zephyr/.cache
      -- Zephyr version: 3.3.99 (D:/CircuitDojo/zephyr)
      -- Found west (found suitable version "1.3.0", minimum required is "0.7.1")
      -- Board: circuitdojo_feather_nrf9160_ns
      CMake Error at D:/CircuitDojo/zephyr/cmake/modules/FindZephyr-sdk.cmake:56 (find_package):
        Could not find a package configuration file provided by "Zephyr-sdk"
        (requested version 0.15) with any of the following names:
      
          Zephyr-sdkConfig.cmake
          zephyr-sdk-config.cmake
      
        Add the installation prefix of "Zephyr-sdk" to CMAKE_PREFIX_PATH or set
        "Zephyr-sdk_DIR" to a directory containing one of the above files.  If
        "Zephyr-sdk" provides a separate development package or SDK, be sure it has
        been installed.
      Call Stack (most recent call first):
        D:/CircuitDojo/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package)
        D:/CircuitDojo/zephyr/cmake/modules/dts.cmake:9 (find_package)
        D:/CircuitDojo/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
        D:/CircuitDojo/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
        D:/CircuitDojo/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
        CMakeLists.txt:5 (find_package)
      
      
      -- Configuring incomplete, errors occurred!
      FATAL ERROR: command exited with status 1: 'C:\Users\hemon\.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE' -DWEST_PYTHON=C:/Users/hemon/.zephyrtools/env/Scripts/python.exe '-BD:\CircuitDojo\nfed\samples\led_pwm\build\circuitdojo_feather_nrf9160_ns' -GNinja '-SD:\CircuitDojo\nfed\samples\led_pwm'  
      
       *  The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command west build -b circuitdojo_feather_nrf9160_ns -d build\circuitdojo_feather_nrf9160_ns" terminated with exit code: 1. 

        I just redid the >setup and selected “zephyr-sdk-0.15.1” … then >init the repo once again, but selecting the directory that had already been downloaded, then >build …

        Executing task: west build -b circuitdojo_feather_nrf9160_ns -d build\circuitdojo_feather_nrf9160_ns 
        
        -- west build: generating a build system
        Loading Zephyr default modules (Zephyr base (cached)).
        -- Application: D:/CircuitDojo/nfed/samples/led_pwm
        -- CMake version: 3.22.0
        -- Cache files will be written to: D:/CircuitDojo/zephyr/.cache
        -- Zephyr version: 3.3.99 (D:/CircuitDojo/zephyr)
        -- Found west (found suitable version "1.3.0", minimum required is "0.7.1")
        -- Board: circuitdojo_feather_nrf9160_ns
        CMake Error at D:/CircuitDojo/zephyr/cmake/modules/FindZephyr-sdk.cmake:56 (find_package):
          Could not find a package configuration file provided by "Zephyr-sdk"
          (requested version 0.15) with any of the following names:
        
            Zephyr-sdkConfig.cmake
            zephyr-sdk-config.cmake
        
          Add the installation prefix of "Zephyr-sdk" to CMAKE_PREFIX_PATH or set
          "Zephyr-sdk_DIR" to a directory containing one of the above files.  If
          "Zephyr-sdk" provides a separate development package or SDK, be sure it has
          been installed.
        Call Stack (most recent call first):
          D:/CircuitDojo/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package)
          D:/CircuitDojo/zephyr/cmake/modules/dts.cmake:9 (find_package)
          D:/CircuitDojo/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
          D:/CircuitDojo/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
          D:/CircuitDojo/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
          CMakeLists.txt:5 (find_package)
        
        
        -- Configuring incomplete, errors occurred!
        FATAL ERROR: command exited with status 1: 'C:\Users\hemon\.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE' -DWEST_PYTHON=C:/Users/hemon/.zephyrtools/env/Scripts/python.exe '-BD:\CircuitDojo\nfed\samples\led_pwm\build\circuitdojo_feather_nrf9160_ns' -GNinja '-SD:\CircuitDojo\nfed\samples\led_pwm'  
        
         *  The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command west build -b circuitdojo_feather_nrf9160_ns -d build\circuitdojo_feather_nrf9160_ns" terminated with exit code: 1. 

          Seems like the project did not unit properly. You can run init on the same folder to re-run the Initialization. It should download got deps and also install pip dependencies. If you can include the log for that that would be helpful.

          Another step you can take is delete that CircuitDojo folder and start from scratch.

            So … with the “zephyr-sdk-0.15.1”, I deleted the CircuitDojo folder again and started >init, then redid the >init again on the same folder (because there was an error in the first one) … then >Build and this time it worked.

            Executing task: west build -b circuitdojo_feather_nrf9160_ns -d build\circuitdojo_feather_nrf9160_ns 
            
            -- west build: generating a build system
            Loading Zephyr default modules (Zephyr base).
            -- Application: D:/CircuitDojo/nfed/samples/led_pwm
            -- CMake version: 3.22.0
            -- Found Python3: C:/Users/hemon/.zephyrtools/env/Scripts/python.exe (found suitable exact version "3.12.6") found components: Interpreter
            -- Cache files will be written to: D:/CircuitDojo/zephyr/.cache
            -- Zephyr version: 3.3.99 (D:/CircuitDojo/zephyr)
            -- Found west (found suitable version "1.3.0", minimum required is "0.7.1")
            -- Board: circuitdojo_feather_nrf9160_ns
            -- Found host-tools: zephyr 0.15.1 (C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
            -- Found toolchain: zephyr 0.15.1 (C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
            -- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
            -- Found BOARD.dts: D:/CircuitDojo/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns.dts
            -- Generated zephyr.dts: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/zephyr/zephyr.dts
            -- Generated devicetree_generated.h: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/zephyr/include/generated/devicetree_generated.h
            -- Including generated dts.cmake file: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/zephyr/dts.cmake
            Parsing D:/CircuitDojo/zephyr/Kconfig
            Loaded configuration 'D:/CircuitDojo/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_ns_defconfig'
            Merged configuration 'D:/CircuitDojo/nfed/samples/led_pwm/prj.conf'
            Configuration saved to 'D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/zephyr/.config'
            Kconfig header saved to 'D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/zephyr/include/generated/autoconf.h'
            -- Found GnuLd: c:/users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
            -- The C compiler identification is GNU 12.1.0
            -- The CXX compiler identification is GNU 12.1.0
            -- The ASM compiler identification is GNU
            -- Found assembler: C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
            -- Found Python3: C:/Users/hemon/.zephyrtools/env/Scripts/python.exe (found version "3.12.6") found components: Interpreter
            Changed board to secure circuitdojo_feather_nrf9160 (NOT NS)
            
            === child image mcuboot -  begin ===
            loading initial cache file D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/child_image_preload.cmake
            Loading Zephyr default modules (Zephyr base).
            -- Application: D:/CircuitDojo/bootloader/mcuboot/boot/zephyr
            -- CMake version: 3.22.0
            -- Found Python3: C:/Users/hemon/.zephyrtools/env/Scripts/python.exe (found suitable exact version "3.12.6") found components: Interpreter
            -- Cache files will be written to: D:/CircuitDojo/zephyr/.cache
            -- Zephyr version: 3.3.99 (D:/CircuitDojo/zephyr)
            -- Found west (found suitable version "1.3.0", minimum required is "0.7.1")
            -- Board: circuitdojo_feather_nrf9160
            -- Found host-tools: zephyr 0.15.1 (C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
            -- Found toolchain: zephyr 0.15.1 (C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1)
            -- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
            -- Found BOARD.dts: D:/CircuitDojo/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
            -- Found devicetree overlay: D:/CircuitDojo/bootloader/mcuboot/boot/zephyr/app.overlay
            -- Generated zephyr.dts: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/zephyr/zephyr.dts
            -- Generated devicetree_generated.h: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/zephyr/include/generated/devicetree_generated.h
            -- Including generated dts.cmake file: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/zephyr/dts.cmake
            
            warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
            value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
            http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in    
            the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too. Parsing D:/CircuitDojo/bootloader/mcuboot/boot/zephyr/Kconfig Loaded configuration 'D:/CircuitDojo/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_defconfig' Merged configuration 'D:/CircuitDojo/bootloader/mcuboot/boot/zephyr/prj.conf' Merged configuration 'D:/CircuitDojo/bootloader/mcuboot/boot/zephyr/boards/circuitdojo_feather_nrf9160.conf' Merged configuration 'D:/CircuitDojo/nrf/modules/mcuboot/tfm.conf' Merged configuration 'D:/CircuitDojo/nrf/modules/mcuboot/fih_low_enable.conf' Merged configuration 'D:/CircuitDojo/nrf/subsys/partition_manager/partition_manager_enabled.conf'
            Merged configuration 'D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf' Configuration saved to 'D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/zephyr/.config' Kconfig header saved to 'D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot/zephyr/include/generated/autoconf.h' -- Found GnuLd: c:/users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") -- The C compiler identification is GNU 12.1.0 -- The CXX compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe CMake Warning at D:/CircuitDojo/zephyr/CMakeLists.txt:839 (message): No SOURCES given to Zephyr library: lib__libc__common Excluding target from build. MCUBoot bootloader key file: D:/CircuitDojo/bootloader/mcuboot/root-ec-p256.pem -- Configuring done -- Generating done -- Build files have been written to: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/mcuboot === child image mcuboot - end === CMake Warning at D:/CircuitDojo/nrf/modules/mcuboot/CMakeLists.txt:310 (message):
            --------------------------------------------------------- --- WARNING: Using default MCUBoot key, it should not --- --- be used for production. --- --------------------------------------------------------- CMake Warning at D:/CircuitDojo/zephyr/CMakeLists.txt:839 (message): No SOURCES given to Zephyr library: lib__libc__common Excluding target from build. Dropping partition 'nrf_modem_lib_trace' since its size is 0. Dropping partition 'nonsecure_storage' since it is empty. -- Configuring done -- Generating done -- Build files have been written to: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns -- west build: building application [2/259] Generating include/generated/version.h -- Zephyr version: 3.3.99 (D:/CircuitDojo/zephyr), build: v3.3.99-ncs1-2 [6/259] Performing build step for 'mcuboot_subimage' [1/207] Generating include/generated/version.h -- Zephyr version: 3.3.99 (D:/CircuitDojo/zephyr), build: v3.3.99-ncs1-2 [197/207] Linking C executable zephyr\zephyr_pre0.elf [201/207] Linking C executable zephyr\zephyr_pre1.elf [207/207] Linking C executable zephyr\zephyr.elf Memory region Used Size Region Size %age Used FLASH: 44356 B 48 KB 90.24% RAM: 24 KB 32 KB 75.00% IDT_LIST: 0 GB 2 KB 0.00% [7/259] Generating ../../tfm/CMakeCache.txt -- Found Git: C:/Users/hemon/AppData/Local/Programs/Git/cmd/git.exe (found version "2.47.0.windows.2")
            -- The C compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: C:/Users/hemon/.zephyrtools/toolchain/zephyr-sdk-0.15.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe -- Found Python3: C:/Users/hemon/.zephyrtools/env/Scripts/python.exe (found version "3.12.6") found components: Interpreter -- Found Python3: C:/Users/hemon/.zephyrtools/env/Scripts/python.exe (found suitable exact version "3.12.6") found components: Interpreter -- Cache files will be written to: D:/CircuitDojo/zephyr/.cache -- Configuring done -- Generating done -- Build files have been written to: D:/CircuitDojo/nfed/samples/led_pwm/build/circuitdojo_feather_nrf9160_ns/tfm [17/259] Performing build step for 'tfm' [159/159] Generating ../bin/tfm_s.elf [22/259] Performing install step for 'tfm' -- Install configuration: "MinSizeRel" [153/259] Building C object CMakeFiles/app.dir/src/main.c.obj D:/CircuitDojo/nfed/samples/led_pwm/src/main.c:116:6: warning: return type of 'main' is not 'int' [-Wmain] 116 | void main(void) | ^~~~ [240/259] Linking C executable zephyr\zephyr_pre0.elf [244/259] Linking C executable zephyr\zephyr_pre1.elf [250/259] Linking C executable zephyr\zephyr.elf Memory region Used Size Region Size %age Used FLASH: 35984 B 448 KB 7.84% RAM: 6904 B 211608 B 3.26% IDT_LIST: 0 GB 2 KB 0.00% [254/259] Generating ../../zephyr/app_update.bin image.py: sign the payload [255/259] Generating ../../zephyr/app_signed.hex image.py: sign the payload [257/259] Generating ../../zephyr/app_test_update.hex image.py: sign the payload [259/259] Generating zephyr/merged.hex * Terminal will be reused by tasks, press any key to close it. '

              Looks like you’re good now! 😊

              I’ll look into why the newer toolchain is failing on Windows.

                8 days later

                Hi,
                I had a similar issue with 0.16.4, for some reason the zephyr-sdk-0.16.4_windows-x86_64_minimal package is not properly unpacked during the setup.
                As a workaround, I unpacked it manually together with arm toolchain in C:\Users\{USER_NAME}\.zephyrtools\toolchain and it works this way.

                Terms and Conditions | Privacy Policy