MCUboot build error with custom board with nrf52832 for SDK v2.9.0

Hello,

I'm trying to build my program for a custom board with FOTA BLE.

Im using v2.9.0 for the SDK and the toolchain. The custom board has a nrf52832.

When building this gives the following error:

 *  Executing task: nRF Connect: Generate config [email protected]/nrf52832 for e:\BolsaNordic\hello_world_DFU 

Building hello_world_DFU
west build --build-dir e:/BolsaNordic/hello_world_DFU/build e:/BolsaNordic/hello_world_DFU --pristine --board [email protected]/nrf52832 --sysbuild -- -DNCS_TOOLCHAIN_VERSION="NONE" -DBOARD_ROOT="e:/bolsanordic/zephyr_finalblepawr_peripheral"

-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: packagetag, Revision: 8.4.0, qualifiers: nrf52832
Parsing C:/ncs/v2.9.0/zephyr/share/sysbuild/Kconfig
Loaded configuration 'E:/BolsaNordic/hello_world_DFU/build/_sysbuild/empty.conf'
Merged configuration 'E:/BolsaNordic/hello_world_DFU/build/_sysbuild/empty.conf'
Merged configuration 'e:/BolsaNordic/hello_world_DFU/sysbuild.conf'
Configuration saved to 'E:/BolsaNordic/hello_world_DFU/build/zephyr/.config'
Kconfig header saved to 'E:/BolsaNordic/hello_world_DFU/build/_sysbuild/autoconf.h'
--
   *****************************
   * Running CMake for mcuboot *
   *****************************

Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
-- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: packagetag, Revision: 8.4.0, qualifiers: nrf52832
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag.dts
-- Found devicetree overlay: E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_8_4_0.overlay
-- Found devicetree overlay: C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/dts.cmake
Parsing C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_defconfig'
Merged configuration 'E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_8_4_0_defconfig'
Merged configuration 'C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration 'E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/.config.sysbuild'
Configuration saved to 'E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/.config'
Kconfig header saved to 'E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/b620d30767/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/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Setting build type to 'MinSizeRel' as none was specified.
CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
  No SOURCES given to Zephyr library: drivers__spi

  Excluding target from build.


MCUBoot bootloader key file: C:/ncs/v2.9.0/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: E:/BolsaNordic/hello_world_DFU/build/mcuboot
--
   *************************************
   * Running CMake for hello_world_DFU *
   *************************************

Loading Zephyr default modules (Zephyr base).
-- Application: E:/BolsaNordic/hello_world_DFU
-- CMake version: 3.21.0
-- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
-- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: packagetag, Revision: 8.4.0, qualifiers: nrf52832
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag.dts
-- Found devicetree overlay: E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_8_4_0.overlay
-- Found devicetree overlay: E:/BolsaNordic/hello_world_DFU/app.overlay
-- Generated zephyr.dts: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/dts.cmake
Parsing C:/ncs/v2.9.0/zephyr/Kconfig
Loaded configuration 'E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_defconfig'
Merged configuration 'E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_8_4_0_defconfig'
Merged configuration 'E:/BolsaNordic/hello_world_DFU/prj.conf'
Merged configuration 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/.config.sysbuild'
Configuration saved to 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/.config'
Kconfig header saved to 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/b620d30767/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/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Setting build type to 'MinSizeRel' as none was specified.
-- Including signing script: C:/ncs/v2.9.0/nrf/cmake/sysbuild/image_signing.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU
CMake Warning at C:/ncs/v2.9.0/nrf/cmake/sysbuild/partition_manager.cmake:106 (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):
  C:/ncs/v2.9.0/nrf/cmake/sysbuild/partition_manager.cmake:634 (partition_manager)
  C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:703 (include)
  cmake/modules/sysbuild_extensions.cmake:583 (nrf_POST_CMAKE)
  cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
  cmake/modules/sysbuild_images.cmake:23 (sysbuild_module_call)
  cmake/modules/sysbuild_default.cmake:20 (include)
  C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring done
