Hi,
I'm struggling with running the MCUBoot with nRF Connect SDK.
MCUBoot fails reading image header primary image.
nRF Connect SDK version: 1.7.1(1.7.0 also)
CPU: nrf52832
First I have this problem in our private project, but I can reproduce this in the hello_world project.
Here is the procedure.
I add CONFIG_BOOTLOADER_MCUBOOT=y in prj.conf and run west build.
west -v build ../../nRF_Connect_SDK/zephyr/samples/hello_world \
-b nrf52832 \
-p -t partition_manager_report \
-- --trace \
-DBOARD_ROOT=${top_dir}/xxxxxx/hello_with_bootloader/ \
-DCONFIG_SERIAL=y \
-DCONFIG_BOOTLOADER_MCUBOOT=y \
> build.lognrf52832 is my custom board, just for printing debug messages in uart line.
Here is the build log.
ZEPHYR_BASE=/workspaces/xxxxxx/nRF_Connect_SDK/zephyr (origin: env)
-- west build: generating a build system
cmake version 3.21.3 is OK; minimum version is 3.13.1
Running CMake: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build -S/workspaces/xxxxxx/nRF_Connect_SDK/zephyr/samples/hello_world -GNinja -DBOARD=nrf52832 --trace -DBOARD_ROOT=/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/ -DCONFIG_SERIAL=y -DCONFIG_BOOTLOADER_MCUBOOT=y
Running with trace output on.
-- Application: /workspaces/xxxxxx/nRF_Connect_SDK/zephyr/samples/hello_world
-- Zephyr version: 2.6.99 (/workspaces/xxxxxx/nRF_Connect_SDK/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: nrf52832
-- Cache files will be written to: /home/yosmoc/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/usr/local/gcc)
-- Found BOARD.dts: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/boards/arm/nrf52832/nrf52832.dts
-- Generated zephyr.dts: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/dts.cmake
Parsing /workspaces/xxxxxx/nRF_Connect_SDK/zephyr/Kconfig
Loaded configuration '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/boards/arm/nrf52832/nrf52832_defconfig'
Merged configuration '/workspaces/xxxxxx/nRF_Connect_SDK/zephyr/samples/hello_world/prj.conf'
Merged configuration '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/.config'
Kconfig header saved to '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/gcc/bin/arm-none-eabi-gcc
-- Application: /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/zephyr
-- Zephyr version: 2.6.99 (/workspaces/xxxxxx/nRF_Connect_SDK/zephyr), build: v2.6.99-ncs1-1
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.10") found components: Interpreter
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: nrf52832
-- Cache files will be written to: /home/yosmoc/.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/usr/local/gcc)
-- Found BOARD.dts: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/boards/arm/nrf52832/nrf52832.dts
-- Found devicetree overlay: /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/dts.cmake
Parsing /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/boards/arm/nrf52832/nrf52832_defconfig'
Merged configuration '/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/workspaces/xxxxxx/nRF_Connect_SDK/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/.config'
Kconfig header saved to '/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/gcc/bin/arm-none-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot
-- Configuring done
-- Generating done
-- Build files have been written to: /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build
-- west build: running target partition_manager_report
cmake version 3.21.3 is OK; minimum version is 3.13.1
Running CMake: /usr/bin/cmake --build /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build --target partition_manager_report -- -v
[1/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo
[2/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/zephyr && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/tmp && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-mkdir
[3/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo_append && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-download
[4/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo_append && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-update
[5/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo_append && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-patch
[6/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo_append && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-configure
[6/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake --build . --
[1/247] Preparing syscall dependency handling
[2/247] Generating misc/generated/syscalls_subdirs.trigger
[3/247] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/247] Generating include/generated/driver-validation.h
[5/247] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/247] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[7/247] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[8/247] Generating include/generated/offsets.h
[9/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[10/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[11/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[12/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[13/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[14/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[15/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[16/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[17/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[18/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[19/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[20/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[21/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[22/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[23/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[24/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[25/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[26/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[27/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[28/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[29/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_nano.c.obj
[30/247] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[31/247] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[32/247] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[33/247] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[34/247] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[35/247] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[36/247] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
[37/247] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[38/247] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/console/uart_console.c.obj
[39/247] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/clock_control/clock_control_nrf.c.obj
[40/247] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/sys_clock_init.c.obj
[41/247] Building C object zephyr/CMakeFiles/zephyr.dir/drivers/timer/nrf_rtc_timer.c.obj
[42/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[43/247] Building C object zephyr/CMakeFiles/zephyr.dir/workspaces/xxxxxx/nRF_Connect_SDK/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[44/247] Generating linker_zephyr_prebuilt.cmd
[45/247] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[46/247] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[47/247] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[48/247] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[49/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[50/247] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[51/247] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[52/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[53/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_se.c.obj
[54/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_slot_management.c.obj
[55/247] Generating zephyr/autogen-pubkey.c
[56/247] Linking C static library zephyr/libzephyr.a
[57/247] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[58/247] Linking C static library zephyr/arch/common/libisr_tables.a
[59/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[60/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[61/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[62/247] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[63/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[64/247] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[65/247] Building C object CMakeFiles/app.dir/flash_map_extended.c.obj
[66/247] Building C object CMakeFiles/app.dir/os.c.obj
[67/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj
[68/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/encrypted.c.obj
[69/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj
[70/247] Building C object CMakeFiles/app.dir/keys.c.obj
[71/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj
[72/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/image_ec256.c.obj
[73/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/image_ed25519.c.obj
[74/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj
[75/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/fault_injection_hardening.c.obj
[76/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
[77/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
[78/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
[79/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj
[80/247] Building C object CMakeFiles/app.dir/zephyr/autogen-pubkey.c.obj
[81/247] Building C object CMakeFiles/app.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/caps.c.obj
[82/247] Building C object CMakeFiles/app.dir/nrf_cleanup.c.obj
[83/247] Building C object zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj
[84/247] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[85/247] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[86/247] Linking C static library zephyr/arch/common/libarch__common.a
[87/247] Linking C static library zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a
[88/247] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[89/247] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[90/247] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[91/247] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[92/247] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[93/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[94/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[95/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[96/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[97/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[98/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[99/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[100/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[101/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[102/247] Linking C static library zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a
[103/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[104/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[105/247] Linking C static library zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a
[106/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[107/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[108/247] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[109/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[110/247] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[111/247] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
[112/247] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[113/247] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
[114/247] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uart.c.obj
[115/247] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
[116/247] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/flash_page_layout.c.obj
[117/247] Building C object modules/nrf/lib/fprotect/CMakeFiles/..__nrf__lib__fprotect.dir/fprotect_bprot.c.obj
[118/247] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[119/247] Linking C static library zephyr/lib/libc/minimal/liblib__libc__minimal.a
[120/247] Linking C static library zephyr/lib/posix/liblib__posix.a
[121/247] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
[122/247] Linking C static library zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a
[123/247] Linking C static library zephyr/drivers/serial/libdrivers__serial.a
[124/247] Linking C static library zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a
[125/247] Linking C static library modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a
[126/247] Linking C static library modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a
[127/247] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/hal/nordic/nrfx/mdk/system_nrf52.c.obj
[128/247] Building C object CMakeFiles/app.dir/main.c.obj
[129/247] Linking C static library zephyr/drivers/flash/libdrivers__flash.a
[130/247] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[131/247] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[132/247] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[133/247] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/hal/nordic/nrfx/drivers/src/nrfx_wdt.c.obj
[134/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/zephyr_init.c.obj
[135/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/aes.c.obj
[136/247] Linking C static library modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a
[137/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/aesni.c.obj
[138/247] Linking C static library app/libapp.a
[139/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/arc4.c.obj
[140/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/aria.c.obj
[141/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/asn1parse.c.obj
[142/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/asn1write.c.obj
[143/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/base64.c.obj
[144/247] Linking C static library modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a
[145/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/bignum.c.obj
[146/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/blowfish.c.obj
[147/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/camellia.c.obj
[148/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ccm.c.obj
[149/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/certs.c.obj
[150/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/chacha20.c.obj
[151/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/chachapoly.c.obj
[152/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/cipher.c.obj
[153/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/cipher_wrap.c.obj
[154/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/cmac.c.obj
[155/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ctr_drbg.c.obj
[156/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/des.c.obj
[157/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/debug.c.obj
[158/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/dhm.c.obj
[159/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ecdh.c.obj
[160/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ecdsa.c.obj
[161/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ecjpake.c.obj
[162/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ecp.c.obj
[163/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ecp_curves.c.obj
[164/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/entropy.c.obj
[165/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/entropy_poll.c.obj
[166/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/gcm.c.obj
[167/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/havege.c.obj
[168/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/hkdf.c.obj
[169/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/error.c.obj
[170/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/hmac_drbg.c.obj
[171/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/md.c.obj
[172/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/md2.c.obj
[173/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/md4.c.obj
[174/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/md5.c.obj
[175/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/memory_buffer_alloc.c.obj
[176/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/net_sockets.c.obj
[177/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/nist_kw.c.obj
[178/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/padlock.c.obj
[179/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pem.c.obj
[180/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/oid.c.obj
[181/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pk.c.obj
[182/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pk_wrap.c.obj
[183/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pkcs11.c.obj
[184/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pkcs12.c.obj
[185/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pkcs5.c.obj
[186/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pkparse.c.obj
[187/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/pkwrite.c.obj
[188/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/platform.c.obj
[189/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/platform_util.c.obj
[190/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/poly1305.c.obj
[191/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto.c.obj
[192/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_client.c.obj
[193/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_driver_wrappers.c.obj
[194/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_ecp.c.obj
[195/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_rsa.c.obj
[196/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_crypto_storage.c.obj
[197/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/psa_its_file.c.obj
[198/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ripemd160.c.obj
[199/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/rsa.c.obj
[200/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/sha256.c.obj
[201/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/sha512.c.obj
[202/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_cache.c.obj
[203/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/rsa_internal.c.obj
[204/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/sha1.c.obj
[205/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_ciphersuites.c.obj
[206/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_cli.c.obj
[207/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_cookie.c.obj
[208/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_msg.c.obj
[209/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_srv.c.obj
[210/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_ticket.c.obj
[211/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_tls.c.obj
[212/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/threading.c.obj
[213/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/version.c.obj
[214/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/version_features.c.obj
[215/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/ssl_tls13_keys.c.obj
[216/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/timing.c.obj
[217/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509.c.obj
[218/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509_create.c.obj
[219/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509_crt.c.obj
[220/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509_crl.c.obj
[221/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509_csr.c.obj
[222/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509write_crt.c.obj
[223/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/x509write_csr.c.obj
[224/247] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/workspaces/xxxxxx/nRF_Connect_SDK/modules/crypto/mbedtls/mbedtls/library/xtea.c.obj
[225/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[226/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[227/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[228/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[229/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[230/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[231/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[232/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[233/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[234/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[235/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[236/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[237/247] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[238/247] Linking C static library zephyr/kernel/libkernel.a
[239/247] Linking C static library modules/mbedtls/libmodules__mbedtls.a
[240/247] Linking C executable zephyr/zephyr_prebuilt.elf
[241/247] Generating linker.cmd
[242/247] Generating isr_tables.c, isrList.bin
[243/247] Generating dev_handles.c
[244/247] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[245/247] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[246/247] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[247/247] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 30228 B 48 KB 61.50%
SRAM: 22304 B 64 KB 34.03%
IDT_LIST: 0 GB 2 KB 0.00%
[140/155] : && ccache /usr/local/gcc/bin/arm-none-eabi-gcc zephyr/CMakeFiles/zephyr_prebuilt.dir/misc/empty_file.c.obj -o zephyr/zephyr_prebuilt.elf zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_prebuilt.cmd -Wl,-Map=/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/zephyr_prebuilt.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/drivers/serial/libdrivers__serial.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/usr/local/gcc/bin/../lib/gcc/arm-none-eabi/10.2.1/thumb/v7e-m/nofp" -L/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn && cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo
[147/155] : && ccache /usr/local/gcc/bin/arm-none-eabi-gcc zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj -o zephyr/zephyr.elf zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -fuse-ld=bfd -Wl,-T zephyr/linker.cmd -Wl,-Map=/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/zephyr_final.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/lib/posix/liblib__posix.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/drivers/serial/libdrivers__serial.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/usr/local/gcc/bin/../lib/gcc/arm-none-eabi/10.2.1/thumb/v7e-m/nofp" -L/workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr -lgcc -Wl,--print-memory-usage zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--orphan-handling=warn && cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E rename zephyr_final.map zephyr.map && /usr/local/gcc/bin/arm-none-eabi-objcopy --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && /usr/local/gcc/bin/arm-none-eabi-objcopy --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && /usr/local/gcc/bin/arm-none-eabi-objdump -d -S zephyr.elf > zephyr.lst && /usr/local/gcc/bin/arm-none-eabi-readelf -e zephyr.elf > zephyr.stat
Memory region Used Size Region Size %age Used
FLASH: 14472 B 237056 B 6.10%
SRAM: 4032 B 64 KB 6.15%
IDT_LIST: 0 GB 2 KB 0.00%
[149/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build && /usr/bin/python3.8 /workspaces/xxxxxx/nRF_Connect_SDK/zephyr/scripts/mergehex.py -o /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/mcuboot_primary_app.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/zephyr.hex
[151/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E echo_append && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-install
[152/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E make_directory /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/CMakeFiles && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/CMakeFiles/mcuboot_subimage-complete && /opt/cmake-3.21.3-linux-x86_64/bin/cmake -E touch /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-done
[153/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/mcuboot && /usr/bin/python3.8 /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/scripts/imgtool.py sign --key /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/root-rsa-2048.pem --header-size 0x200 --align 4 --version 0.0.0+0 --pad-header --slot-size 0x3a000 /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/mcuboot_primary_app.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_signed.hex && /usr/local/gcc/bin/arm-none-eabi-objcopy --input-target=ihex --output-target=binary --gap-fill=0xff /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/mcuboot_primary_app.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_to_sign.bin && /usr/bin/python3.8 /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/scripts/imgtool.py sign --key /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/root-rsa-2048.pem --header-size 0x200 --align 4 --version 0.0.0+0 --pad-header --slot-size 0x3a000 /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_to_sign.bin /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_update.bin && /usr/bin/python3.8 /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/scripts/imgtool.py sign --key /workspaces/xxxxxx/nRF_Connect_SDK/bootloader/mcuboot/root-rsa-2048.pem --header-size 0x200 --align 4 --version 0.0.0+0 --pad-header --slot-size 0x3a000 --pad /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/mcuboot_primary_app.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_test_update.hex && /usr/local/gcc/bin/arm-none-eabi-objcopy --input-target=ihex --output-target=ihex --change-address=237568 --gap-fill=0xff /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_test_update.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_moved_test_update.hex
[154/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build && /usr/bin/python3.8 /workspaces/xxxxxx/nRF_Connect_SDK/zephyr/scripts/mergehex.py -o /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/merged.hex --overlap=replace /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/mcuboot/zephyr/zephyr.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/mcuboot_primary.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/zephyr.hex /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/zephyr/app_signed.hex
[155/155] cd /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/modules/nrf && /usr/bin/python3.8 /workspaces/xxxxxx/nRF_Connect_SDK/zephyr/../nrf/scripts/partition_manager_report.py --input /workspaces/xxxxxx/xxxxxx/hello_with_bootloader/build/partitions.yml
flash_primary (0x80000 - 512kB):
+-------------------------------------------------+
| 0x0: mcuboot (0xc000 - 48kB) |
+---0xc000: mcuboot_primary (0x3a000 - 232kB)-----+
| 0xc000: mcuboot_pad (0x200 - 512B) |
+---0xc200: mcuboot_primary_app (0x39e00 - 231kB)-+
| 0xc200: app (0x39e00 - 231kB) |
+-------------------------------------------------+
| 0x46000: mcuboot_secondary (0x3a000 - 232kB) |
+-------------------------------------------------+
sram_primary (0x10000 - 64kB):
+-------------------------------------------+
| 0x20000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+And then I flash the image to the target and reboot, nothing happened.
west flash -- --hex-file build/zephyr/merged.hex -- west flash: rebuilding [0/4] Performing build step for 'mcuboot_subimage' ninja: no work to do. -- west flash: using runner blackmagicprobe Remote debugging using /dev/ttyACM0 Target voltage: 0.00V Available Targets: No. Att Driver 1 Nordic nRF52 M3/M4 2 Nordic nRF52 Access Port Attaching to Remote target warning: No executable has been specified and target does not support determining executable automatically. Try using the "file" command. 0xfffffffe in ?? () Loading section rom_start, size 0xdc lma 0xc200 Loading section text, size 0x3498 lma 0xc2dc Loading section .ARM.exidx, size 0x8 lma 0xf774 Loading section initlevel, size 0x28 lma 0xf77c Loading section devices, size 0x48 lma 0xf7a4 Loading section sw_isr_table, size 0x138 lma 0xf7ec Loading section device_handles, size 0x1a lma 0xf924 Loading section rodata, size 0x128 lma 0xf940 Loading section datas, size 0x20 lma 0xfa68 Start address 0x0000d54c, load size 14470 Transfer rate: 36 KB/sec, 657 bytes/write. [Inferior 1 (Remote target) killed]
I supposed merged.hex includes the bootloader. Is it correct?
Anyway, I manually flash the bootloader.
west flash -d build/mcuboot and then the bootloader starts.
[16:59:34:903] *** Booting Zephyr OS build v2.6.99-ncs1-1 *** [16:59:34:903] I: Starting bootloader [16:59:34:903] I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 [16:59:34:903] I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3 [16:59:34:903] I: Boot source: none [16:59:34:903] W: Failed reading image headers; Image=0 [16:59:34:903] E: Unable to find bootable image
The problem is that bootloader cannot find the primary image. Did I miss something?
I found the issue here. https://github.com/mcu-tools/mcuboot/issues/1164
Something this related?
Thanks