Not able to build MATTER sample with custom board using nrf5340

Hi,

I am using vs code with the nrf connect extension. I also use the v2.1.1 sdk and toolchain. I tried to make a custom board using my nrf5340dk, but it didn't compile. 

I included more of the required board files to my custom board directory from the board folder in the zephyr directory of the sdk. But still it is a cascade of errors and me trying to put more files.

So i resorted to copying the entire nrf5340dk_nrf5340 board folder to my custom board folder and changed the names of necessary dts files(only cpuapp and cpunet). I also changed the file names in the kconfig and defconfig files, also in the board.cmake file as well. I was able to build a blinky sample code, a bluetooth sample(hci uart), as well as peripheral_hr  with this custom board and tried it on the board.

But i can't get it to build it with a matter sample code(template). During build, the configuration part is done but down the line, some error regarding mcuboot occurs. 

I will attach the terminal log for your reference.

Building template
west build --build-dir c:\Alvin_s\Ashique\template\build_1 c:\Alvin_s\Ashique\template --pristine --board grande_m6_8sw -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/Alvin_s/nRF_WS/blinky;c:/Alvin_s/nRF_WS/grande_test_002;c:/Alvin_s/Ashique/template" -DCONF_FILE:STRING="c:/Alvin_s/Ashique/template/prj.conf"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Alvin_s/Ashique/template
-- Found Python3: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/Users/Alvin/ncs/v2.1.1/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: grande_m6_8sw
-- Found host-tools: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found dtc: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found BOARD.dts: C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/grande_m6_8sw.dts
-- Generated zephyr.dts: C:/Alvin_s/Ashique/template/build_1/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Alvin_s/Ashique/template/build_1/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Alvin_s/Ashique/template/build_1/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Alvin_s/Ashique/template/build_1/zephyr/dts.cmake
Parsing C:/Alvin_s/Ashique/template/Kconfig
Loaded configuration 'C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/grande_m6_8sw_defconfig'
Merged configuration 'c:/Alvin_s/Ashique/template/prj.conf'
Configuration saved to 'C:/Alvin_s/Ashique/template/build_1/zephyr/.config'
Kconfig header saved to 'C:/Alvin_s/Ashique/template/build_1/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe

=== child image multiprotocol_rpmsg - CPUNET begin ===
loading initial cache file C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/child_image_preload.cmake
-- Application: C:/Users/Alvin/ncs/v2.1.1/nrf/samples/nrf5340/multiprotocol_rpmsg
Loading Zephyr default modules (Zephyr base).
-- Found Python3: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/Users/Alvin/ncs/v2.1.1/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpunet
-- Found host-tools: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found dtc: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found BOARD.dts: C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
-- Generated zephyr.dts: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/dts.cmake
Parsing C:/Users/Alvin/ncs/v2.1.1/modules/lib/matter/config/nrfconnect/chip-module/Kconfig.multiprotocol_rpmsg.root
Loaded configuration 'C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
Merged configuration 'C:/Alvin_s/Ashique/template/child_image/multiprotocol_rpmsg/prj.conf'
Merged configuration 'C:/Users/Alvin/ncs/v2.1.1/nrf/subsys/bootloader/image/secure_boot.conf'
Merged configuration 'C:/Users/Alvin/ncs/v2.1.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/.config'
Kconfig header saved to 'C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe

=== child image b0n - CPUNET (inherited) begin ===
loading initial cache file C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/Alvin/ncs/v2.1.1/nrf/samples/nrf5340/netboot
-- Found Python3: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/Users/Alvin/ncs/v2.1.1/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpunet
-- Found host-tools: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found dtc: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found BOARD.dts: C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
-- Generated zephyr.dts: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/zephyr/dts.cmake
Parsing C:/Users/Alvin/ncs/v2.1.1/nrf/samples/nrf5340/netboot/Kconfig
Loaded configuration 'C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
Merged configuration 'C:/Users/Alvin/ncs/v2.1.1/nrf/samples/nrf5340/netboot/prj.conf'
Merged configuration 'C:/Users/Alvin/ncs/v2.1.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to 'C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/zephyr/.config'
Kconfig header saved to 'C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/Users/Alvin/ncs/v2.1.1/zephyr/CMakeLists.txt:1839 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg/b0n
=== child image b0n - CPUNET (inherited) end ===

