Actinius Icarus SDK fails to build no build step for TFM SDK 2.6.1

I can build with the 2.4.2 SDK but not the 2.6.1 

[19/384] No configure step for 'tfm'
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /Engineering/Firmware/cellular-building-monitor/build_icarus/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /Users/charlesfayal/Projects/NOWI/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr.hex /Users/charlesfayal/Projects/NOWI/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr.elf 
cd /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot && /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake --build . --
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake --build /Users/charlesfayal/Projects/NOWI/Engineering/Firmware/cellular-building-monitor/build_icarus

Using the Actinius_icarus_ns board

Parents
  • Hi Charles, 
    Please post the full log. 
    Also please take a look inside \zephyr\boards\arm\nrf9160dk_nrf9160\board.cmake, you can find this: 

    if(CONFIG_BOARD_NRF9160DK_NRF9160_NS)
      set(TFM_PUBLIC_KEY_FORMAT "full")
    endif()
    
    if(CONFIG_TFM_FLASH_MERGED_BINARY)
      set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
    endif()

    You may want to add the same to board.cmake of the Actinius_icarus folder (and use if  CONFIG_BOARD_...  for Actinius_icarus_ns )

  • Full log:
     *  Executing task: nRF Connect: Build [pristine]: cellular-building-monitor/build_icarus (active) 
    
    Building cellular-building-monitor
    west build --build-dir /Engineering/Firmware/cellular-building-monitor/build_icarus /Engineering/Firmware/cellular-building-monitor --pristine --board actinius_icarus_ns -- -DNCS_TOOLCHAIN_VERSION=NONE -DCACHED_CONF_FILE=/Engineering/Firmware/cellular-building-monitor/prj.conf -DCONF_FILE=prj.conf -DEXTRA_CONF_FILE=boards/release.conf -DDTC_OVERLAY_FILE=boards/actinius_icarus_ns.overlay -DBOARD_ROOT=/Engineering/Firmware/cellular-building-monitor
    
    -- west build: generating a build system
    -- Application: /Engineering/Firmware/cellular-building-monitor
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/Library/Caches/zephyr
    -- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    Loading Zephyr default modules (Zephyr base).
    -- Board: actinius_icarus_ns, Revision: 2.0.0
    -- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
    -- Found BOARD.dts: /opt/nordic/ncs/v2.6.1/zephyr/boards/arm/actinius_icarus/actinius_icarus_ns.dts
    -- Found devicetree overlay: /opt/nordic/ncs/v2.6.1/zephyr/boards/arm/actinius_icarus/actinius_icarus_ns_2_0_0.overlay
    -- Found devicetree overlay: boards/actinius_icarus_ns.overlay
    -- Generated zephyr.dts: /Engineering/Firmware/cellular-building-monitor/build_icarus/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Engineering/Firmware/cellular-building-monitor/build_icarus/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /Engineering/Firmware/cellular-building-monitor/build_icarus/zephyr/dts.cmake
    
    warning: SPI (defined at boards/shields/x_nucleo_idb05a1/Kconfig.defconfig:8,
    soc/arm/nxp_kinetis/k6x/Kconfig.defconfig.mk64f12:18,
    soc/arm/nxp_kinetis/kwx/Kconfig.defconfig.mkw2xd512:19, drivers/spi/Kconfig:9) was assigned the
    value 'n' but got the value 'y'. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SPI
    and/or look up SPI 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: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL (=n), SERIAL_HAS_DRIVER (=n), CONSOLE (=n).
    See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up
    UART_CONSOLE 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: STDOUT_CONSOLE (defined at lib/libc/Kconfig:126) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_STDOUT_CONSOLE and/or look up
    STDOUT_CONSOLE 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: The choice symbol AWS_IOT_LOG_LEVEL_DBG (defined at
    subsys/logging/Kconfig.template.log_config:20) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_AWS_IOT_LOG_LEVEL_DBG
    and/or look up AWS_IOT_LOG_LEVEL_DBG 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: The choice symbol LOG_MODE_IMMEDIATE (defined at subsys/logging/Kconfig.mode:18) was
    selected (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_IMMEDIATE and/or look up
    LOG_MODE_IMMEDIATE 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: The choice symbol I2C_LOG_LEVEL_OFF (defined at
    subsys/logging/Kconfig.template.log_config:8) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_I2C_LOG_LEVEL_OFF
    and/or look up I2C_LOG_LEVEL_OFF 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: The choice symbol WDT_LOG_LEVEL_OFF (defined at
    subsys/logging/Kconfig.template.log_config:8) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_WDT_LOG_LEVEL_OFF
    and/or look up WDT_LOG_LEVEL_OFF 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: The choice symbol NVS_LOG_LEVEL_OFF (defined at
    subsys/logging/Kconfig.template.log_config:8) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NVS_LOG_LEVEL_OFF
    and/or look up NVS_LOG_LEVEL_OFF 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 /Engineering/Firmware/cellular-building-monitor/Kconfig
    Loaded configuration '/opt/nordic/ncs/v2.6.1/zephyr/boards/arm/actinius_icarus/actinius_icarus_ns_defconfig'
    Merged configuration '/Engineering/Firmware/cellular-building-monitor/prj.conf'
    Merged configuration '/Engineering/Firmware/cellular-building-monitor/boards/release.conf'
    Configuration saved to '/Engineering/Firmware/cellular-building-monitor/build_icarus/zephyr/.config'
    Kconfig header saved to '/Engineering/Firmware/cellular-building-monitor/build_icarus/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (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: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/[email protected]/bin/python3.9 (found version "3.9.6") found components: Interpreter 
    Changed board to secure actinius_icarus (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /opt/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/Library/Caches/zephyr
    -- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: actinius_icarus, Revision: 2.0.0
    -- Found host-tools: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk)
    -- Found Dtc: /opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") 
    -- Found BOARD.dts: /opt/nordic/ncs/v2.6.1/zephyr/boards/arm/actinius_icarus/actinius_icarus.dts
    -- Found devicetree overlay: /opt/nordic/ncs/v2.6.1/zephyr/boards/arm/actinius_icarus/actinius_icarus_2_0_0.overlay
    -- Found devicetree overlay: /opt/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE 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 /opt/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/opt/nordic/ncs/v2.6.1/zephyr/boards/arm/actinius_icarus/actinius_icarus_defconfig'
    Merged configuration '/opt/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/opt/nordic/ncs/v2.6.1/bootloader/mcuboot/boot/zephyr/boards/actinius_icarus.conf'
    Merged configuration '/opt/nordic/ncs/v2.6.1/nrf/modules/mcuboot/tfm.conf'
    Merged configuration '/opt/nordic/ncs/v2.6.1/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration '/opt/nordic/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/.config'
    Kconfig header saved to '/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (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: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
    CMake Warning at /opt/nordic/ncs/v2.6.1/zephyr/CMakeLists.txt:862 (message):
      No SOURCES given to Zephyr library: boards__arm__actinius_icarus
    
      Excluding target from build.
    
    
    CMake Warning at /opt/nordic/ncs/v2.6.1/zephyr/CMakeLists.txt:862 (message):
      No SOURCES given to Zephyr library: drivers__spi
    
      Excluding target from build.
    
    
    MCUBoot bootloader key file: /opt/nordic/ncs/v2.6.1/bootloader/mcuboot/root-ec-p256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at /opt/nordic/ncs/v2.6.1/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    -- Using ccache: /opt/nordic/ncs/toolchains/580e4ef81c/bin/ccache
    CMake Warning at /opt/nordic/ncs/v2.6.1/zephyr/CMakeLists.txt:862 (message):
      No SOURCES given to Zephyr library: boards__arm__actinius_icarus
    
      Excluding target from build.
    
    
    CMake Warning at /opt/nordic/ncs/v2.6.1/nrf/cmake/partition_manager.cmake:79 (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):
      /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/kernel.cmake:248 (include)
      /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
      /opt/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /opt/nordic/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:7 (find_package)
    
    
    Dropping partition 'nrf_modem_lib_trace' since its size is 0.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Engineering/Firmware/cellular-building-monitor/build_icarus
    -- west build: building application
    [1/384] Preparing syscall dependency handling
    
    [1/196] Preparing syscall dependency handling
    
    [11/196] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [191/196] Linking C executable zephyr/zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr_pre0.map 
    : && ccache /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/arm/nordic_nrf/libsoc__arm__nordic_nrf.a  zephyr/boards/boards/arm/actinius_icarus/actinius_common/libboards__common__actinius.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/zcbor/libmodules__zcbor.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main+fp/hard"  -L/Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfpu=fpv5-sp-d16  -mfloat-abi=hard  -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  -Wl,-no-pie  /opt/nordic/ncs/v2.6.1/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a  /opt/nordic/ncs/v2.6.1/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m33/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cd /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr && /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake -E true
    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj): in function `k_sleep':
    /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/include/generated/syscalls/kernel.h:135: undefined reference to `z_impl_k_sleep'
    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/include/generated/syscalls/kernel.h:135: undefined reference to `z_impl_k_sleep'
    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_114'
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    [13/384] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (/opt/nordic/ncs/v2.6.1/zephyr), build: 3758bcbfa5cd
    [14/384] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):
      Actual TF-M version is not available from Git repository.  Settled to
      v2.0.0
    Call Stack (most recent call first):
      CMakeLists.txt:22 (include)
    
    
    -- Found Git: /opt/nordic/ncs/toolchains/580e4ef81c/bin/git (found version "2.37.3") 
    -- 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: /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/[email protected]/bin/python3.9 (found version "3.9.6") found components: Interpreter 
    CMake Deprecation Warning at /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
      'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
      instead.
    Call Stack (most recent call first):
      /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      /opt/nordic/ncs/v2.6.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      /opt/nordic/ncs/v2.6.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:38 (include)
    
    
    -- Found Python3: /opt/nordic/ncs/toolchains/580e4ef81c/opt/[email protected]/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /Users/Library/Caches/zephyr
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CRYPTO_RNG_MODULE_ENABLED
        MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
        PYTHON_PREFER
    
    
    -- Build files have been written to: /Engineering/Firmware/cellular-building-monitor/build_icarus/tfm
    [19/384] No configure step for 'tfm'
    FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /Engineering/Firmware/cellular-building-monitor/build_icarus/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr.hex /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot/zephyr/zephyr.elf 
    cd /Engineering/Firmware/cellular-building-monitor/build_icarus/mcuboot && /opt/nordic/ncs/toolchains/580e4ef81c/Cellar/cmake/3.21.0/bin/cmake --build . --
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake --build /Engineering/Firmware/cellular-building-monitor/build_icarus
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    

    Added to board.cmake for actinius_icarus:

    if(CONFIG_BOARD_ACTINIUS_ICARUS_NS)
    set(TFM_PUBLIC_KEY_FORMAT "full")
    endif()

    if(CONFIG_TFM_FLASH_MERGED_BINARY)
    set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
    endif()
    Still same error
  • Hi Charles, 
    I think the error is not related to "No configure step for 'tfm'" 
    From the log you sent, it's more likely the error here: 
    undefined reference to `z_impl_k_sleep' and undefined reference to `__device_dts_ord_114'

    The second one may related to a missing in device tree configuration.

    The first one, I'm not sure but a quick search point me to this: Issues with Building MCUboot for nRF7002DK Using NCS V2.5.2 
    Your issue may not be the same but please try to debug with the above error. 

Reply Children
No Data
Related