-- Generating done
-- Build files have been written to: E:/BolsaNordic/hello_world_DFU/build
←[92m-- west build: building application
[9/20] Performing build step for 'hello_world_DFU'
[0/1] Re-running CMake...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: E:/BolsaNordic/hello_world_DFU
-- CMake version: 3.21.0
-- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
-- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: packagetag, Revision: 8.4.0, qualifiers: nrf52832
-- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
-- Found BOARD.dts: E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag.dts
-- Found devicetree overlay: E:/BolsaNordic/Zephyr_FinalBLEPAwR_Peripheral/boards/TheLittleFish/packagetag/packagetag_8_4_0.overlay
-- Found devicetree overlay: E:/BolsaNordic/hello_world_DFU/app.overlay
-- Generated zephyr.dts: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/dts.cmake
Parsing C:/ncs/v2.9.0/zephyr/Kconfig
Loaded configuration 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/.config'
Merged configuration 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/.config.sysbuild'
No change to configuration in 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/.config'
No change to Kconfig header in 'E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/include/generated/zephyr/autoconf.h'
-- Including signing script: C:/ncs/v2.9.0/nrf/cmake/sysbuild/image_signing.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU
[4/254] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr), build: v3.7.99-ncs2
[7/254] Generating include/generated/zephyr/kobj-types-enum.h, include/generated/zephyr/otype-to-str.h, inc[33/254] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/b[34/254] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/m[45/254] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/m[46/254] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/m[49/254] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/m[51/254] Building C object modules/segger/CMakeFiles/modules__segger.dir/C_/ncs/v2.9.0/modules/debug/segger[53/254] Building C object modules/zcbor/CMakeFiles/modules__zcbor.dir/C_/ncs/v2.9.0/modules/lib/zcbor/src/[54/254] Building C object modules/zcbor/CMakeFiles/modules__zcbor.dir/C_/ncs/v2.9.0/modules/lib/zcbor/src/[97/254] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.9.0/modules/crypto/tinycrypt/lib/source/a[105/254] Building C object zephyr/arch/arch/arm/core/mpu/CMakeFiles/arch__arm__core__mpu.dir/arm_mpu_regio[119/254] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/scb[122/254] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/fau[125/254] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/irq[129/254] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/s[130/254] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/thr[134/254] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/cpu[149/254] Building C object zephyr/subsys/mgmt/mcumgr/smp/CMakeFiles/subsys__mgmt__mcumgr__smp.dir/src/smp.[151/254] Building C object zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/CMakeFiles/subsys__mgmt__mcumgr__grp__im[154/254] Building C object zephyr/subsys/mgmt/mcumgr/grp/img_mgmt/CMakeFiles/subsys__mgmt__mcumgr__grp__im[161/254] Building C object zephyr/subsys/mgmt/mcumgr/transport/CMakeFiles/subsys__mgmt__mcumgr__transport.[168/254] Linking C static library zephyr\subsys\mgmt\mcumgr\grp\os_mgmt\libsubsys__mgmt__mcumgr__grp__os_m[169/254] Linking C static library zephyr\subsys\mgmt\mcumgr\grp\img_mgmt\libsubsys__mgmt__mcumgr__grp__img[170/254] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/dummy.c[175/254] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/long_wq.c.o[184/254] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.[211/254] Building C object zephyr/drivers/sensor/bosch/bme280/CMakeFiles/drivers__sensor__bosch__bme280.di[215/254] Building C object zephyr/drivers/sensor/st/lis2dh/CMakeFiles/drivers__sensor__st__lis2dh.dir/lis2[227/254] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__[231/254] Linking C static library modules\nrf\lib\multithreading_lock\lib..__nrf__lib__multithreading_lock[232/254] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__[236/254] Linking C static library modules\nrf\lib\multithreading_lock\lib..__nrf__lib__multithreading_lock[237/254] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__[239/254] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__[240/254] Linking C static library modules\nrf\subsys\bluetooth\controller\lib..__nrf__subsys__bluetooth__c[243/254] Linking C static library modules\nrf\subsys\bluetooth\controller\lib..__nrf__subsys__bluetooth__c[254/254] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      141504 B     237056 B     59.69%
             RAM:       44372 B        64 KB     67.71%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from E:/BolsaNordic/hello_world_DFU/build/hello_world_DFU/zephyr/zephyr.elf for board: packagetag