-- libmetal version: 1.2.0 (C:/Users/Alvin/ncs/v2.1.1/nrf/samples/nrf5340/multiprotocol_rpmsg)
-- Build type:  
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.2.0 (C:/Users/Alvin/ncs/v2.1.1/modules/lib/open-amp/open-amp)
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
CMake Warning at C:/Users/Alvin/ncs/v2.1.1/zephyr/CMakeLists.txt:831 (message):
  No SOURCES given to Zephyr library: drivers__console

  Excluding target from build.


CMake Warning at C:/Users/Alvin/ncs/v2.1.1/zephyr/CMakeLists.txt:1839 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Alvin_s/Ashique/template/build_1/multiprotocol_rpmsg
=== child image multiprotocol_rpmsg - CPUNET end ===

-- Found Python3: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/python.exe (found version "3.8.2") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file C:/Alvin_s/Ashique/template/build_1/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/zephyr
-- Found Python3: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/Users/Alvin/ncs/v2.1.1/zephyr/.cache
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: grande_m6_8sw
-- Found host-tools: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found dtc: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk)
-- Found BOARD.dts: C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/grande_m6_8sw.dts
-- Found devicetree overlay: C:/Users/Alvin/ncs/v2.1.1/nrf/modules/mcuboot/usb.overlay
-- Found devicetree overlay: C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/zephyr/dts.overlay
-- Generated zephyr.dts: C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/dts.cmake
Parsing C:/Users/Alvin/ncs/v2.1.1/modules/lib/matter/config/nrfconnect/chip-module/Kconfig.mcuboot.root
Loaded configuration 'C:/Alvin_s/Ashique/template/boards/arm/nrf5340dk_nrf5340/grande_m6_8sw_defconfig'
Merged configuration 'C:/Alvin_s/Ashique/template/child_image/mcuboot/prj.conf'
Merged configuration 'C:/Users/Alvin/ncs/v2.1.1/nrf/subsys/pcd/pcd.conf'
Merged configuration 'C:/Users/Alvin/ncs/v2.1.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration 'C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/.config'
Kconfig header saved to 'C:/Alvin_s/Ashique/template/build_1/mcuboot/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
MCUBoot bootloader key file: C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Alvin_s/Ashique/template/build_1/mcuboot
=== child image mcuboot -  end ===

CMake Warning at C:/Users/Alvin/ncs/v2.1.1/nrf/modules/mcuboot/CMakeLists.txt:286 (message):
  

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



-- libmetal version: 1.2.0 (C:/Alvin_s/Ashique/template)
-- Build type:  
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- open-amp version: 1.2.0 (C:/Users/Alvin/ncs/v2.1.1/modules/lib/open-amp/open-amp)
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
CMake Warning at C:/Users/Alvin/ncs/v2.1.1/nrfxlib/openthread/cmake/extensions.cmake:114 (message):
   
   Current nrf_security configuration does not provide all MBEDTLS options which are required by precompiled OpenThread libraries.
   The minimum of MBEDTLS configuration is stored at: C:/Users/Alvin/ncs/v2.1.1/nrfxlib/openthread/lib/cortex-m33/hard-float/v1.3/mtd/oberon/nrf_security_mbedtls_configuration.h

Call Stack (most recent call first):
  C:/Users/Alvin/ncs/v2.1.1/nrfxlib/openthread/CMakeLists.txt:82 (check_openthread_dependencies)


