Get error when building the Asset Tracker Template

I am following the instructions as per Getting Started with the Asset Tracker Template.

I have successfully created the environment and done the West Update.

When I do the build, I get errors as per the attached file.

Please can you help me shed some light.

(v3.1.0) C:\Users\franc\asset-tracker-template\project\app> west build -p -b thingy91x/nrf9151/ns
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: thingy91x, qualifiers: nrf9151/ns
Parsing C:/Users/franc/asset-tracker-template/project/app/Kconfig.sysbuild
Loaded configuration 'C:/Users/franc/asset-tracker-template/project/app/build/_sysbuild/empty.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/build/_sysbuild/empty.conf'
Configuration saved to 'C:/Users/franc/asset-tracker-template/project/app/build/zephyr/.config'
Kconfig header saved to 'C:/Users/franc/asset-tracker-template/project/app/build/_sysbuild/autoconf.h'
-- Sysbuild assigned MCUboot image IDs:
   * Application: 0
   * MCUboot b0 update: 1
--
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/franc/asset-tracker-template/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: thingy91x, qualifiers: nrf9151
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/b8b84efebd/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151.dts
-- Found devicetree overlay: C:/Users/franc/asset-tracker-template/project/app/sysbuild/mcuboot/boards/thingy91x_nrf9151.overlay
-- Generated zephyr.dts: C:/Users/franc/asset-tracker-template/project/app/build/mcuboot/zephyr/zephyr.dts
-- Generated pickled edt: C:/Users/franc/asset-tracker-template/project/app/build/mcuboot/zephyr/edt.pickle
-- Generated devicetree_generated.h: C:/Users/franc/asset-tracker-template/project/app/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing C:/Users/franc/asset-tracker-template/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_defconfig'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/sysbuild/mcuboot/prj.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/sysbuild/mcuboot/boards/thingy91x_nrf9151.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/nrf/modules/mcuboot/tfm.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/nrf/subsys/bootloader/bl_override/override_external_mcuboot.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/nrf/subsys/bootloader/image/log_minimal.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/bootloader/mcuboot/boot/zephyr/external_crypto.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/build/mcuboot/zephyr/.config.sysbuild'
Configuration saved to 'C:/Users/franc/asset-tracker-template/project/app/build/mcuboot/zephyr/.config'
Kconfig header saved to 'C:/Users/franc/asset-tracker-template/project/app/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found gen_kobject_list: C:/Users/franc/asset-tracker-template/zephyr/scripts/build/gen_kobject_list.py
MCUBoot bootloader key file: C:/Users/franc/asset-tracker-template/bootloader/mcuboot/root-ec-p256.pem
CMake Warning at CMakeLists.txt:447 (message):
  WARNING: Using default MCUboot signing key file, this file is for debug use
  only and is not secure!


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/franc/asset-tracker-template/project/app/build/mcuboot
--
   ************************
   * Running CMake for b0 *
   ************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/franc/asset-tracker-template/nrf/samples/bootloader
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: thingy91x, qualifiers: nrf9151
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/b8b84efebd/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151.dts
-- Generated zephyr.dts: C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/zephyr.dts
-- Generated pickled edt: C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/edt.pickle
-- Generated devicetree_generated.h: C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing C:/Users/franc/asset-tracker-template/zephyr/Kconfig
Loaded configuration 'C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_defconfig'
Merged configuration 'C:/Users/franc/asset-tracker-template/nrf/samples/bootloader/prj.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/.config.sysbuild'
Configuration saved to 'C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/.config'
Kconfig header saved to 'C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found gen_kobject_list: C:/Users/franc/asset-tracker-template/zephyr/scripts/build/gen_kobject_list.py
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/franc/asset-tracker-template/project/app/build/b0
--
   *************************
   * Running CMake for app *
   *************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/franc/asset-tracker-template/project/app
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: thingy91x, qualifiers: nrf9151/ns
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/b8b84efebd/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns.dts
-- Found devicetree overlay: C:/Users/franc/asset-tracker-template/project/app/boards/thingy91x_nrf9151_ns.overlay
-- Generated zephyr.dts: C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.dts
-- Generated pickled edt: C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/edt.pickle
-- Generated devicetree_generated.h: C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/include/generated/zephyr/devicetree_generated.h

