MCUBoot HelloWorld code does not build successfully when the build configuration selected is nrf7002dk_nrf5340_cpuapp but it works when the build configuration selected is nrf5340dk_nrf5340_cpuapp

Hi everyone,

I have an nrf7002DK board and I was trying to build the MCUBoot HelloWorld code and i got the error message shown in below when my build configuration set was nrf7002dk_nrf5340_cpuapp.

Building PlatformBootloader3
C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/Arjun/WPM/Code/PlatformBootloader3/build_1 c:/Arjun/WPM/Code/PlatformBootloader3 --pristine --board nrf7002dk_nrf5340_cpuapp --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONF_FILE:STRING="c:/Arjun/WPM/Code/PlatformBootloader3/prj.conf" -DBOARD_ROOT:STRING="c:/arjun/wpm/code/platformbootloader3""

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Arjun/WPM/Code/PlatformBootloader3
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf7002dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/v2.4.0/nrf/boards/arm/nrf7002dk_nrf5340/nrf7002dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/zephyr/dts.cmake
Parsing C:/ncs/v2.4.0/zephyr/Kconfig
Loaded configuration 'C:/ncs/v2.4.0/nrf/boards/arm/nrf7002dk_nrf5340/nrf7002dk_nrf5340_cpuapp_defconfig'
Merged configuration 'c:/Arjun/WPM/Code/PlatformBootloader3/prj.conf'
Configuration saved to 'C:/Arjun/WPM/Code/PlatformBootloader3/build_1/zephyr/.config'
Kconfig header saved to 'C:/Arjun/WPM/Code/PlatformBootloader3/build_1/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found version "3.8.2") found components: Interpreter

=== child image mcuboot - begin ===
loading initial cache file C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/child_image_preload.cmake
CMake Warning (dev) at C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/child_image_preload.cmake:7 (set):
Syntax error in cmake code at

C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/child_image_preload.cmake:7

when parsing string

C:\ncs\toolchains\31f4403e35\opt\bin\python.exe

Invalid escape sequence \3

Policy CMP0010 is not set: Bad variable reference syntax is an error. Run
"cmake --help-policy CMP0010" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.

Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.20.5
-- Found Python3: C:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.4.0/zephyr/.cache
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf7002dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/ncs/v2.4.0/nrf/boards/arm/nrf7002dk_nrf5340/nrf7002dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: C:/ncs/v2.4.0/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr/dts.cmake
Parsing C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration 'C:/ncs/v2.4.0/nrf/boards/arm/nrf7002dk_nrf5340/nrf7002dk_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/ncs/v2.4.0/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration 'C:/ncs/v2.4.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr/.config'
Kconfig header saved to 'C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr/include/generated/autoconf.h'
-- Found GnuLd: c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
No SOURCES given to Zephyr library: lib__libc__common

Excluding target from build.


CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
No SOURCES given to Zephyr library: drivers__spi

Excluding target from build.


MCUBoot bootloader key file: C:/ncs/v2.4.0/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot
=== child image mcuboot - end ===

CMake Warning at C:/ncs/v2.4.0/nrf/modules/mcuboot/CMakeLists.txt:310 (message):

---------------------------------------------------------
--- WARNING: Using default MCUBoot key, it should not ---
--- be used for production. ---
---------------------------------------------------------