CMake Warning at C:/Users/Alvin/ncs/v2.1.1/zephyr/CMakeLists.txt:1839 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done
-- Generating done
-- Build files have been written to: C:/Alvin_s/Ashique/template/build_1
-- west build: building application
[1/508] Generating include/generated/version.h
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr), build: v3.1.99-ncs1
[2/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_rsa.c.obj
[3/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_client.c.obj
[4/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_aead.c.obj
[5/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_hash.c.obj
[6/508] Creating directories for 'multiprotocol_rpmsg_subimage'
[7/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_cipher.c.obj
[8/508] Creating directories for 'mcuboot_subimage'
[9/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_storage.c.obj
[10/508] No download step for 'multiprotocol_rpmsg_subimage'
[11/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_mac.c.obj
[12/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/pem.c.obj
[13/508] No download step for 'mcuboot_subimage'
[14/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_ecp.c.obj
[15/508] No update step for 'multiprotocol_rpmsg_subimage'
[16/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/pkcs12.c.obj
[17/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/psa_crypto_slot_management.c.obj
[18/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/dhm.c.obj
[19/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/psa_crypto_driver_wrappers.c.obj
[20/508] No update step for 'mcuboot_subimage'
[21/508] No patch step for 'multiprotocol_rpmsg_subimage'
[22/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/pk.c.obj
[23/508] No patch step for 'mcuboot_subimage'
[24/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/pkcs5.c.obj
[25/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/pkparse.c.obj
[26/508] Building C object modules/nrfxlib/nrfxlib/nrf_security/src/CMakeFiles/mbedcrypto.dir/C_/Users/Alvin/ncs/v2.1.1/mbedtls/library/pkwrite.c.obj
[27/508] No configure step for 'multiprotocol_rpmsg_subimage'
[27/508] Performing build step for 'multiprotocol_rpmsg_subimage'
[0/307] Generating extra provision key files
[1/307] Generating include/generated/version.h
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr), build: v3.1.99-ncs1
[3/307] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[4/307] Generating signing key
[7/307] Generating include/generated/driver-validation.h
[8/307] Creating public key from private key used for signing
[9/307] No update step for 'b0n_subimage'
[10/307] Creating data to be provisioned to the Bootloader, storing to provision.hex
[11/307] No patch step for 'b0n_subimage'
[13/307] No configure step for 'b0n_subimage'
[13/307] Performing build step for 'b0n_subimage'
[1/165] Generating include/generated/version.h
-- Zephyr version: 3.1.99 (C:/Users/Alvin/ncs/v2.1.1/zephyr), build: v3.1.99-ncs1
[2/165] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/165] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[4/165] Generating include/generated/driver-validation.h
[5/165] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/165] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/165] Generating include/generated/offsets.h
[8/165] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[9/165] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[10/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[11/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[12/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[13/165] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[14/165] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[15/165] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[16/165] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[17/165] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[18/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[19/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[20/165] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[21/165] Generating linker_zephyr_pre0.cmd
[22/165] Generating linker_zephyr_pre1.cmd
[23/165] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[24/165] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[25/165] Linking C static library zephyr\arch\common\libisr_tables.a
[26/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[27/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[28/165] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[29/165] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[30/165] 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
[31/165] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[32/165] Building C object CMakeFiles/app.dir/src/main.c.obj
[33/165] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[34/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[35/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[36/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[37/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[38/165] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[39/165] Linking C static library zephyr\arch\common\libarch__common.a
[40/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[41/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[42/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[43/165] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[44/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[45/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[46/165] Linking C static library app\libapp.a
[47/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[48/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[49/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[50/165] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[51/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[52/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[53/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[54/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[55/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[56/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[57/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[58/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[59/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[60/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[61/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[62/165] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf53/soc.c.obj
[63/165] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[64/165] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[65/165] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[66/165] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[67/165] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_minimal.c.obj
[68/165] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[69/165] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[70/165] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/stream/stream_flash.c.obj
[71/165] Generating ../../../include/generated/libc/minimal/strerror_table.h
[72/165] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/perror.c.obj
[73/165] Building C object zephyr/CMakeFiles/zephyr.dir/C_/Users/Alvin/ncs/v2.1.1/nrf/subsys/partition_manager/flash_map_partition_manager.c.obj
[74/165] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[75/165] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
[76/165] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[77/165] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[78/165] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[79/165] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[80/165] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[81/165] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[82/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[83/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[84/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
[85/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
[86/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[87/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[88/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[89/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[90/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[91/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strerror.c.obj
[92/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[93/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[94/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[95/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[96/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[97/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[98/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[99/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[100/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrtf.c.obj
[101/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/math/sqrt.c.obj
[102/165] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[103/165] Linking C static library zephyr\libzephyr.a
[104/165] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/flash_page_layout.c.obj
[105/165] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
[106/165] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[107/165] Linking C static library zephyr\lib\posix\liblib__posix.a
[108/165] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[109/165] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
[110/165] Linking C static library zephyr\drivers\console\libdrivers__console.a
[111/165] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[112/165] Building C object modules/nrf/lib/fprotect/CMakeFiles/..__nrf__lib__fprotect.dir/fprotect_acl.c.obj
[113/165] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a
[114/165] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[115/165] Building C object modules/nrf/subsys/bootloader/bl_crypto/CMakeFiles/..__nrf__subsys__bootloader__bl_crypto.dir/bl_crypto.c.obj
[116/165] Building C object modules/nrf/subsys/bootloader/bl_boot/CMakeFiles/..__nrf__subsys__bootloader__bl_boot.dir/bl_boot.c.obj
[117/165] Building C object modules/nrf/subsys/bootloader/bl_crypto/CMakeFiles/..__nrf__subsys__bootloader__bl_crypto.dir/bl_crypto_oberon_hash.c.obj
[118/165] Linking C static library zephyr\drivers\flash\libdrivers__flash.a
[119/165] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
[120/165] Building C object modules/nrf/subsys/pcd/CMakeFiles/..__nrf__subsys__pcd.dir/src/pcd.c.obj
[121/165] Building C object modules/nrf/subsys/bootloader/bl_validation/CMakeFiles/..__nrf__subsys__bootloader__bl_validation.dir/bl_validation.c.obj
[122/165] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[123/165] Building C object modules/nrf/subsys/bootloader/bl_storage/CMakeFiles/..__nrf__subsys__bootloader__bl_storage.dir/bl_storage.c.obj
[124/165] Linking C static library zephyr\drivers\serial\libdrivers__serial.a
[125/165] Building C object modules/nrf/subsys/fw_info/CMakeFiles/..__nrf__subsys__fw_info.dir/fw_info.c.obj
[126/165] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_dppi.c.obj
[127/165] Linking C static library modules\nrf\subsys\bootloader\bl_boot\lib..__nrf__subsys__bootloader__bl_boot.a
[128/165] Linking C static library modules\nrf\lib\fprotect\lib..__nrf__lib__fprotect.a
[129/165] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
[130/165] Linking C static library modules\nrf\subsys\bootloader\bl_crypto\lib..__nrf__subsys__bootloader__bl_crypto.a
[131/165] Linking C static library modules\nrf\subsys\pcd\lib..__nrf__subsys__pcd.a
[132/165] Linking C static library modules\nrf\subsys\bootloader\bl_validation\lib..__nrf__subsys__bootloader__bl_validation.a
[133/165] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk/system_nrf5340_network.c.obj
[134/165] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[135/165] Linking C static library modules\nrf\subsys\bootloader\bl_storage\lib..__nrf__subsys__bootloader__bl_storage.a
[136/165] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[137/165] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[138/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[139/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[140/165] Linking C static library modules\nrf\subsys\fw_info\lib..__nrf__subsys__fw_info.a
[141/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[142/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[143/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[144/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[145/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[146/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[147/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[148/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[149/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[150/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[151/165] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[152/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[153/165] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[154/165] Linking C static library zephyr\kernel\libkernel.a
[155/165] Linking C executable zephyr\zephyr_pre0.elf

[156/165] Generating dev_handles.c
[157/165] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/misc/empty_file.c.obj
[158/165] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[159/165] Linking C executable zephyr\zephyr_pre1.elf

[160/165] Generating linker.cmd
[161/165] Generating isr_tables.c, isrList.bin
[162/165] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[163/165] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[164/165] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[165/165] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       23004 B      34304 B     67.06%
            SRAM:        3448 B        64 KB      5.26%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%
[289/307] Linking C executable zephyr\zephyr_pre0.elf

[291/307] No install step for 'b0n_subimage'
[292/307] Completed 'b0n_subimage'
[293/307] Generating zephyr/b0n_container.hex
[294/307] Generating dev_handles.c
[295/307] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/misc/empty_file.c.obj
[296/307] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[297/307] Linking C executable zephyr\zephyr_pre1.elf

[298/307] Generating linker.cmd
[299/307] Generating isr_tables.c, isrList.bin
[300/307] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[301/307] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[302/307] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[303/307] Linking C executable zephyr\zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      208716 B       222 KB     91.81%
            SRAM:       53908 B        64 KB     82.26%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%
[304/307] Generating zephyr/app.hex
[304/307] Creating signature of application
[305/307] Creating validation for zephyr.hex, storing to
[307/307] Generating zephyr/merged_CPUNET.hex
[319/508] Building C object modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
FAILED: modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj 
C:\Users\Alvin\ncs\toolchains\v2.1.1\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF5340_XXAA_APPLICATION -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=1 -DNRF_802154_IE_WRITER_ENABLED=1 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES="" -DNRF_802154_PENDING_SHORT_ADDRESSES="" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=1 -DZCBOR_ASSERT -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Users/Alvin/ncs/v2.1.1/zephyr/include/zephyr -IC:/Users/Alvin/ncs/v2.1.1/zephyr/include -Izephyr/include/generated -IC:/Users/Alvin/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/Users/Alvin/ncs/v2.1.1/zephyr/lib/libc/newlib/include -IC:/Users/Alvin/ncs/v2.1.1/zephyr/lib/util/fnmatch/. -IC:/Users/Alvin/ncs/v2.1.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/Users/Alvin/ncs/v2.1.1/zephyr/subsys/bluetooth -IC:/Users/Alvin/ncs/v2.1.1/zephyr/subsys/net/lib/sockets/. -IC:/Users/Alvin/ncs/v2.1.1/zephyr/subsys/settings/include -IC:/Users/Alvin/ncs/v2.1.1/nrf/include -IC:/Users/Alvin/ncs/v2.1.1/zephyr/modules/openthread/platform/. -IC:/Users/Alvin/ncs/v2.1.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx -IC:/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/drivers/include -IC:/Users/Alvin/ncs/v2.1.1/modules/hal/nordic/nrfx/mdk -IC:/Users/Alvin/ncs/v2.1.1/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/Users/Alvin/ncs/v2.1.1/modules/lib/open-amp/open-amp/lib/include -IC:/Users/Alvin/ncs/v2.1.1/modules/crypto/tinycrypt/lib/include -IC:/Users/Alvin/ncs/v2.1.1/modules/lib/zcbor/include -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/openthread/include -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_security/include -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_security/include/mbedtls -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_security/include/psa -IC:/Users/Alvin/ncs/v2.1.1/mbedtls/include -IC:/Users/Alvin/ncs/v2.1.1/mbedtls/include/mbedtls -IC:/Users/Alvin/ncs/v2.1.1/mbedtls/include/psa -IC:/Users/Alvin/ncs/v2.1.1/mbedtls/library -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_security/../crypto/nrf_oberon/include -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/crypto/nrf_oberon/include -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/softdevice_controller/include -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_802154/serialization/include -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_802154/serialization/include/platform -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_802154/serialization/include/serialization -IC:/Users/Alvin/ncs/v2.1.1/nrfxlib/nrf_802154/serialization/include/host -IC:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/Users/Alvin/ncs/v2.1.1/nrfxlib/crypto/nrf_cc312_platform/include -Os -imacros C:/Alvin_s/Ashique/template/build_1/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/Users/Alvin/ncs/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/Users/Alvin/ncs/v2.1.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/Alvin_s/Ashique/template=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/Alvin/ncs/v2.1.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/Alvin/ncs/v2.1.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -MF modules\mcuboot\boot\bootutil\zephyr\CMakeFiles\mcuboot_util.dir\C_\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c.obj.d -o modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -c C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c
In file included from C:\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c:43:
C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c: In function 'boot_swap_type_multi':
c:\users\alvin\ncs\v2.1.1\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:45:12: error: 'PM_MCUBOOT_PRIMARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_ID'?
   45 |            PM_MCUBOOT_PRIMARY_1_ID :         \
      |            ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c:435:41: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
  435 |         rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_PRIMARY(image_index),
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
c:\users\alvin\ncs\v2.1.1\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:45:12: note: each undeclared identifier is reported only once for each function it appears in
   45 |            PM_MCUBOOT_PRIMARY_1_ID :         \
      |            ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c:435:41: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
  435 |         rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_PRIMARY(image_index),
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~
c:\users\alvin\ncs\v2.1.1\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:52:12: error: 'PM_MCUBOOT_SECONDARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_SECONDARY_ID'?
   52 |            PM_MCUBOOT_SECONDARY_1_ID: \
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c:442:37: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
  442 |     rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_SECONDARY(image_index),
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c: In function 'boot_set_pending_multi':
c:\users\alvin\ncs\v2.1.1\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:52:12: error: 'PM_MCUBOOT_SECONDARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_SECONDARY_ID'?
   52 |            PM_MCUBOOT_SECONDARY_1_ID: \
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c:519:26: note: in expansion of macro 'FLASH_AREA_IMAGE_SECONDARY'
  519 |     rc = flash_area_open(FLASH_AREA_IMAGE_SECONDARY(image_index), &fap);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/Alvin/ncs/v2.1.1/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c: In function 'boot_set_confirmed_multi':
c:\users\alvin\ncs\v2.1.1\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:45:12: error: 'PM_MCUBOOT_PRIMARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_ID'?
   45 |            PM_MCUBOOT_PRIMARY_1_ID :         \
      |            ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Alvin\ncs\v2.1.1\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c:605:26: note: in expansion of macro 'FLASH_AREA_IMAGE_PRIMARY'
  605 |     rc = flash_area_open(FLASH_AREA_IMAGE_PRIMARY(image_index), &fap);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~
[327/508] Building C object modules/openthread/platform/CMakeFiles/openthread_platform.dir/platform.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\Users\Alvin\ncs\toolchains\v2.1.1\opt\bin\cmake.EXE' --build 'c:\Alvin_s\Ashique\template\build_1'

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

I just cant get it to work.

What am i missing, or is there a proper method to building a custom board for matter applications using nrf5340? 

Related