Can't build v2.7.0 Matter example out of the SDK

Hello DevZone,

I'm porting my project from NCS 2.5.0 to NCS 2.7.0.

I know that there are lots of changes in build system, especially in Zephyr sysbuild. So, I decided to start with an example in NCS v2.7.0, and then add my own code.

I can build the nrf/samples/matter/window_covering with the following commands, it build successfully.

west build -b nrf52840dk/nrf52840 -p -- -DCONFIG_CHIP_DFU_OVER_BT_SMP=y

But when I use the "copy a sample" in VS Code extension to create a new project, the same build command will fail.

This is the full log:

# jayant @ jayant-Latitude-5430 in ~/project/ncs-project/Matter/window_covering_20240708 on git:master x [15:39:41] C:1
$ west build -b nrf52840dk/nrf52840 -p -- -DCONFIG_CHIP_DFU_OVER_BT_SMP=y 
-- west build: making build dir /home/jayant/project/ncs-project/Matter/window_covering_20240708/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/jayant/project/ncs-project/Matter/window_covering_20240708
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/jayant/ncs/toolchains/e9dba88316/cmake)
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/jayant/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found Dtc: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/jayant/project/ncs-project/Matter/window_covering_20240708/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/dts.cmake

warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.

Parsing /home/jayant/project/ncs-project/Matter/window_covering_20240708/Kconfig
Loaded configuration '/home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/prj.conf'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/.config'
Kconfig header saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found version "3.9.18") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/jayant/ncs/toolchains/e9dba88316/cmake)
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/jayant/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found Dtc: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/dts.cmake
Parsing /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/.config'
Kconfig header saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/jayant/ncs/v2.7.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


-- Using ccache: /home/jayant/ncs/toolchains/e9dba88316/usr/bin/ccache
CMake Deprecation Warning at /home/jayant/ncs/v2.7.0/nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/kernel.cmake:253 (include)
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:12 (find_package)


MCUBoot bootloader key file: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/jayant/ncs/v2.7.0/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
  

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



-- Using ccache: /home/jayant/ncs/toolchains/e9dba88316/usr/bin/ccache
CMake Warning at /home/jayant/ncs/v2.7.0/zephyr/CMakeLists.txt:2027 (message):
  __ASSERT() statements are globally ENABLED


CMake Deprecation Warning at /home/jayant/ncs/v2.7.0/nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/kernel.cmake:253 (include)
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found partition manager static configuration: /home/jayant/project/ncs-project/Matter/window_covering_20240708/pm_static_nrf52840dk_nrf52840.yml
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build
-- west build: building application
[1/544] Preparing syscall dependency handling

[8/544] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[12/544] Performing build step for 'mcuboot_subimage'
[1/188] Preparing syscall dependency handling

[7/188] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[183/188] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr_pre0.map 
: && ccache /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf52840/libsoc__nordic.a  zephyr/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/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard"  -L/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfpu=fpv4-sp-d16  -mfloat-abi=hard  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  /home/jayant/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a  /home/jayant/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cd /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr && /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake -E true
/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text' will not fit in region `FLASH'
/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 4042 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[14/544] Generating new Factory Data...
[INFO] Generating SPAKE2+ Verifier...
[WARNING] KEY password has not been provided. It means that DAC key is not encrypted.
[INFO] Validating JSON with schema...
[INFO] Validate OK
[155/544] Building C object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/nmi.c.obj
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.hex /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.elf 
cd /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot && /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build . --
[169/544] Building C object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/fatal.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build /home/jayant/project/ncs-project/Matter/window_covering_20240708/build

# jayant @ jayant-Latitude-5430 in ~/project/ncs-project/Matter/window_covering_20240708 on git:master x [15:40:02] C:1
$ west build -b nrf52840dk/nrf52840 -p                                    
-- west build: making build dir /home/jayant/project/ncs-project/Matter/window_covering_20240708/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/jayant/project/ncs-project/Matter/window_covering_20240708
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/jayant/ncs/toolchains/e9dba88316/cmake)
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/jayant/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found Dtc: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/jayant/project/ncs-project/Matter/window_covering_20240708/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/dts.cmake

warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.

Parsing /home/jayant/project/ncs-project/Matter/window_covering_20240708/Kconfig
Loaded configuration '/home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/prj.conf'
Configuration saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/.config'
Kconfig header saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found version "3.9.18") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/jayant/ncs/toolchains/e9dba88316/cmake)
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/jayant/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found Dtc: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/dts.cmake
Parsing /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/.config'
Kconfig header saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/jayant/ncs/v2.7.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


-- Using ccache: /home/jayant/ncs/toolchains/e9dba88316/usr/bin/ccache
CMake Deprecation Warning at /home/jayant/ncs/v2.7.0/nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/kernel.cmake:253 (include)
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:12 (find_package)


MCUBoot bootloader key file: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/jayant/ncs/v2.7.0/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
  

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



-- Using ccache: /home/jayant/ncs/toolchains/e9dba88316/usr/bin/ccache
CMake Warning at /home/jayant/ncs/v2.7.0/zephyr/CMakeLists.txt:2027 (message):
  __ASSERT() statements are globally ENABLED


CMake Deprecation Warning at /home/jayant/ncs/v2.7.0/nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/kernel.cmake:253 (include)
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found partition manager static configuration: /home/jayant/project/ncs-project/Matter/window_covering_20240708/pm_static_nrf52840dk_nrf52840.yml
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build
-- west build: building application
[1/525] Preparing syscall dependency handling