CMake Warning at C:/ncs/v2.4.0/zephyr/CMakeLists.txt:838 (message):
No SOURCES given to Zephyr library: lib__libc__common

Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Arjun/WPM/Code/PlatformBootloader3/build_1
-- west build: building application
[1/183] Generating include/generated/version.h
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
[2/183] Creating directories for 'mcuboot_subimage'
[3/183] No download step for 'mcuboot_subimage'
[4/183] No update step for 'mcuboot_subimage'
[5/183] No patch step for 'mcuboot_subimage'
[6/183] No configure step for 'mcuboot_subimage'
[6/183] Performing build step for 'mcuboot_subimage'
[1/290] Generating include/generated/version.h
-- Zephyr version: 3.3.99 (C:/ncs/v2.4.0/zephyr), build: v3.3.99-ncs1
[2/290] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/290] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[4/290] Generating include/generated/driver-validation.h
[5/290] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/290] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/290] Generating include/generated/offsets.h
[8/290] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_layout.c.obj
[9/290] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[10/290] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
[11/290] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[12/290] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[13/290] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[14/290] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf53/soc.c.obj
[15/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[16/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[17/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[18/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_nano.c.obj
[19/290] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[20/290] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.4.0/nrfxlib/crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[21/290] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.4.0/nrfxlib/crypto/nrf_cc312_platform/src/nrf_cc3xx_platform_no_mutex_zephyr.c.obj
[22/290] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[23/290] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.4.0/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[24/290] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[25/290] Generating linker_zephyr_pre1.cmd
[26/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[27/290] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[28/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[29/290] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[30/290] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[31/290] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[32/290] Generating linker_zephyr_pre0.cmd
[33/290] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[34/290] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[35/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[36/290] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[37/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[38/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[39/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_cookie.c.obj
[40/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_debug_helpers_generated.c.obj
[41/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_msg.c.obj
[42/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_client.c.obj
[43/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_ciphersuites.c.obj
[44/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls.c.obj
[45/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls13_client.c.obj
[46/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls12_client.c.obj
[47/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_ticket.c.obj
[48/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls12_server.c.obj
[49/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/timing.c.obj
[50/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls13_keys.c.obj
[51/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls13_generic.c.obj
[52/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/threading.c.obj
[53/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_tls13_server.c.obj
[54/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509.c.obj
[55/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/version.c.obj
[56/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/version_features.c.obj
[57/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509_crl.c.obj
[58/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509_create.c.obj
[59/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509write_crt.c.obj
[60/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509write_csr.c.obj
[61/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509_csr.c.obj
[62/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/x509_crt.c.obj
[63/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[64/290] Linking C static library zephyr\arch\common\libisr_tables.a
[65/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[66/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/mdk/system_nrf5340_application.c.obj
[67/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj
[68/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[69/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[70/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[71/290] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/src/nrfx_wdt.c.obj
[72/290] Generating zephyr/autogen-pubkey.c
[73/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[74/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[75/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[76/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[77/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[78/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[79/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[80/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[81/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[82/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[83/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[84/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[85/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[86/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[87/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[88/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[89/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[90/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[91/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[92/290] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[93/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[94/290] Linking C static library zephyr\arch\common\libarch__common.a
[95/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[96/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[97/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[98/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[99/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[100/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[101/290] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[102/290] Building C object CMakeFiles/app.dir/main.c.obj
[103/290] Building C object CMakeFiles/app.dir/os.c.obj
[104/290] Building C object CMakeFiles/app.dir/flash_map_extended.c.obj
[105/290] Building C object CMakeFiles/app.dir/keys.c.obj
[106/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/tlv.c.obj
[107/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/image_validate.c.obj
[108/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/encrypted.c.obj
[109/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/image_ec256.c.obj
[110/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/image_rsa.c.obj
[111/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/bootutil_misc.c.obj
[112/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/image_ed25519.c.obj
[113/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/fault_injection_hardening.c.obj
[114/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/loader.c.obj
[115/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/swap_scratch.c.obj
[116/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/swap_misc.c.obj
[117/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/swap_move.c.obj
[118/290] Building C object CMakeFiles/app.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/caps.c.obj
[119/290] Building C object CMakeFiles/app.dir/nrf_cleanup.c.obj
[120/290] Building C object CMakeFiles/app.dir/arm_cleanup.c.obj
[121/290] Building C object CMakeFiles/app.dir/zephyr/autogen-pubkey.c.obj
[122/290] Linking C static library zephyr\libzephyr.a
[123/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[124/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[125/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[126/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[127/290] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[128/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[129/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[130/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[131/290] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[132/290] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[133/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[134/290] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[135/290] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[136/290] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[137/290] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
[138/290] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[139/290] Generating ../../../include/generated/libc/minimal/strerror_table.h
[140/290] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[141/290] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[142/290] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[143/290] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/flash_page_layout.c.obj
[144/290] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/jesd216.c.obj
[145/290] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[146/290] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[147/290] Linking C static library app\libapp.a
[148/290] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[149/290] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[150/290] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[151/290] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[152/290] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[153/290] Linking C static library zephyr\kernel\libkernel.a
[154/290] Building C object modules/nrf/lib/fprotect/CMakeFiles/..__nrf__lib__fprotect.dir/fprotect_spu.c.obj
[155/290] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[156/290] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[157/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/sha256.c.obj
[158/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/sha1.c.obj
[159/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/rsa_alt_helpers.c.obj
[160/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/sha512.c.obj
[161/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ssl_cache.c.obj
[162/290] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.4.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
[163/290] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[164/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/zephyr_init.c.obj
[165/290] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[166/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[167/290] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[168/290] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[169/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[170/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[171/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[172/290] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
[173/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[174/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
[175/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
[176/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[177/290] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/spi_nor.c.obj
[178/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[179/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[180/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
[181/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[182/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[183/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[184/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[185/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[186/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
[187/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[188/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
[189/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[190/290] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[191/290] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[192/290] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[193/290] Linking C static library zephyr\drivers\console\libdrivers__console.a
[194/290] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
[195/290] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a
[196/290] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
[197/290] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[198/290] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[199/290] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
[200/290] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
[201/290] Linking C static library modules\nrf\lib\fprotect\lib..__nrf__lib__fprotect.a
[202/290] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[203/290] Linking C static library modules\mcuboot\boot\bootutil\zephyr\libmcuboot_util.a
[204/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/aesni.c.obj
[205/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/aria.c.obj
[206/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/aes.c.obj
[207/290] Linking C static library zephyr\drivers\flash\libdrivers__flash.a
[208/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/base64.c.obj
[209/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/asn1parse.c.obj
[210/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/asn1write.c.obj
[211/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/bignum_core.c.obj
[212/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/chacha20.c.obj
[213/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/bignum_mod.c.obj
[214/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/bignum_mod_raw.c.obj
[215/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ccm.c.obj
[216/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/camellia.c.obj
[217/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/cipher_wrap.c.obj
[218/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/cipher.c.obj
[219/290] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[220/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/chachapoly.c.obj
[221/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/cmac.c.obj
[222/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/code_share.c.obj
[223/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/debug.c.obj
[224/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/constant_time.c.obj
[225/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ctr_drbg.c.obj
[226/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/des.c.obj
[227/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/dhm.c.obj
[228/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ecdsa.c.obj
[229/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ecjpake.c.obj
[230/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ecp.c.obj
[231/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ecp_curves.c.obj
[232/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ecdh.c.obj
[233/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/hash_info.c.obj
[234/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/entropy.c.obj
[235/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/entropy_poll.c.obj
[236/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/error.c.obj
[237/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/gcm.c.obj
[238/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/md.c.obj
[239/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/lmots.c.obj
[240/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/hkdf.c.obj
[241/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/lms.c.obj
[242/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/hmac_drbg.c.obj
[243/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/md5.c.obj
[244/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/net_sockets.c.obj
[245/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/memory_buffer_alloc.c.obj
[246/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/mps_trace.c.obj
[247/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/mps_reader.c.obj
[248/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pk.c.obj
[249/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/padlock.c.obj
[250/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/nist_kw.c.obj
[251/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/oid.c.obj
[252/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pem.c.obj
[253/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pkcs7.c.obj
[254/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pk_wrap.c.obj
[255/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pkcs12.c.obj
[256/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pkcs5.c.obj
[257/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pkparse.c.obj
[258/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/poly1305.c.obj
[259/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/platform.c.obj
[260/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/pkwrite.c.obj
[261/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/bignum.c.obj
[262/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/platform_util.c.obj
[263/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_driver_wrappers.c.obj
[264/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_aead.c.obj
[265/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_cipher.c.obj
[266/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto.c.obj
[267/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_client.c.obj
[268/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_hash.c.obj
[269/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_ecp.c.obj
[270/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_pake.c.obj
[271/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_mac.c.obj
[272/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_rsa.c.obj
[273/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_its_file.c.obj
[274/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_se.c.obj
[275/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_storage.c.obj
[276/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/psa_crypto_slot_management.c.obj
[277/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/ripemd160.c.obj
[278/290] Building C object modules/mbedtls/CMakeFiles/modules__mbedtls.dir/C_/ncs/v2.4.0/modules/crypto/mbedtls/library/rsa.c.obj
[279/290] Linking C static library modules\mbedtls\libmodules__mbedtls.a
[280/290] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=C:/Arjun/WPM/Code/PlatformBootloader3/build_1/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/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/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.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/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_cc310/lib..__nrf__drivers__hw_cc310.a modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a modules/mbedtls/libmodules__mbedtls.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp" -LC:/Arjun/WPM/Code/PlatformBootloader3/build_1/mcuboot/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-m33 -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 -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie C:/ncs/v2.4.0/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.17.a && cmd.exe /C "cd /D C:\Arjun\WPM\Code\PlatformBootloader3\build_1\mcuboot\zephyr && C:\ncs\toolchains\31f4403e35\opt\bin\cmake.exe -E echo ""
c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_141'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[162/183] Linking C executable zephyr\zephyr_pre0.elf

[166/183] Linking C executable zephyr\zephyr_pre1.elf

[171/183] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf
cmd.exe /C "cd /D C:\Arjun\WPM\Code\PlatformBootloader3\build_1\mcuboot && C:\ncs\toolchains\31f4403e35\opt\bin\cmake.exe --build . --"
[173/183] Linking C executable zephyr\zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 23688 B 491008 B 4.82%
RAM: 6256 B 512 KB 1.19%
IDT_LIST: 0 GB 2 KB 0.00%
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' --build 'c:\Arjun\WPM\Code\PlatformBootloader3\build_1'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Meanwhile the same code builds properly if the build configuration selected is nrf5340DK_nrf5340_cpuapp.

Parents
  • Hi, 

    You can add boards/nrf7002dk_nrf5340_cpuapp.overlay to application:

    / {
    	/* Configure the partition manager to use the mx25r64 external flash memory. */
    	chosen {
    		nordic,pm-ext-flash = &mx25r64;
    	};
    };
    
    &mx25r64 {
    	status = "okay";
    };

    add boards/nrf7002dk_nrf5340_cpuapp.conf to application:

    #
    # Copyright (c) 2021 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    ################################################################################
    
    # Serial Peripheral Interface (SPI) - Used to communicate with the mx25r64 external flash memory.
    CONFIG_SPI=y
    CONFIG_SPI_NOR=y
    CONFIG_SPI_NOR_SFDP_DEVICETREE=y
    CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
    
    ################################################################################
    # Enable flash operations.
    CONFIG_FLASH=y
    CONFIG_FLASH_MAP=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    

    Add child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.overlay:

    / {
    	/* Configure the partition manager to use the mx25r64 external flash memory. */
    	chosen {
    		nordic,pm-ext-flash = &mx25r64;
    	};
    };

    Add child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.conf

    # General
    #CONFIG_LOG=y
    #CONFIG_LOG_MODE_MINIMAL=y
    
    # MCUboot configurations to host the secondary image slot on the mx25r64 external flash memory.
    
    # General
    CONFIG_FLASH=y
    CONFIG_MULTITHREADING=y
    CONFIG_MAIN_STACK_SIZE=4096
    
    # Serial Peripheral Interface (SPI)
    CONFIG_SPI=y
    CONFIG_SPI_NOR=y
    CONFIG_SPI_NOR_SFDP_DEVICETREE=y
    CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
    
    # MCUBoot and Partition Manager
    CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
    CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000
    CONFIG_BOOT_MAX_IMG_SECTORS=256
    CONFIG_BOOT_ERASE_PROGRESSIVELY=y

    Here is my test project hello_world_mcuboot_7002DK.7z for NCS v2.4.0 and nRF7002DK. 

    “Beware that this code/configuration is not fully tested or qualified and should be considered provided “as-is”. Please test it with your application and let me know if you find any issues.”

    Regards,
    Amanda H.

  • Hi  ,

    This is works if the MCUBoot is configured as the immutable bootloader. thanks. 

    But there is a small problem here, i forgot to mention that i want MCUBoot as the upgradable Bootloader. when i try to add the 

    CONFIG_SECURE_BOOT=y in the .conf file, i am getting build errors. 
    I need the NSIB as immutable and MCUBoot as the platform bootloader. 
    Apologies for missing out the info
  • Hi  

    1. i have been working on an unmodified example only

    2. Next time onwards i ll share the logs properly.

    3. You can find the .config files here. 

    0880.config.zip

    Is there any means to setup a call via Teams or Zoom to resolve this issue?

  • Hi, 

    From your .config files, there are some extra mcuboot configs like CONFIG_BOOT_IMAGE_ACCESS_HOOKS=y and CONFIG_FLASH_SIMULATOR=y and more, and those are not used in my example. Are you trying to add to support the serial recovery of the network image? If so, it would need the mcuboot configs as in this example, and the following configs for the app:

    CONFIG_NRF53_UPGRADE_NETWORK_CORE=y
    CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=y
    CONFIG_BOARD_ENABLE_CPUNET=y
      

    I would also suggest you enable CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK for app when you are using external flash memory. 

    -Amanda H.

  • Hi Amanda,

    I am not trying to add serial recovery of the network image. the .config i shared with you was of the project "hello_world_7002DK_secboot.7z" that you had shared with me.

    I will share my project

    PlatformBootloader4.zip

    This is a sample project that was created using the VSCode and then the following things were taken from the "hello_world_7002DK_secboot.7z" project provided by you

    1. boards folder

    2. child image folder

    3. prj.conf file

    Please let me know if you want more info

  • Hi, 

    With your build configuration file, I can reproduce the issue. It seems it doesn't build with PlatformBootloader4\boards\nrf7002dk_nrf5340_cpuapp.conf for some reason. Try to add boards\nrf7002dk_nrf5340_cpuapp.conf as the following. It should fix the issue. 

    -Amanda H.

  • Thanks a lot  

    This worked. i was not adding the Kconfig fragments separately.

    This resolves the issue

Reply Children
Related