NCS 2.0 asset tracker v2 compile fail

Hello,

The following error message appears when the original code "asset_tracker_v2" under NCS 2.0 is compiled with vs code IDE,

Can anyone give me some comments? Thanks!

 

Parents
  • Hello!

    Did you install NCS through the Toolchain Manager in nRF Connect for Desktop?

    What device are you trying to compile for?

    best regards,

    Einar

  • Hi Einar,

    Did you install NCS through the Toolchain Manager in nRF Connect for Desktop?

    -> Yes. 

    What device are you trying to compile for?

    -> nrf9160dk_nrf9160_ns

    BR,
    Devin

  • Hi

    Are you still having issues with this?

    There seemed to be problems after an nRF Connect for VS Code update last week, but this appears to have been sorted out on my end by now.

    -Einar

  • Hi Einar,

    I updated to ncs v2.0.1 and found that the problem still exists. The log information I compiled is as follows:

    D:\ncs\gitbranch\nrf (HEAD detached at ffd959d)
    λ west zephyr-export
    Zephyr (D:/ncs/gitbranch/zephyr/share/zephyr-package/cmake)
    has been added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\Zephyr
    
    ZephyrUnittest (D:/ncs/gitbranch/zephyr/share/zephyrunittest-package/cmake)
    has been added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\ZephyrUnittest
    
    
    D:\ncs\gitbranch\nrf (HEAD detached at ffd959d)
    λ cd applications\asset_tracker_v2\
    
    D:\ncs\gitbranch\nrf\applications\asset_tracker_v2 (HEAD detached at ffd959d)
    λ west build -b nrf9160dk_nrf9160_ns -p
    -- west build: making build dir D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build pristine
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.overlay
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/dts.cmake
    
    warning: Experimental symbol NET_SOCKETS_OFFLOAD is enabled.
    
    Parsing D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image b0 -  begin ===
    loading initial cache file D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).-- Application: D:/ncs/gitbranch/nrf/samples/bootloader
    
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/dts.cmake
    Parsing D:/ncs/gitbranch/zephyr/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'D:/ncs/gitbranch/nrf/samples/bootloader/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    CMake Warning at D:/ncs/gitbranch/nrf/subsys/bootloader/CMakeLists.txt:21 (message):
    
    
            --------------------------------------------------------
            --- WARNING: When using the immutable bootloader on  ---
            --- this SoC, the UICR must be erased when flashing. ---
            --- E.g. by calling 'west flash --erase'             ---
            --------------------------------------------------------
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0
    === child image b0 -  end ===
    
    -- Found Python3: C:/Python39/python.exe (found version "3.9.6") found components: Interpreter
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/dts.cmake
    Parsing D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/fw_info.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/build_s1.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    MCUBoot bootloader key file: D:/ncs/gitbranch/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot
    === child image mcuboot -  end ===
    
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image s1_image -  begin ===
    loading initial cache file D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).-- Application: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr
    
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/dts.cmake
    Parsing D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/fw_info.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/build_s1.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    MCUBoot bootloader key file: D:/ncs/gitbranch/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image
    === child image s1_image -  end ===
    
    CMake Warning at D:/ncs/gitbranch/nrf/modules/mcuboot/CMakeLists.txt:281 (message):
    
    
            ---------------------------------------------------------
            --- WARNING: Using default MCUBoot key, it should not ---
            --- be used for production.                           ---
            ---------------------------------------------------------
    
    
    
    
    CMake Warning at D:/ncs/gitbranch/zephyr/CMakeLists.txt:1803 (message):
      __ASSERT() statements are globally ENABLED
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build
    -- west build: building application
    [0/428] Generating signing key
    [1/428] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr), build: v3.0.99-ncs1
    [6/428] Generating extra provision key files
    [47/428] Performing build step for 'b0_subimage'
    [1/160] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr), build: v3.0.99-ncs1
    [150/160] Linking C executable zephyr\zephyr_pre0.elf
    
    [154/160] Linking C executable zephyr\zephyr_pre1.elf
    
    [160/160] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       23212 B        32 KB     70.84%
                SRAM:       37264 B     178968 B     20.82%
            IDT_LIST:          0 GB         2 KB      0.00%
    [68/428] Generating ../../tfm/CMakeCache.txt
    -- The C compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    -- Found Python3: C:/Python39/python.exe (found version "3.9.6") found components: Interpreter
    Start to generate partition files:
    Generating Header: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/crypto/psa_manifest/tfm_crypto.h
    Generating Intermedia: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c
    Generating Loadinfo: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c
    Generating Header: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/platform/psa_manifest/tfm_platform.h
    Generating Intermedia: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c
    Generating Loadinfo: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c
    Per-partition files done:
    Start to generate file from the generated list:
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\secure_fw/spm/cmsis_func/tfm_spm_db_func.inc
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\secure_fw/spm/cmsis_func/tfm_veneers.c
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/tfm_veneers.h
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/psa_manifest/sid.h
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/psa_manifest/pid.h
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/config_impl.h
    Generation of files done
    -- ---------- Display crypto configuration - start --------------
    -- CRYPTO_RNG_MODULE_DISABLED is set to FALSE
    -- CRYPTO_KEY_MODULE_DISABLED is set to TRUE
    -- CRYPTO_AEAD_MODULE_DISABLED is set to TRUE
    -- CRYPTO_MAC_MODULE_DISABLED is set to TRUE
    -- CRYPTO_CIPHER_MODULE_DISABLED is set to TRUE
    -- CRYPTO_HASH_MODULE_DISABLED is set to TRUE
    -- CRYPTO_KEY_DERIVATION_MODULE_DISABLED is set to TRUE
    -- CRYPTO_ASYM_SIGN_MODULE_DISABLED is set to TRUE
    -- CRYPTO_ASYM_ENCRYPT_MODULE_DISABLED is set to TRUE
    -- CRYPTO_ENGINE_BUF_SIZE is set to 1
    -- CRYPTO_CONC_OPER_NUM is set to 8
    -- CRYPTO_IOVEC_BUFFER_SIZE is set to 5120
    -- ---------- Display crypto configuration - stop ---------------
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm
    [78/428] Creating public key from private key used for signing
    [81/428] Performing build step for 'mcuboot_subimage'
    [1/186] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr), build: v3.0.99-ncs1
    [176/186] Linking C executable zephyr\zephyr_pre0.elf
    
    [180/186] Linking C executable zephyr\zephyr_pre1.elf
    
    [186/186] Linking C executable zephyr\zephyr.elf
    FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.meta zephyr/zephyr.lst zephyr/zephyr.stat D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.map D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.hex D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.bin D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.meta D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.lst D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.stat
    cmd.exe /C "cd . && C:\gnuarmemb\bin\arm-none-eabi-gcc.exe   zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj -o zephyr\zephyr.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -Wl,-T  zephyr/linker.cmd  -Wl,-Map=D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr_final.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/posix/liblib__posix.a  zephyr/boards/boards/arm/nrf9160dk_nrf9160/libboards__arm__nrf9160dk_nrf9160.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v8-m.main+fp/hard"  -LD:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr  -lgcc  -Wl,--print-memory-usage  zephyr/arch/common/libisr_tables.a  -no-pie  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfpu=fpv5-sp-d16  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms
    -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  D:/ncs/gitbranch/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.14.a  D:/ncs/gitbranch/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cmd.exe /C "cd /D D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\mcuboot\zephyr && C:\Python39\Lib\site-packages\cmake\data\bin\cmake.exe -E copy zephyr_final.map zephyr.map && C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && C:\Python39\python.exe D:/ncs/gitbranch/zephyr/scripts/zephyr_module.py --zephyr-base D:/ncs/gitbranch/zephyr --meta-out zephyr.meta && C:\gnuarmemb\bin\arm-none-eabi-objdump.exe -d -S zephyr.elf > zephyr.lst && C:\gnuarmemb\bin\arm-none-eabi-readelf.exe -e zephyr.elf > zephyr.stat""
    Memory region         Used Size  Region Size  %age Used
               FLASH:       34256 B        48 KB     69.69%
                SRAM:       18504 B     178968 B     10.34%
            IDT_LIST:          0 GB         2 KB      0.00%
    Traceback (most recent call last):
      File "D:\ncs\gitbranch\zephyr\scripts\zephyr_module.py", line 548, in <module>
        main()
      File "D:\ncs\gitbranch\zephyr\scripts\zephyr_module.py", line 540, in main
        meta = process_meta(args.zephyr_base, west_proj, modules,
      File "D:\ncs\gitbranch\zephyr\scripts\zephyr_module.py", line 319, in process_meta
        if project.sha(MANIFEST_REV_BRANCH) != revision:
      File "C:\Python39\lib\site-packages\west\manifest.py", line 866, in sha
        cp = self.git(f'rev-parse {rev}^{{commit}}', capture_stdout=True,
      File "C:\Python39\lib\site-packages\west\manifest.py", line 850, in git
        raise subprocess.CalledProcessError(popen.returncode, cmd_list,
    subprocess.CalledProcessError: Command '['rev-parse', 'manifest-rev^{commit}']' returned non-zero exit status 128.
    ninja: build stopped: subcommand failed.
    [82/428] Generating zephyr/b0_container.hex
    FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.hex D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.elf
    cmd.exe /C "cd /D D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\mcuboot && C:\Python39\Lib\site-packages\cmake\data\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Python39\Scripts\cmake.EXE' --build 'D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build'
    
    D:\ncs\gitbranch\nrf\applications\asset_tracker_v2 (HEAD detached at ffd959d)
    λ

    can you find out what the problem is?

    When I checkout to ncs v1.9.2 it compiles fine.

    BR,

    Devin

Reply
  • Hi Einar,

    I updated to ncs v2.0.1 and found that the problem still exists. The log information I compiled is as follows:

    D:\ncs\gitbranch\nrf (HEAD detached at ffd959d)
    λ west zephyr-export
    Zephyr (D:/ncs/gitbranch/zephyr/share/zephyr-package/cmake)
    has been added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\Zephyr
    
    ZephyrUnittest (D:/ncs/gitbranch/zephyr/share/zephyrunittest-package/cmake)
    has been added to the user package registry in:
    HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\ZephyrUnittest
    
    
    D:\ncs\gitbranch\nrf (HEAD detached at ffd959d)
    λ cd applications\asset_tracker_v2\
    
    D:\ncs\gitbranch\nrf\applications\asset_tracker_v2 (HEAD detached at ffd959d)
    λ west build -b nrf9160dk_nrf9160_ns -p
    -- west build: making build dir D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build pristine
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160_ns, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
    -- Found devicetree overlay: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.overlay
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/dts.cmake
    
    warning: Experimental symbol NET_SOCKETS_OFFLOAD is enabled.
    
    Parsing D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/boards/nrf9160dk_nrf9160_ns.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image b0 -  begin ===
    loading initial cache file D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).-- Application: D:/ncs/gitbranch/nrf/samples/bootloader
    
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/dts.cmake
    Parsing D:/ncs/gitbranch/zephyr/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'D:/ncs/gitbranch/nrf/samples/bootloader/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    CMake Warning at D:/ncs/gitbranch/nrf/subsys/bootloader/CMakeLists.txt:21 (message):
    
    
            --------------------------------------------------------
            --- WARNING: When using the immutable bootloader on  ---
            --- this SoC, the UICR must be erased when flashing. ---
            --- E.g. by calling 'west flash --erase'             ---
            --------------------------------------------------------
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/b0
    === child image b0 -  end ===
    
    -- Found Python3: C:/Python39/python.exe (found version "3.9.6") found components: Interpreter
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/dts.cmake
    Parsing D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/fw_info.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/build_s1.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    MCUBoot bootloader key file: D:/ncs/gitbranch/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot
    === child image mcuboot -  end ===
    
    Changed board to secure nrf9160dk_nrf9160 (NOT NS)
    
    === child image s1_image -  begin ===
    loading initial cache file D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).-- Application: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr
    
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf9160dk_nrf9160, Revision: 0.7.0
    -- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/gnuarmemb)
    -- Found BOARD.dts: D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
    -- Found devicetree overlay: D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/dts.overlay
    -- Generated zephyr.dts: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/dts.cmake
    Parsing D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'D:/ncs/gitbranch/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
    Merged configuration 'D:/ncs/gitbranch/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/fw_info.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/bootloader/image/build_s1.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/modules/mcuboot/tfm.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/.config'
    Kconfig header saved to 'D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    MCUBoot bootloader key file: D:/ncs/gitbranch/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/s1_image
    === child image s1_image -  end ===
    
    CMake Warning at D:/ncs/gitbranch/nrf/modules/mcuboot/CMakeLists.txt:281 (message):
    
    
            ---------------------------------------------------------
            --- WARNING: Using default MCUBoot key, it should not ---
            --- be used for production.                           ---
            ---------------------------------------------------------
    
    
    
    
    CMake Warning at D:/ncs/gitbranch/zephyr/CMakeLists.txt:1803 (message):
      __ASSERT() statements are globally ENABLED
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build
    -- west build: building application
    [0/428] Generating signing key
    [1/428] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr), build: v3.0.99-ncs1
    [6/428] Generating extra provision key files
    [47/428] Performing build step for 'b0_subimage'
    [1/160] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr), build: v3.0.99-ncs1
    [150/160] Linking C executable zephyr\zephyr_pre0.elf
    
    [154/160] Linking C executable zephyr\zephyr_pre1.elf
    
    [160/160] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       23212 B        32 KB     70.84%
                SRAM:       37264 B     178968 B     20.82%
            IDT_LIST:          0 GB         2 KB      0.00%
    [68/428] Generating ../../tfm/CMakeCache.txt
    -- The C compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    -- Found Python3: C:/Python39/python.exe (found version "3.9.6") found components: Interpreter
    Start to generate partition files:
    Generating Header: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/crypto/psa_manifest/tfm_crypto.h
    Generating Intermedia: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/crypto/auto_generated/intermedia_tfm_crypto.c
    Generating Loadinfo: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/crypto/auto_generated/load_info_tfm_crypto.c
    Generating Header: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/platform/psa_manifest/tfm_platform.h
    Generating Intermedia: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/platform/auto_generated/intermedia_tfm_platform.c
    Generating Loadinfo: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm/generated/secure_fw/partitions/platform/auto_generated/load_info_tfm_platform.c
    Per-partition files done:
    Start to generate file from the generated list:
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\secure_fw/spm/cmsis_func/tfm_spm_db_func.inc
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\secure_fw/spm/cmsis_func/tfm_veneers.c
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/tfm_veneers.h
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/psa_manifest/sid.h
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/psa_manifest/pid.h
    Generating D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\tfm\generated\interface/include/config_impl.h
    Generation of files done
    -- ---------- Display crypto configuration - start --------------
    -- CRYPTO_RNG_MODULE_DISABLED is set to FALSE
    -- CRYPTO_KEY_MODULE_DISABLED is set to TRUE
    -- CRYPTO_AEAD_MODULE_DISABLED is set to TRUE
    -- CRYPTO_MAC_MODULE_DISABLED is set to TRUE
    -- CRYPTO_CIPHER_MODULE_DISABLED is set to TRUE
    -- CRYPTO_HASH_MODULE_DISABLED is set to TRUE
    -- CRYPTO_KEY_DERIVATION_MODULE_DISABLED is set to TRUE
    -- CRYPTO_ASYM_SIGN_MODULE_DISABLED is set to TRUE
    -- CRYPTO_ASYM_ENCRYPT_MODULE_DISABLED is set to TRUE
    -- CRYPTO_ENGINE_BUF_SIZE is set to 1
    -- CRYPTO_CONC_OPER_NUM is set to 8
    -- CRYPTO_IOVEC_BUFFER_SIZE is set to 5120
    -- ---------- Display crypto configuration - stop ---------------
    -- Found Python3: C:/Python39/python.exe (found suitable exact version "3.9.6") found components: Interpreter
    -- Cache files will be written to: D:/ncs/gitbranch/zephyr/.cache
    -- Configuring done
    -- Generating done
    -- Build files have been written to: D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/tfm
    [78/428] Creating public key from private key used for signing
    [81/428] Performing build step for 'mcuboot_subimage'
    [1/186] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (D:/ncs/gitbranch/zephyr), build: v3.0.99-ncs1
    [176/186] Linking C executable zephyr\zephyr_pre0.elf
    
    [180/186] Linking C executable zephyr\zephyr_pre1.elf
    
    [186/186] Linking C executable zephyr\zephyr.elf
    FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.meta zephyr/zephyr.lst zephyr/zephyr.stat D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.map D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.hex D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.bin D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.meta D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.lst D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.stat
    cmd.exe /C "cd . && C:\gnuarmemb\bin\arm-none-eabi-gcc.exe   zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj -o zephyr\zephyr.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -Wl,-T  zephyr/linker.cmd  -Wl,-Map=D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr_final.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/posix/liblib__posix.a  zephyr/boards/boards/arm/nrf9160dk_nrf9160/libboards__arm__nrf9160dk_nrf9160.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/9.2.1/thumb/v8-m.main+fp/hard"  -LD:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr  -lgcc  -Wl,--print-memory-usage  zephyr/arch/common/libisr_tables.a  -no-pie  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfpu=fpv5-sp-d16  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms
    -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  D:/ncs/gitbranch/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.14.a  D:/ncs/gitbranch/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cmd.exe /C "cd /D D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\mcuboot\zephyr && C:\Python39\Lib\site-packages\cmake\data\bin\cmake.exe -E copy zephyr_final.map zephyr.map && C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && C:\Python39\python.exe D:/ncs/gitbranch/zephyr/scripts/zephyr_module.py --zephyr-base D:/ncs/gitbranch/zephyr --meta-out zephyr.meta && C:\gnuarmemb\bin\arm-none-eabi-objdump.exe -d -S zephyr.elf > zephyr.lst && C:\gnuarmemb\bin\arm-none-eabi-readelf.exe -e zephyr.elf > zephyr.stat""
    Memory region         Used Size  Region Size  %age Used
               FLASH:       34256 B        48 KB     69.69%
                SRAM:       18504 B     178968 B     10.34%
            IDT_LIST:          0 GB         2 KB      0.00%
    Traceback (most recent call last):
      File "D:\ncs\gitbranch\zephyr\scripts\zephyr_module.py", line 548, in <module>
        main()
      File "D:\ncs\gitbranch\zephyr\scripts\zephyr_module.py", line 540, in main
        meta = process_meta(args.zephyr_base, west_proj, modules,
      File "D:\ncs\gitbranch\zephyr\scripts\zephyr_module.py", line 319, in process_meta
        if project.sha(MANIFEST_REV_BRANCH) != revision:
      File "C:\Python39\lib\site-packages\west\manifest.py", line 866, in sha
        cp = self.git(f'rev-parse {rev}^{{commit}}', capture_stdout=True,
      File "C:\Python39\lib\site-packages\west\manifest.py", line 850, in git
        raise subprocess.CalledProcessError(popen.returncode, cmd_list,
    subprocess.CalledProcessError: Command '['rev-parse', 'manifest-rev^{commit}']' returned non-zero exit status 128.
    ninja: build stopped: subcommand failed.
    [82/428] Generating zephyr/b0_container.hex
    FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.hex D:/ncs/gitbranch/nrf/applications/asset_tracker_v2/build/mcuboot/zephyr/zephyr.elf
    cmd.exe /C "cd /D D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build\mcuboot && C:\Python39\Lib\site-packages\cmake\data\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Python39\Scripts\cmake.EXE' --build 'D:\ncs\gitbranch\nrf\applications\asset_tracker_v2\build'
    
    D:\ncs\gitbranch\nrf\applications\asset_tracker_v2 (HEAD detached at ffd959d)
    λ

    can you find out what the problem is?

    When I checkout to ncs v1.9.2 it compiles fine.

    BR,

    Devin

Children
Related