[10/525] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[12/525] Performing build step for 'mcuboot_subimage'
[1/188] Preparing syscall dependency handling

[7/188] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[183/188] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr_pre0.map 
: && ccache /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf52840/libsoc__nordic.a  zephyr/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/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard"  -L/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfpu=fpv4-sp-d16  -mfloat-abi=hard  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  /home/jayant/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a  /home/jayant/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cd /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr && /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake -E true
/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text' will not fit in region `FLASH'
/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 4042 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[14/525] Generating new Factory Data...
[INFO] Generating SPAKE2+ Verifier...
[WARNING] KEY password has not been provided. It means that DAC key is not encrypted.
[INFO] Validating JSON with schema...
[INFO] Validate OK
[105/525] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.hex /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.elf 
cd /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot && /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build . --
[119/525] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build /home/jayant/project/ncs-project/Matter/window_covering_20240708/build

# jayant @ jayant-Latitude-5430 in ~/project/ncs-project/Matter/window_covering_20240708 on git:master x [15:47:42] C:1
$ west build -b nrf52840dk/nrf52840 -p -- -DCONFIG_CHIP_DFU_OVER_BT_SMP=y 
-- west build: making build dir /home/jayant/project/ncs-project/Matter/window_covering_20240708/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/jayant/project/ncs-project/Matter/window_covering_20240708
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/jayant/ncs/toolchains/e9dba88316/cmake)
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/jayant/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found Dtc: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/jayant/project/ncs-project/Matter/window_covering_20240708/boards/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/dts.cmake

warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.

Parsing /home/jayant/project/ncs-project/Matter/window_covering_20240708/Kconfig
Loaded configuration '/home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/prj.conf'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/.config'
Kconfig header saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found version "3.9.18") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240605.1004412633878 for building. (/home/jayant/ncs/toolchains/e9dba88316/cmake)
-- Found Python3: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/jayant/.cache/zephyr
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.5 (/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk)
-- Found Dtc: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/dts.cmake
Parsing /home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/jayant/ncs/v2.7.0/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
Merged configuration '/home/jayant/ncs/v2.7.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/.config'
Kconfig header saved to '/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (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: /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/jayant/ncs/v2.7.0/nrf/lib/flash_patch/CMakeLists.txt:8 (message):
  

        ----------------------------------------------------------
        --- WARNING: To maintain the integrity of secure boot, ---
        --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
        ----------------------------------------------------------


-- Using ccache: /home/jayant/ncs/toolchains/e9dba88316/usr/bin/ccache
CMake Deprecation Warning at /home/jayant/ncs/v2.7.0/nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/kernel.cmake:253 (include)
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:12 (find_package)


MCUBoot bootloader key file: /home/jayant/ncs/v2.7.0/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/jayant/ncs/v2.7.0/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
  

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



-- Using ccache: /home/jayant/ncs/toolchains/e9dba88316/usr/bin/ccache
CMake Warning at /home/jayant/ncs/v2.7.0/zephyr/CMakeLists.txt:2027 (message):
  __ASSERT() statements are globally ENABLED


CMake Deprecation Warning at /home/jayant/ncs/v2.7.0/nrf/cmake/partition_manager.cmake:32 (message):
  

            ---------------------------------------------------------------------
            --- WARNING: Child and parent image functionality is deprecated   ---
            --- and should be replaced with sysbuild. Child and parent image  ---
            --- support remains only to allow existing customer applications  ---
            --- to build and allow porting to sysbuild, it is no longer       ---
            --- receiving updates or new features and it will not be possible ---
            --- to build using child/parent image at all in nRF Connect SDK   ---
            --- version 2.9 onwards.                                          ---
            ---------------------------------------------------------------------
Call Stack (most recent call first):
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/kernel.cmake:253 (include)
  /home/jayant/ncs/v2.7.0/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/jayant/ncs/v2.7.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found partition manager static configuration: /home/jayant/project/ncs-project/Matter/window_covering_20240708/pm_static_nrf52840dk_nrf52840.yml
Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jayant/project/ncs-project/Matter/window_covering_20240708/build
-- west build: building application
[1/544] Preparing syscall dependency handling

[10/544] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[12/544] Performing build step for 'mcuboot_subimage'
[1/188] Preparing syscall dependency handling

[7/188] Generating include/generated/version.h
-- Zephyr version: 3.6.99 (/home/jayant/ncs/v2.7.0/zephyr), build: v3.6.99-ncs2
[183/188] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr_pre0.map 
: && ccache /home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf52840/libsoc__nordic.a  zephyr/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/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard"  -L/home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfpu=fpv4-sp-d16  -mfloat-abi=hard  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  /home/jayant/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.19.a  /home/jayant/ncs/v2.7.0/nrfxlib/crypto/nrf_cc310_bl/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_bl_0.9.12.a && cd /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr && /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake -E true
/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text' will not fit in region `FLASH'
/home/jayant/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 4042 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[14/544] Generating new Factory Data...
[INFO] Generating SPAKE2+ Verifier...
[WARNING] KEY password has not been provided. It means that DAC key is not encrypted.
[INFO] Validating JSON with schema...
[INFO] Validate OK
[247/544] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.hex /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot/zephyr/zephyr.elf 
cd /home/jayant/project/ncs-project/Matter/window_covering_20240708/build/mcuboot && /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build . --
[261/544] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/jayant/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build /home/jayant/project/ncs-project/Matter/window_covering_20240708/build

Can you help to fix this issue?

Best regards,

Jayant

Related