image.py: sign the payload
image.py: sign the payload
[11/20] Performing build step for 'mcuboot'
[6/301] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr), build: v3.7.99-ncs2
[7/301] Generating include/generated/zephyr/kobj-types-enum.h, include/generated/zephyr/otype-to-str.h, inc[19/301] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/cpu_[21/301] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/isr_[26/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[32/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[36/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[38/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[44/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[47/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[53/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[59/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[61/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[66/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls/[78/301] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/m[92/301] Building C object CMakeFiles/app.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_m[94/301] Building C object CMakeFiles/app.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/loader.c.o[97/301] Building C object CMakeFiles/app.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/swap_scrat[103/301] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/[105/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls[111/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls[115/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSBase.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls[128/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSCrypto.dir/C_/ncs/v2.9.0/modules/crypto/mbedt[134/301] Building C object modules/mbedtls/CMakeFiles/mbedTLSX509.dir/C_/ncs/v2.9.0/modules/crypto/mbedtls[146/301] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.9.0/modules/crypto/mb[151/301] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.9.0/modules/crypto/mb[156/301] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.9.0/modules/crypto/mb[173/301] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/fpu[176/301] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/pre[186/301] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/string/strnlen.c[189/301] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/time/asctime.c.o[200/301] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul[204/301] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c[209/301] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.[214/301] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.[217/301] Building C object zephyr/soc/soc/nrf52832/CMakeFiles/soc__nordic.dir/validate_base_addresses.c.ob[241/301] Building C object zephyr/drivers/sensor/bosch/bme280/CMakeFiles/drivers__sensor__bosch__bme280.di[243/301] Building C object zephyr/drivers/sensor/st/lis2dh/CMakeFiles/drivers__sensor__st__lis2dh.dir/lis2[256/301] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/[260/301] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.9.0/[261/301] Building C object modules/segger/CMakeFiles/modules__segger.dir/C_/ncs/v2.9.0/modules/debug/segge[296/301] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -Os -DNDEBUG -gdwarf-4 -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  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=E:/BolsaNordic/hello_world_DFU/build/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/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf52832/libsoc__n
ordic.a  zephyr/drivers/adc/libdrivers__adc.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/
drivers/gpio/libdrivers__gpio.a  zephyr/drivers/led/libdrivers__led.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/pwm/libdrivers__pwm.a  zephyr/drivers/sensor/bosch/bme280/libdrivers
__sensor__bosch__bme280.a  zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__lis2dh.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprot
ect/lib..__nrf__lib__fprotect.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules
/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -LE:/BolsaNordic/hello_w
orld_DFU/build/mcuboot/zephyr  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m4  -mthumb  -ma
bi=aapcs  -mfp16-format=ieee  -fuse-ld=bfd  -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 -L"c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m/nofp" -lc -lgcc && cm
d.exe /C "cd /D E:\BolsaNordic\hello_world_DFU\build\mcuboot\zephyr && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe -E true""
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/adc/libdrivers__adc.a(adc_nrfx_saadc.c.obj)
: in function `k_sem_take':
E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/include/generated/zephyr/syscalls/kernel.h:1103: undefined reference to `z_impl_k_sem_take'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/adc/libdrivers__adc.a(adc_nrfx_saadc.c.obj)
: in function `k_sem_give':
E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/include/generated/zephyr/syscalls/kernel.h:1120: undefined reference to `z_impl_k_sem_give'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/adc/libdrivers__adc.a(adc_nrfx_saadc.c.obj)
: in function `k_sem_take':
E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/include/generated/zephyr/syscalls/kernel.h:1103: undefined reference to `z_impl_k_sem_take'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/adc/libdrivers__adc.a(adc_nrfx_saadc.c.obj)
: in function `k_sem_give':
E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/include/generated/zephyr/syscalls/kernel.h:1120: undefined reference to `z_impl_k_sem_give'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/includ
e/generated/zephyr/syscalls/kernel.h:1120: undefined reference to `z_impl_k_sem_give'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/sensor/bosch/bme280/libdrivers__sensor__bos
ch__bme280.a(bme280.c.obj):(.rodata.bme280_config_0+0x0): undefined reference to `__device_dts_ord_93'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__li
s2dh.a(lis2dh.c.obj):(.rodata.lis2dh_config_0+0x4): undefined reference to `__device_dts_ord_91'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__li
s2dh.a(lis2dh_trigger.c.obj): in function `lis2dh_trigger_anym_tap_set':
C:/ncs/v2.9.0/zephyr/drivers/sensor/st/lis2dh/lis2dh_trigger.c:203: undefined reference to `k_work_submit'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__li
s2dh.a(lis2dh_trigger.c.obj): in function `lis2dh_gpio_int1_callback':
C:/ncs/v2.9.0/zephyr/drivers/sensor/st/lis2dh/lis2dh_trigger.c:396: undefined reference to `k_work_submit'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__li
s2dh.a(lis2dh_trigger.c.obj): in function `lis2dh_gpio_int2_callback':
C:/ncs/v2.9.0/zephyr/drivers/sensor/st/lis2dh/lis2dh_trigger.c:416: undefined reference to `k_work_submit'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__li
s2dh.a(lis2dh_trigger.c.obj): in function `lis2dh_trigger_drdy_set':
C:/ncs/v2.9.0/zephyr/drivers/sensor/st/lis2dh/lis2dh_trigger.c:77: undefined reference to `k_work_submit'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[15/20] Generating ../dfu_application.zip
FAILED: _sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build E:/BolsaNordic/hello_world_DFU/build/_sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/m
cuboot-build
cmd.exe /C "cd /D E:\BolsaNordic\hello_world_DFU\build\mcuboot && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build E:/BolsaNordic/hello_world_DFU/build

I tried building a clean new hello world for the custom board, but the problems persistes.

I also tried following "Lesson 9 – Bootloaders and DFU/FOTA" of the nordic academy with no success.

I also found simillar problems in other question but I could not fix my problem.

Bellow are my files for the hello world program:

prj.conf

CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y

CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y

sysbuild.conf

SB_CONFIG_BOOTLOADER_MCUBOOT=y

My board (I'm building for the 8.4.0 version):

8540.packagetag.zip

Feel free to ask for any information.

Thank you.

  • Hi, 

    Try to add CONFIG_MULTITHREADING=y to sysbuild/mcuboot.conf.

    Regards,
    Amanda H.

  • Thank you for the fast reply.

    I tried adding the config and it no longer shows the error, but a new error surfaced:

    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map E:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -Os -DNDEBUG -gdwarf-4 -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  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=E:/BolsaNordic/hello_world_DFU/build/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/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf52832/libsoc__n
    ordic.a  zephyr/drivers/adc/libdrivers__adc.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/
    drivers/gpio/libdrivers__gpio.a  zephyr/drivers/led/libdrivers__led.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/pwm/libdrivers__pwm.a  zephyr/drivers/sensor/bosch/bme280/libdrivers
    __sensor__bosch__bme280.a  zephyr/drivers/sensor/nordic/temp/libdrivers__sensor__nordic__temp.a  zephyr/drivers/sensor/st/lis2dh/libdrivers__sensor__st__lis2dh.a  zephyr/drivers/serial/libdrivers__ser
    ial.a  zephyr/drivers/spi/libdrivers__spi.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  mod
    ules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modu
    les/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -LE:/BolsaNordic/hello_world_DFU/build/mcuboot/zephyr  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTL
    SBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -fuse-ld=bfd  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--so
    rt-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 -L"c:/ncs/toolchains/b620d
    30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m/nofp" -lc -lgcc && cmd.exe /C "cd /D E:\BolsaNordic\hello_world_DFU\build\mcuboot\zephyr && C:\ncs\toolchains\b62
    0d30767\opt\bin\cmake.exe -E true""
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `rodata' will not fit in re
    gion `FLASH'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `FLASH' overflowed by 988 bytes
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    [15/20] Generating ../dfu_application.zip
    FAILED: _sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build E:/BolsaNordic/hello_world_DFU/build/_sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/m
    cuboot-build
    cmd.exe /C "cd /D E:\BolsaNordic\hello_world_DFU\build\mcuboot && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build E:/BolsaNordic/hello_world_DFU/build

    From what I understand the program overflowed the FLASH size by 988 bytes. But this makes no sense since I'm building an empty hello_world.

    So did the mcuboot overflow?

  • Hi, 

    See my colleague's explanation in this post. Although it's for nRF52833, it also applies to nRF52832.

    Regards,
    Amanda H.  

  • Hello,

    Disabling the LOGs and printks reduced the size so that the MCUboot fitted into de allocated 48 KB.
    With this the program compiled.


    Memory region         Used Size  Region Size  %age Used
               FLASH:       45816 B        48 KB     93.21%
                 RAM:       26687 B        64 KB     40.72%
            IDT_LIST:          0 GB        32 KB      0.00%

    My question is why does the LOG need to be disabled in a custom, board for the MCUboot to fit, and not in a developer board, like the nRF52DK?

    Also the default size used for the MCUboot is 48 KB, did the size increase because of the FOTA?

    I also noticed that the sum of the RAM usage for the MCUboot and the program is bigger than the available RAM. Can this be a problem?

  • TheLittleFish said:
    My question is why does the LOG need to be disabled in a custom, board for the MCUboot to fit, and not in a developer board, like the nRF52DK?

    The LOG is disabled by default for nRF52DK. 

    TheLittleFish said:
    Also the default size used for the MCUboot is 48 KB, did the size increase because of the FOTA?

    It's increased according to the enabled features. 

    TheLittleFish said:
    I also noticed that the sum of the RAM usage for the MCUboot and the program is bigger than the available RAM. Can this be a problem?

    See this post.

Related