Howdy, I installed python 3.13.7 and then went through the init repo, when I go to do build or pristine build I get Could NOT find Dtc (missing: DTC) (Required is at least version “1.4.6”) as my main issue. I added C:\Users\James\AppData\Local\Microsoft\WinGet\Packages\oss-winget.dtc_Microsoft.Winget.Source_8wekyb3d8bbwe\usr\bin to my enviromental variables path I reinstalled nrf DeviceTree but after I had reininitialized the repo.
There’s another thread with a similar thread where the fix was re init the repo without spaces in the path.
C:\Users\James\source\public\zephyr
C:\Users\James.zephyrtools\toolchain\zephyr-sdk-0.16.4
C:/Users/James/source/public/zephyr/modules/trusted-firmware-m/nordic/include/RTE_Device.h:14:10: fatal error: zephyr/devicetree.h: No such file or directory
14 | #include <zephyr/devicetree.h>
| ~~~~~~~~~~~~~~~~~
– west build: making build dir C:\Users\James\source\public\zephyr\samples\basic\blinky\build\nrf9151dk pristine
– west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
– Found Python3: C:/Users/James/.zephyrtools/env/Scripts/python.exe (found suitable version “3.13.7”, minimum required is “3.10”) found components: Interpreter
– Cache files will be written to: C:/Users/James/source/public/zephyr/.cache
– Found west (found suitable version “1.5.0”, minimum required is “0.14.0”)
– Board: nrf9151dk, qualifiers: nrf9151/ns
Parsing C:/Users/James/source/public/zephyr/share/sysbuild/Kconfig
Loaded configuration ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/sysbuild/empty.conf’
Merged configuration ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/sysbuild/empty.conf’
Configuration saved to ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/zephyr/.config’
Kconfig header saved to ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/_sysbuild/autoconf.h’
- Running CMake for blinky *
****************************
Loading Zephyr default modules (Zephyr base).
– Application: C:/Users/James/source/public/zephyr/samples/basic/blinky
– CMake version: 3.22.0
– Found Python3: C:/Users/James/.zephyrtools/env/Scripts/python.exe (found suitable version “3.13.7”, minimum required is “3.10”) found components: Interpreter
– Cache files will be written to: C:/Users/James/source/public/zephyr/.cache
– Zephyr version: 4.2.99 (C:/Users/James/source/public/zephyr)
– Found west (found suitable version “1.5.0”, minimum required is “0.14.0”)
– Board: nrf9151dk, qualifiers: nrf9151/ns
– Found host-tools: zephyr 0.16.4 (C:/Users/James/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
– Found toolchain: zephyr 0.16.4 (C:/Users/James/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
– Could NOT find Dtc (missing: DTC) (Required is at least version “1.4.6”)
– Found BOARD.dts: C:/Users/James/source/public/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_ns.dts
– Generated zephyr.dts: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/zephyr/zephyr.dts
– Generated pickled edt: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/zephyr/edt.pickle
– Generated devicetree_generated.h: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing C:/Users/James/source/public/zephyr/Kconfig
Loaded configuration ‘C:/Users/James/source/public/zephyr/boards/nordic/nrf9151dk/nrf9151dk_nrf9151_ns_defconfig’
Merged configuration ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/prj.conf’
Merged configuration ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/zephyr/.config.sysbuild’
Configuration saved to ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/zephyr/.config’
Kconfig header saved to ‘C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/zephyr/include/generated/zephyr/autoconf.h’
– Found GnuLd: c:/users/james/.zephyrtools/toolchain/zephyr-sdk-0.16.4/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:/Users/James/.zephyrtools/toolchain/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/Users/James/source/public/zephyr/modules/trusted-firmware-m/CMakeLists.txt:560 (message):
TFM_DUMMY_PROVISIONING is enabled:
The device will be provisioned using dummy keys and is NOT secure!
This is not suitable for production
– Found gen_kobject_list: C:/Users/James/source/public/zephyr/scripts/build/gen_kobject_list.py
– Configuring done
– Generating done
– Build files have been written to: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky
– Configuring done
– Generating done
– Build files have been written to: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk
– west build: building application
[⅝] Performing build step for ‘blinky’
[1/262] Generating include/generated/zephyr/version.h
– Zephyr version: 4.2.99 (C:/Users/James/source/public/zephyr), build: v4.2.0-5040-g730efd9a591f
[7/262] Generating ../../tfm/CMakeCache.txt
– Found Git: C:/Program Files/Git/cmd/git.exe (found version “2.51.0.windows.1”)
– 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:/Users/James/.zephyrtools/toolchain/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
– Found Python3: C:/Users/James/.zephyrtools/env/Scripts/python.exe (found version “3.13.7”) found components: Interpreter
CMake Warning (dev) at C:/Users/James/.zephyrtools/cmake/cmake-3.22.0-windows-x86_64/share/cmake-3.22/Modules/GNUInstallDirs.cmake:239 (message):
Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
target architecture is known. Please enable at least one language before
including GNUInstallDirs.
Call Stack (most recent call first):
C:/Users/James/source/public/modules/crypto/mbedtls/CMakeLists.txt:52 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
– Looking for pthread.h
– Looking for pthread.h - not found
– Could NOT find Threads (missing: Threads_FOUND)
– Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
– Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Failed
– USING O3
– Configuring done
– Generating done
– Build files have been written to: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm
[12/262] Performing build step for ‘tfm’
[½] Re-running CMake…
– Could NOT find Threads (missing: Threads_FOUND)
– USING O3
– Configuring done
– Generating done
– Build files have been written to: C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm
[62/316] Building C object secure_fw/CMakeFiles/tfm…generated/load_info_tfm_internal_trusted_storage.o
FAILED: secure_fw/CMakeFiles/tfm_s.dir//generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.o
C:\Users\James.zephyrtools\toolchain\zephyr-sdk-0.16.4\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DBL2 -DBL2_HEADER_SIZE=0×400 -DBL2_TRAILER_SIZE=0×400 -DCONFIG_TFM_CONNECTION_POOL_ENABLE -DCONFIG_TFM_FLOAT_ABI=0 -DCONFIG_TFM_PARTITION_META -DCONFIG_TFM_USE_TRUSTZONE -DDAUTH_CHIP_DEFAULT -DMCUBOOT_BUILTIN_KEY -DMCUBOOT_IMAGE_NUMBER=2 -DMCUBOOT_ROTPK_HASH_ALG=RSE_ROTPK_HASH_ALG_SHA256 -DMCUBOOT_SIGN_EC256 -DNRF9120_XXAA -DNRF91_SERIES -DNRF_NS_SECONDARY -DNRF_NS_STORAGE -DNRF_SECURE_UART_INSTANCE=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPLATFORM_DEFAULT_BL1 -DPLATFORM_DEFAULT_CRYPTO_KEYS -DPLATFORM_DEFAULT_NV_COUNTERS -DPLATFORM_DEFAULT_OTP -DPLATFORM_DEFAULT_ROTPK -DPLATFORM_NS_NV_COUNTERS=0 -DPS_AES_KEY_USAGE_LIMIT=0 -DPS_CRYPTO_AEAD_ALG=PSA_ALG_GCM -DPS_CRYPTO_AEAD_ALG_GCM -DPS_ENCRYPTION -DPS_ROLLBACK_PROTECTION=1 -DSECURE_UART1 -DTFM_EXCEPTION_INFO_DUMP -DTFM_FIH_PROFILE_OFF -DTFM_ISOLATION_LEVEL=1 -DTFM_PARTITION_CRYPTO -DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_INFO -DTFM_PARTITION_NS_AGENT_TZ -DTFM_PARTITION_PLATFORM -DTFM_PARTITION_PROTECTED_STORAGE -DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_INFO -DTFM_SPM_LOG_RAW_ENABLED -DTFM_SP_LOG_RAW_ENABLED -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/core -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/core/arch -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include/boot -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/spm/include/interface -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/secure_fw/partitions/crypto -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/secure_fw/partitions/protected_storage -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/secure_fw/partitions/internal_trusted_storage -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/secure_fw/partitions/platform -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/protected_storage -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/internal_trusted_storage/../protected_storage -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/. -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/native_drivers -IC:/Users/James/source/public/modules/hal/nordic/nrfx -IC:/Users/James/source/public/modules/hal/nordic/nrfx/mdk -IC:/Users/James/source/public/modules/hal/nordic/nrfx/drivers/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/common -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/.. -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/services/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf91/. -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf91/memory_service_ranges -IC:/Users/James/source/public/zephyr/modules/trusted-firmware-m/nordic/services/include -IC:/Users/James/source/public/zephyr/modules/trusted-firmware-m/nordic/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf91/partition -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/../zephyr/include/generated -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/../zephyr/misc/generated/syscalls_links/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/../secure_fw/spm/include/private -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/common -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/ext/driver -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/config -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/crypto -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/firmware_update -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/initial_attestation -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/internal_trusted_storage -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/platform -IC:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/interface/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/lib/fih/inc -IC:/Users/James/source/public/modules/hal/cmsis_6/CMSIS/Core/Include -IC:/Users/James/source/public/modules/hal/cmsis_6/CMSIS/Core/Include/m-profile -IC:/Users/James/source/public/modules/hal/cmsis_6/CMSIS/Driver/Include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/interface/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/secure_fw/partitions/lib/runtime/include -IC:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/lib/tfm_vprintf/inc -mcpu=cortex-m33+nofp -Os -DNDEBUG -specs=nano.specs -specs=nosys.specs -Wall -Wno-format -Wno-array-parameter -Wno-return-type -Wno-unused-but-set-variable -c -fdata-sections -ffunction-sections -fno-builtin -fshort-enums -funsigned-char -mthumb -std=c99 -gdwarf-4 -g -fdiagnostics-color=always -mfloat-abi=soft -mcmse -Wno-unused-value -include C:/Users/James/source/public/modules/tee/tf-m/trusted-firmware-m/platform/include/cmsis_override.h -MD -MT secure_fw/CMakeFiles/tfm_s.dir//generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.o -MF secure_fw\CMakeFiles\tfm_s.dir_\generated\secure_fw\partitions\internal_trusted_storage\auto_generated\load_info_tfm_internal_trusted_storage.o.d -o secure_fw/CMakeFiles/tfm_s.dir/__/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.o -c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.c
In file included from c:\users\james\source\public\modules\tee\tf-m\trusted-firmware-m\platform\ext\target\nordic_nrf\common\core\nrfx_config.h:35,
from C:/Users/James/source/public/modules/hal/nordic/nrfx/nrfx.h:37,
from c:\users\james\source\public\modules\tee\tf-m\trusted-firmware-m\platform\ext\target\nordic_nrf\common\nrf91\tfm_peripherals_def.h:17,
from C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/generated/secure_fw/partitions/internal_trusted_storage/auto_generated/load_info_tfm_internal_trusted_storage.c:24:
C:/Users/James/source/public/zephyr/modules/trusted-firmware-m/nordic/include/RTE_Device.h:14:10: fatal error: zephyr/devicetree.h: No such file or directory
14 | #include <zephyr/devicetree.h>
| ~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/bin/bl2.elf tfm/bin/bl2.bin tfm/bin/bl2.hex tfm/bin/tfm_s.elf tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_s_ns_signed.bin tfm/api_ns/interface/lib/s_veneers.o tfm/api_ns/interface/src/tfm_attest_api.c tfm/api_ns/interface/src/tfm_crypto_api.c tfm/api_ns/interface/src/tfm_fwu_api.c tfm/api_ns/interface/src/tfm_its_api.c tfm/api_ns/interface/src/tfm_platform_api.c tfm/api_ns/interface/src/tfm_ps_api.c tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/bl2.elf C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/bl2.bin C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/bl2.hex C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/tfm_s.elf C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/tfm_s.bin C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/tfm_s.hex C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/tfm_s_signed.bin C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/bin/tfm_s_ns_signed.bin C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/lib/s_veneers.o C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_attest_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_crypto_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_fwu_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_its_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_platform_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_ps_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_tz_psa_ns_api.c C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/blinky/tfm/api_ns/interface/src/tfm_ioctl_core_ns_api.c
cmd.exe /C “cd /D C:\Users\James\source\public\zephyr\samples\basic\blinky\build\nrf9151dk\blinky\tfm && C:\Users\James.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.exe –build . -j 1”
ninja: build stopped: subcommand failed.
FAILED: sysbuild/sysbuild/images/blinky-prefix/src/blinky-stamp/blinky-build C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk/sysbuild/sysbuild/images/blinky-prefix/src/blinky-stamp/blinky-build
cmd.exe /C “cd /D C:\Users\James\source\public\zephyr\samples\basic\blinky\build\nrf9151dk\blinky && C:\Users\James.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.exe –build .”
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: ‘C:\Users\James.zephyrtools\cmake\cmake-3.22.0-windows-x86_64\bin\cmake.EXE’ –build C:/Users/James/source/public/zephyr/samples/basic/blinky/build/nrf9151dk
- The terminal process “C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command west build -b nrf9151dk/nrf9151/ns -p -d build\nrf9151dk –sysbuild” terminated with exit code: 1.
- Terminal will be reused by tasks, press any key to close it.