warning: MEMFAULT_LOGGING_RAM_SIZE (defined at C:/Users/franc/asset-tracker-
template/modules/lib/memfault-firmware-sdk/ports/zephyr/Kconfig:310) was assigned the value '3584'
but got the value ''. Check these unsatisfied dependencies: MEMFAULT_LOGGING_ENABLE (=n),
MEMFAULT_LOGGING_ENABLE (=n), MEMFAULT (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MEMFAULT_LOGGING_RAM_SIZE and/or look up
MEMFAULT_LOGGING_RAM_SIZE 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.


warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.


warning: Experimental symbol WIFI_READY_LIB is enabled.


warning: Experimental symbol NRF_WIFI_RPU_RECOVERY is enabled.


warning: Experimental symbol NET_BUF_VARIABLE_DATA_SIZE is enabled.


warning: Experimental symbol COAP_CLIENT is enabled.

Parsing C:/Users/franc/asset-tracker-template/project/app/Kconfig
Loaded configuration 'C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns_defconfig'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/prj.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/boards/thingy91x_nrf9151_ns.conf'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/.config.sysbuild'
Configuration saved to 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/.config'
Kconfig header saved to 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found gen_kobject_list: C:/Users/franc/asset-tracker-template/zephyr/scripts/build/gen_kobject_list.py
-- Including signing script: C:/Users/franc/asset-tracker-template/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at C:/Users/franc/asset-tracker-template/zephyr/CMakeLists.txt:2321 (message):
  __ASSERT() statements are globally ENABLED


Parsing files: C:/Users/franc/asset-tracker-template/project/app/src/cbor/device_shadow.cddl, C:\ncs\toolchains\b8b84efebd\opt\bin\Lib\site-packages\zcbor\zcbor\prelude.cddl
Writing to src\device_shadow_decode.c
Writing to include\device_shadow_decode.h
Writing to src\device_shadow_encode.c
Writing to include\device_shadow_encode.h
Writing to include\device_shadow_types.h
Writing to device_shadow.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/franc/asset-tracker-template/project/app/build/app
--
   ******************************
   * Running CMake for s1_image *
   ******************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/franc/asset-tracker-template/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: thingy91x, qualifiers: nrf9151
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/b8b84efebd/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151.dts
-- Found devicetree overlay: C:/Users/franc/asset-tracker-template/project/app/sysbuild/mcuboot/boards/thingy91x_nrf9151.overlay
-- Generated zephyr.dts: C:/Users/franc/asset-tracker-template/project/app/build/s1_image/zephyr/zephyr.dts
-- Generated pickled edt: C:/Users/franc/asset-tracker-template/project/app/build/s1_image/zephyr/edt.pickle
-- Generated devicetree_generated.h: C:/Users/franc/asset-tracker-template/project/app/build/s1_image/zephyr/include/generated/zephyr/devicetree_generated.h
-- Found GnuLd: c:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found gen_kobject_list: C:/Users/franc/asset-tracker-template/zephyr/scripts/build/gen_kobject_list.py
MCUBoot bootloader key file: C:/Users/franc/asset-tracker-template/bootloader/mcuboot/root-ec-p256.pem
CMake Warning at CMakeLists.txt:447 (message):
  WARNING: Using default MCUboot signing key file, this file is for debug use
  only and is not secure!


-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    EXTRA_KCONFIG_TARGETS
    FORCED_CONF_FILE


-- Build files have been written to: C:/Users/franc/asset-tracker-template/project/app/build/s1_image
-- Found partition manager static configuration : C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_pm_static.yml
Partition 'b0' is not included in the dynamic resolving since it is statically defined.
Partition 'b0_container' is not included in the dynamic resolving since it is statically defined.
Partition 's0' is not included in the dynamic resolving since it is statically defined.
Partition 's0_pad' is not included in the dynamic resolving since it is statically defined.
Partition 's0_image' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 's1' is not included in the dynamic resolving since it is statically defined.
Partition 's1_pad' is not included in the dynamic resolving since it is statically defined.
Partition 's1_image' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'tfm_secure' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'app_image' is not included in the dynamic resolving since it is statically defined.
Partition 'tfm' is not included in the dynamic resolving since it is statically defined.
Partition 'tfm_nonsecure' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
Partition 'fmfu_storage' is not included in the dynamic resolving since it is statically defined.
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
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: C:/Users/franc/asset-tracker-template/project/app/build
←[92m-- west build: building application
[0/57] Creating public key from private key used for signing
[18/57] Performing build step for 'b0'
[4/155] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr), build: ncs-v3.2.0-rc1-72-gfbabee3e8169
[155/155] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       27652 B        32 KB     84.39%
             RAM:       37336 B     236312 B     15.80%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from C:/Users/franc/asset-tracker-template/project/app/build/b0/zephyr/zephyr.elf for board: thingy91x
[22/57] Performing build step for 'app'
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/Users/franc/asset-tracker-template/project/app
-- CMake version: 3.21.0
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr)
-- Found west (found suitable version "1.4.0", minimum required is "0.14.0")
-- Board: thingy91x, qualifiers: nrf9151/ns
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk)
-- Found BOARD.dts: C:/Users/franc/asset-tracker-template/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns.dts
-- Found devicetree overlay: C:/Users/franc/asset-tracker-template/project/app/boards/thingy91x_nrf9151_ns.overlay
-- Generated zephyr.dts: C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.dts
-- Generated pickled edt: C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/edt.pickle
-- Generated devicetree_generated.h: C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/include/generated/zephyr/devicetree_generated.h

warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.


warning: Experimental symbol WIFI_READY_LIB is enabled.


warning: Experimental symbol NRF_WIFI_RPU_RECOVERY is enabled.


warning: Experimental symbol NET_BUF_VARIABLE_DATA_SIZE is enabled.


warning: Experimental symbol COAP_CLIENT is enabled.

Parsing C:/Users/franc/asset-tracker-template/project/app/Kconfig
Loaded configuration 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/.config'
Merged configuration 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/.config.sysbuild'
No change to configuration in 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/.config'
No change to Kconfig header in 'C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/include/generated/zephyr/autoconf.h'
-- Found gen_kobject_list: C:/Users/franc/asset-tracker-template/zephyr/scripts/build/gen_kobject_list.py
-- Including signing script: C:/Users/franc/asset-tracker-template/nrf/cmake/sysbuild/image_signing.cmake
CMake Warning at C:/Users/franc/asset-tracker-template/zephyr/CMakeLists.txt:2321 (message):
  __ASSERT() statements are globally ENABLED


Parsing files: C:/Users/franc/asset-tracker-template/project/app/src/cbor/device_shadow.cddl, C:\ncs\toolchains\b8b84efebd\opt\bin\Lib\site-packages\zcbor\zcbor\prelude.cddl
Writing to src\device_shadow_decode.c
Writing to include\device_shadow_decode.h
Writing to src\device_shadow_encode.c
Writing to include\device_shadow_encode.h
Writing to include\device_shadow_types.h
Writing to device_shadow.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/franc/asset-tracker-template/project/app/build/app
[27/610] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.2.99 (C:/Users/franc/asset-tracker-template/zephyr), build: ncs-v3.2.0-rc1-72-gfbabee3e8169
[35/610] Generating ../../tfm/CMakeCache.txt
-- Found Git: C:/ncs/toolchains/b8b84efebd/mingw64/bin/git.exe (found version "2.37.3.windows.1")
CMake Warning at CMakeLists.txt:43 (project):
  VERSION keyword not followed by a value or was followed by a value that
  expanded to nothing.


-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
-- Found Python3: C:/ncs/toolchains/b8b84efebd/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: C:/Users/franc/asset-tracker-template/zephyr/.cache
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/franc/asset-tracker-template/project/app/build/app/tfm
[40/610] Performing build step for 'tfm'
[151/155] Linking C executable bin\tfm_s.axf
Memory region         Used Size  Region Size  %age Used
           FLASH:       31704 B      32256 B     98.29%
             RAM:       11552 B        16 KB     70.51%
