The button application is flashed correctly since I get the expected output using RTT. I made no changes to anything in the nfed directory except creating a .conf file that I was using to enable RTT. I deleted it and the “builds” folder that I created to put it in. I then did git reset --hard on the nfed directory, then did a Pristine build, re-flashed and get the same problem.
Build output:
* Executing task: west build -b circuitdojo_feather_nrf9151@2/nrf9151/ns -p -d build\circuitdojo_feather_nrf9151@2 --sysbuild
-- west build: making build dir D:\Zephyr\nfed\samples\button\build\circuitdojo_feather_nrf9151@2 pristine
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/Users/mikej/.zephyrtools/env/Scripts/python.exe (found suitable version "3.10.9", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: D:/Zephyr/zephyr/.cache
-- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
-- Board: circuitdojo_feather_nrf9151, Revision: 2, qualifiers: nrf9151/ns
Parsing D:/Zephyr/zephyr/share/sysbuild/Kconfig
Loaded configuration 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/_sysbuild/empty.conf'
Merged configuration 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/_sysbuild/empty.conf'
Merged configuration 'D:/Zephyr/nfed/samples/button/sysbuild.conf'
Configuration saved to 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/zephyr/.config'
Kconfig header saved to 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/_sysbuild/autoconf.h'
--
*****************************
* Running CMake for mcuboot *
*****************************
Loading Zephyr default modules (Zephyr base).
-- Application: D:/Zephyr/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.22.0
-- Found Python3: C:/Users/mikej/.zephyrtools/env/Scripts/python.exe (found suitable version "3.10.9", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: D:/Zephyr/zephyr/.cache
-- Zephyr version: 4.1.99 (D:/Zephyr/zephyr)
-- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
-- Board: circuitdojo_feather_nrf9151, Revision: 2, qualifiers: nrf9151
-- Found host-tools: zephyr 0.16.4 (C:/Users/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
-- Found toolchain: zephyr 0.16.4 (C:/Users/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
-- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
-- Found BOARD.dts: D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151.dts
-- Found devicetree overlay: D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_2.overlay
-- Found devicetree overlay: D:/Zephyr/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/zephyr.dts
-- Generated pickled edt: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/edt.pickle
-- Generated devicetree_generated.h: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing D:/Zephyr/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_defconfig'
Merged configuration 'D:/Zephyr/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration 'D:/Zephyr/nfed/samples/button/sysbuild/mcuboot.conf'
Merged configuration 'D:/Zephyr/nrf/modules/mcuboot/tfm.conf'
Merged configuration 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/.config.sysbuild'
Configuration saved to 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/.config'
Kconfig header saved to 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/users/mikej/.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/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found gen_kobject_list: D:/Zephyr/zephyr/scripts/build/gen_kobject_list.py
CMake Warning at D:/Zephyr/zephyr/CMakeLists.txt:1027 (message):
No SOURCES given to Zephyr library:
..__nfed__boards__circuitdojo__feather_nrf9151
Excluding target from build.
MCUBoot bootloader key file: D:/Zephyr/bootloader/mcuboot/root-ec-p256.pem
CMake Warning at CMakeLists.txt:412 (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: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot
--
****************************
* Running CMake for button *
****************************
Loading Zephyr default modules (Zephyr base).
-- Application: D:/Zephyr/nfed/samples/button
-- CMake version: 3.22.0
-- Found Python3: C:/Users/mikej/.zephyrtools/env/Scripts/python.exe (found suitable version "3.10.9", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: D:/Zephyr/zephyr/.cache
-- Zephyr version: 4.1.99 (D:/Zephyr/zephyr)
-- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
-- Board: circuitdojo_feather_nrf9151, Revision: 2, qualifiers: nrf9151/ns
-- Found host-tools: zephyr 0.16.4 (C:/Users/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
-- Found toolchain: zephyr 0.16.4 (C:/Users/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
-- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
-- Found BOARD.dts: D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_ns.dts
-- Found devicetree overlay: D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_ns_2.overlay
-- Generated zephyr.dts: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/zephyr.dts
-- Generated pickled edt: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/edt.pickle
-- Generated devicetree_generated.h: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/include/generated/zephyr/devicetree_generated.h
warning: UPDATEABLE_IMAGE_NUMBER (defined at
D:/Zephyr/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:87, subsys/dfu/Kconfig:96) was assigned the
value '1' but got the value ''. Check these unsatisfied dependencies:
(((BOARD_THINGY53_NRF5340_CPUAPP || BOARD_THINGY53_NRF5340_CPUAPP_NS) && SOC_SERIES_NRF53X &&
NCS_SAMPLE_MCUMGR_BT_OTA_DFU) || (!MCUBOOT && IMG_MANAGER)) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UPDATEABLE_IMAGE_NUMBER and/or look up
UPDATEABLE_IMAGE_NUMBER 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: MCUBOOT_UPDATE_FOOTER_SIZE (defined at subsys/dfu/Kconfig:55) was assigned the value
'0x2000' but got the value ''. Check these unsatisfied dependencies: MCUBOOT_IMG_MANAGER (=n),
IMG_MANAGER (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE and/or look up
MCUBOOT_UPDATE_FOOTER_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.
Parsing D:/Zephyr/zephyr/Kconfig
Loaded configuration 'D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_ns_defconfig'
Merged configuration 'D:/Zephyr/nfed/samples/button/prj.conf'
Merged configuration 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/.config.sysbuild'
Configuration saved to 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/.config'
Kconfig header saved to 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/users/mikej/.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/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING_C: True
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING_C: True
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING_C: True
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING_C: True
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Found gen_kobject_list: D:/Zephyr/zephyr/scripts/build/gen_kobject_list.py
-- Including signing script: D:/Zephyr/nrf/cmake/sysbuild/image_signing.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button
CMake Warning at D:/Zephyr/nrf/cmake/sysbuild/partition_manager.cmake:119 (message):
---------------------------------------------------------------------
--- WARNING: Using a bootloader without pm_static.yml. ---
--- There are cases where a deployed product can consist of ---
--- multiple images, and only a subset of these images can be ---
--- upgraded through a firmware update mechanism. In such cases, ---
--- the upgradable images must have partitions that are static ---
--- and are matching the partition map used by the bootloader ---
--- programmed onto the device. ---
---------------------------------------------------------------------
Call Stack (most recent call first):
D:/Zephyr/nrf/cmake/sysbuild/partition_manager.cmake:636 (partition_manager)
D:/Zephyr/nrf/sysbuild/CMakeLists.txt:825 (include)
cmake/modules/sysbuild_extensions.cmake:598 (nrf_POST_CMAKE)
cmake/modules/sysbuild_extensions.cmake:598 (cmake_language)
cmake/modules/sysbuild_images.cmake:46 (sysbuild_module_call)
cmake/modules/sysbuild_default.cmake:21 (include)
D:/Zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
D:/Zephyr/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
D:/Zephyr/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
Dropping partition 'nrf_modem_lib_trace' since its size is 0.
Dropping partition 'nonsecure_storage' since it is empty.
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2
-- west build: building application
[9/20] Performing build step for 'button'
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: D:/Zephyr/nfed/samples/button
-- CMake version: 3.22.0
-- Cache files will be written to: D:/Zephyr/zephyr/.cache
-- Zephyr version: 4.1.99 (D:/Zephyr/zephyr)
-- Found west (found suitable version "1.5.0", minimum required is "0.14.0")
-- Board: circuitdojo_feather_nrf9151, Revision: 2, qualifiers: nrf9151/ns
-- Found host-tools: zephyr 0.16.4 (C:/Users/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
-- Found toolchain: zephyr 0.16.4 (C:/Users/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4)
-- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
-- Found BOARD.dts: D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_ns.dts
-- Found devicetree overlay: D:/Zephyr/nfed/boards/circuitdojo/feather_nrf9151/circuitdojo_feather_nrf9151_ns_2.overlay
-- Generated zephyr.dts: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/zephyr.dts
-- Generated pickled edt: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/edt.pickle
-- Generated devicetree_generated.h: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing D:/Zephyr/zephyr/Kconfig
Loaded configuration 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/.config'
Merged configuration 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/.config.sysbuild'
No change to configuration in 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/.config'
No change to Kconfig header in 'D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/include/generated/zephyr/autoconf.h'
=========== Generating psa_crypto_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Backup: CONFIG_MBEDTLS_THREADING_C: True
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
Restore: CONFIG_MBEDTLS_THREADING_C: True
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_config ===============
=========== Generating psa_crypto_library_config ===============
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Backup: CONFIG_MBEDTLS_THREADING_C: True
Backup: CONFIG_MBEDTLS_THREADING_ALT: False
=========== Checkpoint: backup ===============
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True
Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
Restore: CONFIG_MBEDTLS_THREADING_C: True
Restore: CONFIG_MBEDTLS_THREADING_ALT: False
=========== End psa_crypto_library_config ===============
-- Found gen_kobject_list: D:/Zephyr/zephyr/scripts/build/gen_kobject_list.py
-- Including signing script: D:/Zephyr/nrf/cmake/sysbuild/image_signing.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button
[4/245] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.99 (D:/Zephyr/zephyr), build: ncs-v3.1.1
[10/245] Generating ../../tfm/CMakeCache.txt
-- Found Git: D:/Program Files/Git/cmd/git.exe (found version "2.52.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/mikej/.zephyrtools/toolchain/zephyr-sdk-0.16.4/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found Python3: C:/Users/mikej/.zephyrtools/env/Scripts/python.exe (found version "3.10.9") found components: Interpreter
-- Found Python3: C:/Users/mikej/.zephyrtools/env/Scripts/python.exe (found suitable version "3.10.9", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: D:/Zephyr/zephyr/.cache
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/tfm
[15/245] Performing build step for 'tfm'
[137/141] Linking C executable bin\tfm_s.axf
Memory region Used Size Region Size %age Used
FLASH: 31580 B 32256 B 97.90%
RAM: 10404 B 32 KB 31.75%
[141/141] Linking C static library secure_fw\libtfm_s_veneers.a
[17/245] Performing install step for 'tfm'
-- Install configuration: "MinSizeRel"
----- Installing platform NS -----
[245/245] Linking C executable zephyr\zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 26016 B 448 KB 5.67%
RAM: 6352 B 211608 B 3.00%
IDT_LIST: 0 GB 32 KB 0.00%
Generating files from D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/button/zephyr/zephyr.elf for board: circuitdojo_feather_nrf9151
image.py: sign the payload
image.py: sign the payload
[11/20] Performing build step for 'mcuboot'
[6/207] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.99 (D:/Zephyr/zephyr), build: ncs-v3.1.1
[207/207] Linking C executable zephyr\zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 42476 B 48 KB 86.42%
RAM: 21320 B 32 KB 65.06%
IDT_LIST: 0 GB 32 KB 0.00%
Generating files from D:/Zephyr/nfed/samples/button/build/circuitdojo_feather_nrf9151@2/mcuboot/zephyr/zephyr.elf for board: circuitdojo_feather_nrf9151
[20/20] Generating ../merged.hex
* Terminal will be reused by tasks, press any key to close it.
Flash output:
Executing task: probe-rs.exe download --chip nRF9151_xxAA --binary-format hex build\circuitdojo_feather_nrf9151@2\merged.hex --probe 2e8a:000c:E664B012CF5CBB28
Erasing ✔ 100% [####################] 104.00 KiB @ 37.72 KiB/s (took 3s)
Programming ✔ 100% [####################] 104.00 KiB @ 39.93 KiB/s (took 3s) Finished in 5.39s
* Terminal will be reused by tasks, press any key to close it.
* Executing task: probe-rs.exe reset --chip nRF9151_xxAA --probe 2e8a:000c:E664B012CF5CBB28
* Terminal will be reused by tasks, press any key to close it.