I'm playing a bit with MCU boot and folowed the tuturial. When I compile the sample with mcuboot from Zephyr, it works fine for the 52840DK, but when I try to compile for the 52840 dongle or the XIAO ble (also 52840) I get errors. What is going on and how do I continue? I first used sdk/toolchain 2.8.0. I upgraded to 2.9.1, but have the same issue. The project is almost completely empty and I did not add anything to it.
XIAO:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc Build flags: Id flags: The output was: 1 /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x34): undefined reference to `_exit' collect2: error: ld returned 1 exit status Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++ Build flags: Id flags: The output was: 1 /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld: /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/lib/libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x34): undefined reference to `_exit' collect2: error: ld returned 1 exit status
XIAO terminal, when just generating build configuration using sysbuild:
-- Setting build type to 'MinSizeRel' as none was specified. -- Using ccache: /home/bergm006/ncs/toolchains/b77d8c1312/usr/bin/ccache MCUBoot bootloader key file: /home/bergm006/ncs/v2.9.1/bootloader/mcuboot/root-ec-p256.pem ERRORUnable to get parent of node: ERRORUnable to get parent of node: ERRORUnable to get parent of node: ERRORUnable to get parent of node: CMake Error at /home/bergm006/ncs/v2.9.1/zephyr/cmake/modules/extensions.cmake:4041 (message): dt_prop(erase_size ...) missing required argument: PATH Call Stack (most recent call first): CMakeLists.txt:515 (dt_prop) -- Configuring incomplete, errors occurred! See also "/home/bergm006/nrf-projects/with_mcuboot/build_1/mcuboot/CMakeFiles/CMakeOutput.log". See also "/home/bergm006/nrf-projects/with_mcuboot/build_1/mcuboot/CMakeFiles/CMakeError.log". CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message): CMake configure failed for Zephyr project: mcuboot Location: /home/bergm006/ncs/v2.9.1/bootloader/mcuboot/boot/zephyr/ Call Stack (most recent call first): cmake/modules/sysbuild_images.cmake:20 (ExternalZephyrProject_Cmake) cmake/modules/sysbuild_default.cmake:20 (include) /home/bergm006/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include) /home/bergm006/ncs/v2.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) /home/bergm006/ncs/v2.9.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include) template/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! See also "/home/bergm006/nrf-projects/with_mcuboot/build_1/CMakeFiles/CMakeOutput.log". FATAL ERROR: command exited with status 1: /home/bergm006/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -DWEST_PYTHON=/home/bergm006/ncs/toolchains/b77d8c1312/usr/local/bin/python3.12 -B/home/bergm006/nrf-projects/with_mcuboot/build_1 -GNinja -DBOARD=xiao_ble/nrf52840/sense -DNCS_TOOLCHAIN_VERSION=NONE -S/home/bergm006/ncs/v2.9.1/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/bergm006/nrf-projects/with_mcuboot
DONGLE:
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/bergm006/nrf-projects/with_mcuboot/build/mcuboot/zephyr/zephyr_pre0.map : && ccache /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -Os -DNDEBUG -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=/home/bergm006/nrf-projects/with_mcuboot/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/nrf52840/libsoc__nordic.a zephyr/boards/nordic/nrf52840dongle/libboards__nordic__nrf52840dongle.a zephyr/drivers/usb/device/libdrivers__usb__device.a zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/flash/libdrivers__flash.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/hwinfo/libdrivers__hwinfo.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.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"/home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard" -L/home/bergm006/nrf-projects/with_mcuboot/build/mcuboot/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-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 /home/bergm006/ncs/v2.8.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a /home/bergm006/ncs/v2.8.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cd /home/bergm006/nrf-projects/with_mcuboot/build/mcuboot/zephyr && /home/bergm006/ncs/toolchains/b77d8c1312/usr/local/bin/cmake -E true /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text' will not fit in region `FLASH' /home/bergm006/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 7880 bytes collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. [10/20] No configure step for 'with_mcuboot' FAILED: _sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build /home/bergm006/nrf-projects/with_mcuboot/build/_sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build cd /home/bergm006/nrf-projects/with_mcuboot/build/mcuboot && /home/bergm006/ncs/toolchains/b77d8c1312/usr/local/bin/cmake --build . ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: /home/bergm006/ncs/toolchains/b77d8c1312/usr/local/bin/cmake --build /home/bergm006/nrf-projects/with_mcuboot/build