[155/155] Generating ../bin/tfm_s.bin
[42/610] Performing install step for 'tfm'
-- Install configuration: "MinSizeRel"
----- Installing platform NS -----
[610/610] Linking C executable zephyr\zephyr.elf
FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.stat zephyr/tfm_merged.hex zephyr/zephyr.signed.bin zephyr/zephyr.signed.hex C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.map C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.hex C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.bin C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.stat C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/tfm_merged.hex C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.signed.bin C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.signed.hex
cmd.exe /C "cd . && C:\ncs\toolchains\b8b84efebd\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe  -gdwarf-4 -Os @CMakeFiles\zephyr_final.rsp -o zephyr\zephyr.elf -Lc:/ncs/toolchains/b8b84efebd/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main+fp/hard -lc -lgcc && cmd.exe /C "cd /D C:\Users\franc\asset-tracker-template\project\app\build\app\zephyr && C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.exe -E echo "Generating files from C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.elf for board: thingy91x" && C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.exe -E copy zephyr_final.map zephyr.map && C:\ncs\toolchains\b8b84efebd\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --output-target=ihex --remove-section=.comment --remove-section=COMMON zephyr.elf zephyr.hex && C:\ncs\toolchains\b8b84efebd\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xFF --output-target=binary --remove-section=.comment --remove-section=COMMON zephyr.elf zephyr.bin && C:\ncs\toolchains\b8b84efebd\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-readelf.exe -e zephyr.elf > zephyr.stat && C:\ncs\toolchains\b8b84efebd\opt\bin\python.exe C:/Users/franc/asset-tracker-template/zephyr/scripts/build/check_init_priorities.py --elf-file=C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.elf && C:\ncs\toolchains\b8b84efebd\opt\bin\python.exe C:/Users/franc/asset-tracker-template/zephyr/scripts/build/mergehex.py -o C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/tfm_merged.hex C:/Users/franc/asset-tracker-template/project/app/build/app/tfm/bin/tfm_s.hex C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.hex && C:\ncs\toolchains\b8b84efebd\opt\bin\python.exe C:/Users/franc/asset-tracker-template/bootloader/mcuboot/scripts/imgtool.py sign --version 0.0.0+0 --align 4 --slot-size 0xd0000 --pad-header --header-size 0x200 -k C:/Users/franc/asset-tracker-template/bootloader/mcuboot/root-ec-p256.pem C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/tfm_merged.hex C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.signed.bin && C:\ncs\toolchains\b8b84efebd\opt\bin\python.exe C:/Users/franc/asset-tracker-template/bootloader/mcuboot/scripts/imgtool.py sign --version 0.0.0+0 --align 4 --slot-size 0xd0000 --pad-header --header-size 0x200 -k C:/Users/franc/asset-tracker-template/bootloader/mcuboot/root-ec-p256.pem C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/tfm_merged.hex C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.signed.hex""
Memory region         Used Size  Region Size  %age Used
           FLASH:      496504 B       800 KB     60.61%
             RAM:      185656 B     236312 B     78.56%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from C:/Users/franc/asset-tracker-template/project/app/build/app/zephyr/zephyr.elf for board: thingy91x
ninja: build stopped: subcommand failed.
[26/57] Generating ../b0_container.hex
FAILED: _sysbuild/sysbuild/images/app-prefix/src/app-stamp/app-build C:/Users/franc/asset-tracker-template/project/app/build/_sysbuild/sysbuild/images/app-prefix/src/app-stamp/app-build
cmd.exe /C "cd /D C:\Users\franc\asset-tracker-template\project\app\build\app && C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.exe --build ."
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b8b84efebd\opt\bin\cmake.EXE' --build C:/Users/franc/asset-tracker-template/project/app/build

(v3.1.0) C:\Users\franc\asset-tracker-template\project\app>

  • Hi,

    There are a few things that are going wrong here. Firstly, you are using NCS v3.1.0 and the project is trying to build using NCS v3.2.0-rc1. So, bootloader, your example project, Zephyr version and toolchain are from different SDK versions. Because the memory map or layout is wrong, the failure occurs only when Zephyr runs the final signing script. Your partitions aren't matching your signing arguments. To solve this, since you are already on v3.1.0, ensure the project is also on v3.1.0. So, in your asset-tracker-template folder, run:

    git checkout v3.1.0

    west update

    Then do a rebuild. 

    Another option is to upgrade your toolchain. If your repo uses 3.2.0-rc1 then, you can first install nRF Connect SDK 3.2.x. This you can do in Open nRF Connect --> Toolchain Manager --> Install NCS v3.2.x.

    After that run:

    west update

    west build -p always -b thingy91x/nRF9151/ns project/app

    Best Regards,

    Samruddhi

Related