jojo how are you setting up your environment? I’ll need more information about all the steps you’re following to get here. There are no obvious errors or issues that I’m seeing in your output. I have seen this in the past but usually using -p or deleting the build folder does the trick.

Have you modified your SDK/samples at all?

@jojo I got your email. Thanks for sharing more details.

It may make sense to try v1.5.1. I’ve updated the Windows instructions to use v1.5.1. Best to uninstall v1.5.0 completely and install v1.5.1.

Let me know how it goes!

  • jojo replied to this.

    jaredwolff

    Thanks for your help. I removed 1.5.0 and re installed 1.5.1 but still I am getting the same error (recurring codes `

    [0/1] Re-running CMake... ` and `-- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay` ). 
    
    `[0/1] Re-running CMake...
    Including boilerplate (Zephyr base (cached)): C:/Users/jeil_oh/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr
    -- Using NCS Toolchain 1.5.1 for building. (C:/Users/jeil_oh/ncs/v1.5.1/toolchain/cmake)
    -- Zephyr version: 2.4.99 (C:/Users/jeil_oh/ncs/v1.5.1/zephyr)
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Board: circuitdojo_feather_nrf9160
    -- Cache files will be written to: C:/Users/jeil_oh/ncs/v1.5.1/zephyr/.cache
    -- Found dtc: C:/Users/jeil_oh/ncs/v1.5.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (C:/Users/jeil_oh/ncs/v1.5.1/toolchain/opt)
    -- Found BOARD.dts: C:/Users/jeil_oh/ncs/v1.5.1/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/../../shared/conf/mcuboot/circuitdojo_feather_nrf9160ns.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Found devicetree overlay: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Generated zephyr.dts: C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/include/generated/device_extern.h
    Parsing C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/.config'
    No change to configuration in 'C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/.config'
    No change to Kconfig header in 'C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/include/generated/autoconf.h'
    MCUBoot bootloader key file: C:/Users/jeil_oh/ncs/v1.5.1/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    ninja: error: rebuilding 'build.ninja': interrupted by user
    ^C[152/165] Linking C executable zephyr\zephyr_prebuilt.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       17448 B     441856 B      3.95%
                SRAM:        4104 B       192 KB      2.09%
            IDT_LIST:          72 B         2 KB      3.52%
    [161/165] Generating ../../zephyr/dfu_application.zip
    ninja: build stopped: interrupted by user.

      jojo looks like the build nearly completed. Did you give it sufficient time? I noticed on your machine it was taking a while to building in the video you sent. Do you have an older machine? I would expect for it to take a while longer on an older machine.

      • jojo replied to this.

        jaredwolff

        Could you give an estimated time for compiling? I think I waited for about more than 15 mins. I believe my machine is not that old.

        On a modern machine a clean build should be about 1-2 minutes depending on the example size. Have you tried re-building without the -p flag after trying with? I recommend only using that flag when you want to blow away your build. (not necessary every time)

        Also, since you’re on Windows, have you tried building in both Command prompt and Power Shell? I seem to recall having issues on one and not the other.

        • jojo replied to this.
          9 days later

          jaredwolff

          Hi, It has been a bit while, but I am still struggling with this. One thing that I noticed, from comparing with the example compile output from the blinky sample on the documentation,

          I am getting this codes below
          No change to configuration in 'C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/.config'
          No change to Kconfig header in 'C:/Users/jeil_oh/ncs/v1.5.1/nfed/samples/blinky/build/mcuboot/zephyr/include/generated/autoconf.h'

          Instead of
          Configuration saved to '/Users/jaredwolff/Git/nrf-connect/ncs/zephyr/samples/basic/blinky/build/mcuboot/zephyr/.config'
          Kconfig header saved to '/Users/jaredwolff/Git/nrf-connect/ncs/zephyr/samples/basic/blinky/build/mcuboot/zephyr/include/generated/autoconf.h'

          I think this makes ``[0/1] Re-running CMake…` keep replicating

            jojo That output should be different.

            Did you try my suggestion of trying to build using both shells?

            • jojo replied to this.

              jaredwolff

              Yes, For powershell, west function does not work.

              `PS C:\Users\jeil_oh\ncs\v1.5.1\nfed\samples\blinky> west build -b circuitdojo_feather_nrf9160ns -p
              west : The term ‘west’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check
              the spelling of the name, or if a path was included, verify that the path is correct and try again.
              At line:1 char:1

                jojo This is great info. Thanks for looking into it a bit more. I think I have found the issue on my end. Let me try it out first and then I’ll get it shared so you can get going!

                @jojo got it! Turns out my being crafty trying to utilize the same mcuboot overlay was not working in Windows. (Worked fine in my environment thus I never caught it!)

                Please run a west update and try building again.

                Terms and Conditions | Privacy Policy