enable coexistence between Wi-Fi & BLE on thingy91x

Hello,

I am trying to find a solution how to use wifi and ble on thingy91x and manage the coexistence between them, I have found a sample Wi-Fi: Bluetooth LE coexistence but when I try to build it in nrf5340 SoC I got some errors (for example he doesn't recognize wifi or RAM overflowed) but I have added wifi node to my overlay but I get RAM overflowed.

The question is whether this sample supports thingy91x or not. If not, can you provide a solution to manage it? There are not many documents about thingy91x.

Best Regards

Terminal output :

[327/332] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/youssef/git/ble/build/mcuboot/zephyr/zephyr_pre0.map 
: && ccache /home/youssef/zephyr-sdk-0.17.0/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/youssef/git/ble/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/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf5340/libsoc__nordic.a  zephyr/boards/boards/arm/thingy91x/lib..__nrf__boards__nordic__thingy91x.a  zephyr/subsys/retention/libsubsys__retention.a  zephyr/drivers/usb/device/libdrivers__usb__device.a  zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/retained_mem/libdrivers__retained_mem.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/subsys/pcd/lib..__nrf__subsys__pcd.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/modules/mcuboot/hooks/lib..__nrf__modules__mcuboot__hooks.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  modules/zcbor/libmodules__zcbor.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp"  -L/home/youssef/git/ble/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -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/youssef/git/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.19.a && cd /home/youssef/git/ble/build/mcuboot/zephyr && /usr/bin/cmake -E true
/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss' will not fit in region `RAM'
/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `RAM' overflowed by 271248 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[27/591] Generating include/generated/driver-validation.h
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/youssef/git/ble/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.hex /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.elf 
cd /home/youssef/git/ble/build/mcuboot && /usr/bin/cmake --build . --
[29/591] Generating ../../tfm/CMakeCache.txt
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- 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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/youssef/git/nrf/samples/wifi/ble_coex/env/bin/python3 (found version "3.10.12") found components: Interpreter 
-- Found Python3: /home/youssef/git/nrf/samples/wifi/ble_coex/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/youssef/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/youssef/git/ble/build/tfm
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/youssef/git/ble/build

.overlay :

/ {
    aliases {
        zephyr,wifi = &nordic_wlan0;
    };

    nordic_wlan0: nordic_wlan0 {
		compatible = "nordic,wlan0";
		status = "okay";
	};

    nrf700x: nrf7000@1 {
		compatible = "nordic,nrf700x-spi";
		status = "okay";
		reg = <1>;
		spi-max-frequency = <DT_FREQ_M(8)>;

		iovdd-ctrl-gpios = <&gpio0 27 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
		bucken-gpios = <&gpio0 28 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
		host-irq-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
	};

	nrf_radio_coex: nrf7002-coex {
		status = "okay";
		compatible = "nordic,nrf700x-coex";
		req-gpios =     <&gpio0 24 (GPIO_ACTIVE_HIGH)>;
		status0-gpios = <&gpio0 14 (GPIO_ACTIVE_HIGH)>;
		grant-gpios =   <&gpio0 25 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
  };
};

Parents Reply Children
  • Hi Dejan,

    Yes i use NCS 2.7.0

    Best regards

    Youssef

  • Hi Youssef,

    Are you building the sample with or without sysbuild?
    If you use sysbuild, you could try to add SB_CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y. You can look at sysbuild configuration files.

    Please provide full log including your build command.

    Best regards,
    Dejan

  • This build log is without sysbuild

     build in pristine mode : for thingy91x/nrf5340/cpuapp/ns
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/ble
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp/ns
    -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: dts.overlay
    -- Generated zephyr.dts: /home/youssef/git/ble/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/zephyr/dts.cmake
    
    warning: The choice symbol SECURE_BOOT_DEBUG_RTT (defined at
    /home/youssef/git/nrf/subsys/bootloader/Kconfig:227) was selected (set =y), but no symbol ended up
    as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SECURE_BOOT_DEBUG_RTT and/or look up
    SECURE_BOOT_DEBUG_RTT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: Experimental symbol WIFI_CREDENTIALS is enabled.
    
    
    warning: Experimental symbol NET_SOCKETS_SERVICE is enabled.
    
    Parsing /home/youssef/git/ble/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_ns_defconfig'
    Merged configuration '/home/youssef/git/ble/prj.conf'
    Configuration saved to '/home/youssef/git/ble/build/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    Changed board to secure thingy91x/nrf5340/cpuapp (NOT NS)
    
    === child image b0 -  begin ===
    loading initial cache file /home/youssef/git/ble/build/b0/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/nrf/samples/bootloader
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: /home/youssef/git/ble/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/b0/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/b0/zephyr/dts.cmake
    Parsing /home/youssef/git/zephyr/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration '/home/youssef/git/nrf/samples/bootloader/prj.conf'
    Merged configuration '/home/youssef/git/nrf/samples/bootloader/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/youssef/git/ble/build/b0/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/youssef/git/ble/build/b0/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/b0/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /usr/bin/ccache
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Found partition manager static configuration: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_pm_static.yml
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/b0
    === child image b0 -  end ===
    
    
    === child image hci_ipc - CPUNET begin ===
    loading initial cache file /home/youssef/git/ble/build/hci_ipc/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/zephyr/samples/bluetooth/hci_ipc
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: /home/youssef/git/ble/build/hci_ipc/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/hci_ipc/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/hci_ipc/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing /home/youssef/git/zephyr/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration '/home/youssef/git/zephyr/samples/bluetooth/hci_ipc/prj.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/secure_boot.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/youssef/git/ble/build/hci_ipc/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/youssef/git/ble/build/hci_ipc/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/hci_ipc/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    
    === child image b0n - CPUNET (inherited) begin ===
    loading initial cache file /home/youssef/git/ble/build/hci_ipc/b0n/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/nrf/samples/nrf5340/netboot
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing /home/youssef/git/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration '/home/youssef/git/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Configuration saved to '/home/youssef/git/ble/build/hci_ipc/b0n/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/hci_ipc/b0n/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /usr/bin/ccache
    CMake Warning at /home/youssef/git/zephyr/CMakeLists.txt:895 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    CMake Warning at /home/youssef/git/zephyr/CMakeLists.txt:2027 (message):
      __ASSERT() statements are globally ENABLED
    
    
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/hci_ipc/b0n
    === child image b0n - CPUNET (inherited) end ===
    
    -- libmetal version: 1.5.0 (/home/youssef/git/zephyr/samples/bluetooth/hci_ipc)
    -- Build type:  
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.5.0 (/home/youssef/git/modules/lib/open-amp/open-amp)
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Using ccache: /usr/bin/ccache
    CMake Warning at /home/youssef/git/zephyr/CMakeLists.txt:895 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    CMake Warning at /home/youssef/git/nrf/cmake/partition_manager.cmake:102 (message):
      
    
              ---------------------------------------------------------------------
              --- WARNING: Using a bootloader without pm_static.yml.            ---
              --- There are cases where a deployed product can consist of       ---
              --- multiple images, and only a subset of these images can be     ---
              --- upgraded through a firmware update mechanism. In such cases,  ---
              --- the upgradable images must have partitions that are static    ---
              --- and are matching the partition map used by the bootloader     ---
              --- programmed onto the device.                                   ---
              ---------------------------------------------------------------------
              
    
    Call Stack (most recent call first):
      /home/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/hci_ipc
    === child image hci_ipc - CPUNET end ===
    
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found version "3.10.12") found components: Interpreter 
    Changed board to secure thingy91x/nrf5340/cpuapp (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file /home/youssef/git/ble/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Found devicetree overlay: /home/youssef/git/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Found devicetree overlay: /home/youssef/git/nrf/modules/mcuboot/flash_sim.overlay
    -- Found devicetree overlay: /home/youssef/git/nrf/modules/mcuboot/usb.overlay
    -- Generated zephyr.dts: /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/mcuboot/zephyr/dts.cmake
    
    warning: UART_NRFX (defined at drivers/serial/Kconfig.nrfx:6) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: (DT_HAS_NORDIC_NRF_UART_ENABLED ||
    DT_HAS_NORDIC_NRF_UARTE_ENABLED) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_NRFX and/or look up UART_NRFX in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: LOG_DEFAULT_LEVEL (defined at subsys/logging/Kconfig.filtering:13) was assigned the value
    '0' but got the value ''. Check these unsatisfied dependencies: LOG (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL and/or look up
    LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
    subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_LOG_LEVEL_INF
    and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
    Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
    the manual might be helpful too.
    
    
    warning: The choice symbol SECURE_BOOT_DEBUG_RTT (defined at
    /home/youssef/git/nrf/subsys/bootloader/Kconfig:227) was selected (set =y), but no symbol ended up
    as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SECURE_BOOT_DEBUG_RTT and/or look up
    SECURE_BOOT_DEBUG_RTT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging/Kconfig.mode:29) was selected
    (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
    LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    Parsing /home/youssef/git/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration '/home/youssef/git/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/home/youssef/git/bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/log_minimal.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/pcd/pcd.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/fw_info.conf'
    Merged configuration '/home/youssef/git/nrf/modules/mcuboot/tfm.conf'
    Merged configuration '/home/youssef/git/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/youssef/git/ble/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/youssef/git/ble/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /usr/bin/ccache
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:12 (find_package)
    
    
    -- Found partition manager static configuration: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_pm_static.yml
    MCUBoot bootloader key file: /home/youssef/git/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at /home/youssef/git/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    -- libmetal version: 1.5.0 (/home/youssef/git/ble)
    -- Build type:  
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.5.0 (/home/youssef/git/modules/lib/open-amp/open-amp)
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Using ccache: /usr/bin/ccache
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:11 (find_package)
    
    
    -- Found partition manager static configuration: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_pm_static.yml
    Partition 'b0' is not included in the dynamic resolving since it is statically defined.
    Partition 'b0_container' is not included in the dynamic resolving since it is statically defined.
    Partition 's0' is not included in the dynamic resolving since it is statically defined.
    Partition 's0_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 's0_image' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 's1' is not included in the dynamic resolving since it is statically defined.
    Partition 's1_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 's1_image' 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_pad' 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 'app_image' 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.
    Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build
    -- west build: building application
    [0/591] Creating public key from private key used for signing
    [1/591] Preparing syscall dependency handling
    
    [5/591] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [10/591] Creating data to be provisioned to the Bootloader, storing to provision.hex
    [21/591] Performing build step for 'mcuboot_subimage'
    [4/332] Preparing syscall dependency handling
    
    [6/332] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [327/332] Linking C executable zephyr/zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/youssef/git/ble/build/mcuboot/zephyr/zephyr_pre0.map 
    : && ccache /home/youssef/zephyr-sdk-0.17.0/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/youssef/git/ble/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/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf5340/libsoc__nordic.a  zephyr/boards/boards/arm/thingy91x/lib..__nrf__boards__nordic__thingy91x.a  zephyr/subsys/retention/libsubsys__retention.a  zephyr/drivers/usb/device/libdrivers__usb__device.a  zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/retained_mem/libdrivers__retained_mem.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/subsys/pcd/lib..__nrf__subsys__pcd.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/modules/mcuboot/hooks/lib..__nrf__modules__mcuboot__hooks.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  modules/zcbor/libmodules__zcbor.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp"  -L/home/youssef/git/ble/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -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/youssef/git/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.19.a && cd /home/youssef/git/ble/build/mcuboot/zephyr && /usr/bin/cmake -E true
    /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss' will not fit in region `RAM'
    /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `RAM' overflowed by 271248 bytes
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    [27/591] Generating include/generated/driver-validation.h
    FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/youssef/git/ble/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.hex /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.elf 
    cd /home/youssef/git/ble/build/mcuboot && /usr/bin/cmake --build . --
    [29/591] Generating ../../tfm/CMakeCache.txt
    -- Found Git: /usr/bin/git (found version "2.34.1") 
    -- 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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found version "3.10.12") found components: Interpreter 
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/tfm
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/youssef/git/ble/build

    and this is with the sysbuild.conf :

    build in pristine mode : for thingy91x/nrf5340/cpuapp/ns
    -- west build: making build dir /home/youssef/git/ble/build pristine
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/ble
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp/ns
    -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_ns.dts
    -- Found devicetree overlay: dts.overlay
    -- Generated zephyr.dts: /home/youssef/git/ble/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/zephyr/dts.cmake
    
    warning: The choice symbol SECURE_BOOT_DEBUG_RTT (defined at
    /home/youssef/git/nrf/subsys/bootloader/Kconfig:227) was selected (set =y), but no symbol ended up
    as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SECURE_BOOT_DEBUG_RTT and/or look up
    SECURE_BOOT_DEBUG_RTT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: Experimental symbol WIFI_CREDENTIALS is enabled.
    
    
    warning: Experimental symbol NET_SOCKETS_SERVICE is enabled.
    
    Parsing /home/youssef/git/ble/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_ns_defconfig'
    Merged configuration '/home/youssef/git/ble/prj.conf'
    Configuration saved to '/home/youssef/git/ble/build/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    Changed board to secure thingy91x/nrf5340/cpuapp (NOT NS)
    
    === child image b0 -  begin ===
    loading initial cache file /home/youssef/git/ble/build/b0/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/nrf/samples/bootloader
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: /home/youssef/git/ble/build/b0/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/b0/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/b0/zephyr/dts.cmake
    Parsing /home/youssef/git/zephyr/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration '/home/youssef/git/nrf/samples/bootloader/prj.conf'
    Merged configuration '/home/youssef/git/nrf/samples/bootloader/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/youssef/git/ble/build/b0/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/youssef/git/ble/build/b0/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/b0/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /usr/bin/ccache
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Found partition manager static configuration: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_pm_static.yml
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/b0
    === child image b0 -  end ===
    
    
    === child image hci_ipc - CPUNET begin ===
    loading initial cache file /home/youssef/git/ble/build/hci_ipc/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/zephyr/samples/bluetooth/hci_ipc
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: /home/youssef/git/ble/build/hci_ipc/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/hci_ipc/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/hci_ipc/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing /home/youssef/git/zephyr/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration '/home/youssef/git/zephyr/samples/bluetooth/hci_ipc/prj.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/secure_boot.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/youssef/git/ble/build/hci_ipc/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/youssef/git/ble/build/hci_ipc/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/hci_ipc/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    
    === child image b0n - CPUNET (inherited) begin ===
    loading initial cache file /home/youssef/git/ble/build/hci_ipc/b0n/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/nrf/samples/nrf5340/netboot
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet.dts
    -- Generated zephyr.dts: /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing /home/youssef/git/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpunet_defconfig'
    Merged configuration '/home/youssef/git/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Configuration saved to '/home/youssef/git/ble/build/hci_ipc/b0n/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/hci_ipc/b0n/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /usr/bin/ccache
    CMake Warning at /home/youssef/git/zephyr/CMakeLists.txt:895 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    CMake Warning at /home/youssef/git/zephyr/CMakeLists.txt:2027 (message):
      __ASSERT() statements are globally ENABLED
    
    
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:9 (find_package)
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/hci_ipc/b0n
    === child image b0n - CPUNET (inherited) end ===
    
    -- libmetal version: 1.5.0 (/home/youssef/git/zephyr/samples/bluetooth/hci_ipc)
    -- Build type:  
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.5.0 (/home/youssef/git/modules/lib/open-amp/open-amp)
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Using ccache: /usr/bin/ccache
    CMake Warning at /home/youssef/git/zephyr/CMakeLists.txt:895 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    CMake Warning at /home/youssef/git/nrf/cmake/partition_manager.cmake:102 (message):
      
    
              ---------------------------------------------------------------------
              --- WARNING: Using a bootloader without pm_static.yml.            ---
              --- There are cases where a deployed product can consist of       ---
              --- multiple images, and only a subset of these images can be     ---
              --- upgraded through a firmware update mechanism. In such cases,  ---
              --- the upgradable images must have partitions that are static    ---
              --- and are matching the partition map used by the bootloader     ---
              --- programmed onto the device.                                   ---
              ---------------------------------------------------------------------
              
    
    Call Stack (most recent call first):
      /home/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/hci_ipc
    === child image hci_ipc - CPUNET end ===
    
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found version "3.10.12") found components: Interpreter 
    Changed board to secure thingy91x/nrf5340/cpuapp (NOT NS)
    
    === child image mcuboot -  begin ===
    loading initial cache file /home/youssef/git/ble/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: /home/youssef/git/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.22.1
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr)
    -- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
    -- Board: thingy91x, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found toolchain: zephyr 0.17.0 (/home/youssef/zephyr-sdk-0.17.0)
    -- Found Dtc: /home/youssef/zephyr-sdk-0.17.0/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") 
    -- Found BOARD.dts: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp.dts
    -- Found devicetree overlay: /home/youssef/git/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Found devicetree overlay: /home/youssef/git/nrf/modules/mcuboot/flash_sim.overlay
    -- Found devicetree overlay: /home/youssef/git/nrf/modules/mcuboot/usb.overlay
    -- Generated zephyr.dts: /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: /home/youssef/git/ble/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: /home/youssef/git/ble/build/mcuboot/zephyr/dts.cmake
    
    warning: UART_NRFX (defined at drivers/serial/Kconfig.nrfx:6) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: (DT_HAS_NORDIC_NRF_UART_ENABLED ||
    DT_HAS_NORDIC_NRF_UARTE_ENABLED) (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_NRFX and/or look up UART_NRFX in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    
    warning: LOG_DEFAULT_LEVEL (defined at subsys/logging/Kconfig.filtering:13) was assigned the value
    '0' but got the value ''. Check these unsatisfied dependencies: LOG (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL and/or look up
    LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    
    warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
    subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_MCUBOOT_LOG_LEVEL_INF
    and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
    Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
    the manual might be helpful too.
    
    
    warning: The choice symbol SECURE_BOOT_DEBUG_RTT (defined at
    /home/youssef/git/nrf/subsys/bootloader/Kconfig:227) was selected (set =y), but no symbol ended up
    as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SECURE_BOOT_DEBUG_RTT and/or look up
    SECURE_BOOT_DEBUG_RTT in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging/Kconfig.mode:29) was selected
    (set =y), but no symbol ended up as the choice selection. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_MODE_MINIMAL and/or look up
    LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.
    
    Parsing /home/youssef/git/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration '/home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_cpuapp_defconfig'
    Merged configuration '/home/youssef/git/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration '/home/youssef/git/bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf5340_cpuapp.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/log_minimal.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/pcd/pcd.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/multi_image_mcuboot.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/bootloader/image/fw_info.conf'
    Merged configuration '/home/youssef/git/nrf/modules/mcuboot/tfm.conf'
    Merged configuration '/home/youssef/git/nrf/modules/mcuboot/fih_low_enable.conf'
    Merged configuration '/home/youssef/git/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration '/home/youssef/git/ble/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to '/home/youssef/git/ble/build/mcuboot/zephyr/.config'
    Kconfig header saved to '/home/youssef/git/ble/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: /home/youssef/zephyr-sdk-0.17.0/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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Using ccache: /usr/bin/ccache
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:12 (find_package)
    
    
    -- Found partition manager static configuration: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_pm_static.yml
    MCUBoot bootloader key file: /home/youssef/git/bootloader/mcuboot/root-rsa-2048.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/mcuboot
    === child image mcuboot -  end ===
    
    CMake Warning at /home/youssef/git/nrf/modules/mcuboot/CMakeLists.txt:382 (message):
      
    
              ---------------------------------------------------------
              --- WARNING: Using default MCUBoot key, it should not ---
              --- be used for production.                           ---
              ---------------------------------------------------------
              
    
    
    
    -- libmetal version: 1.5.0 (/home/youssef/git/ble)
    -- Build type:  
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.5.0 (/home/youssef/git/modules/lib/open-amp/open-amp)
    -- Host:    Linux/x86_64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Using ccache: /usr/bin/ccache
    CMake Deprecation Warning at /home/youssef/git/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/youssef/git/zephyr/cmake/modules/kernel.cmake:253 (include)
      /home/youssef/git/zephyr/cmake/modules/zephyr_default.cmake:141 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      /home/youssef/git/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      CMakeLists.txt:11 (find_package)
    
    
    -- Found partition manager static configuration: /home/youssef/git/nrf/boards/nordic/thingy91x/thingy91x_nrf5340_pm_static.yml
    Partition 'b0' is not included in the dynamic resolving since it is statically defined.
    Partition 'b0_container' is not included in the dynamic resolving since it is statically defined.
    Partition 's0' is not included in the dynamic resolving since it is statically defined.
    Partition 's0_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 's0_image' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 's1' is not included in the dynamic resolving since it is statically defined.
    Partition 's1_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 's1_image' 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_pad' 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 'app_image' 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.
    Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build
    -- west build: building application
    [0/591] Creating public key from private key used for signing
    [1/591] Preparing syscall dependency handling
    
    [5/591] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [14/591] Creating data to be provisioned to the Bootloader, storing to provision.hex
    [23/591] Performing build step for 'b0_subimage'
    [1/151] Preparing syscall dependency handling
    
    [5/151] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [151/151] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       24048 B        32 KB     73.39%
                 RAM:        5680 B       407 KB      1.36%
         RetainedMem:          0 GB         1 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from /home/youssef/git/ble/build/b0/zephyr/zephyr.elf for board: thingy91x
    [28/591] Performing build step for 'hci_ipc_subimage'
    [0/226] Creating public key from private key used for signing
    [1/226] Preparing syscall dependency handling
    
    [5/226] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [8/226] Creating data to be provisioned to the Bootloader, storing to provision.hex
    [13/226] Performing build step for 'b0n_subimage'
    [1/142] Preparing syscall dependency handling
    
    [5/142] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [142/142] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       22496 B      34176 B     65.82%
                 RAM:        4704 B        64 KB      7.18%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from /home/youssef/git/ble/build/hci_ipc/b0n/zephyr/zephyr.elf for board: thingy91x
    [222/226] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      160956 B       222 KB     70.80%
                 RAM:       48680 B        64 KB     74.28%
               SRAM1:          0 GB        64 KB      0.00%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from /home/youssef/git/ble/build/hci_ipc/zephyr/zephyr.elf for board: thingy91x
    [223/226] Creating signature of application
    [224/226] Creating validation for zephyr.hex, storing to
    [226/226] Generating zephyr/merged_CPUNET.hex
    [32/591] Generating ../../tfm/CMakeCache.txt
    -- Found Git: /usr/bin/git (found version "2.34.1") 
    -- 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/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found version "3.10.12") found components: Interpreter 
    -- Found Python3: /home/youssef/git/ble/env/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: /home/youssef/.cache/zephyr
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/youssef/git/ble/build/tfm
    [38/591] Performing build step for 'mcuboot_subimage'
    [1/332] Preparing syscall dependency handling
    
    [7/332] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (/home/youssef/git/zephyr), build: v3.6.99-ncs2
    [327/332] Linking C executable zephyr/zephyr_pre0.elf
    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/youssef/git/ble/build/mcuboot/zephyr/zephyr_pre0.map 
    : && ccache /home/youssef/zephyr-sdk-0.17.0/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/youssef/git/ble/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/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf5340/libsoc__nordic.a  zephyr/boards/boards/arm/thingy91x/lib..__nrf__boards__nordic__thingy91x.a  zephyr/subsys/retention/libsubsys__retention.a  zephyr/drivers/usb/device/libdrivers__usb__device.a  zephyr/drivers/usb/common/nrf_usbd_common/libdrivers__usb__common__nrf_usbd_common.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/retained_mem/libdrivers__retained_mem.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/subsys/pcd/lib..__nrf__subsys__pcd.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/modules/mcuboot/hooks/lib..__nrf__modules__mcuboot__hooks.a  modules/nrf/drivers/hw_cc3xx/lib..__nrf__drivers__hw_cc3xx.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  modules/mbedtls/libmodules__mbedtls.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  modules/zcbor/libmodules__zcbor.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp"  -L/home/youssef/git/ble/build/mcuboot/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  modules/mbedtls/libmbedTLSBase.a  modules/mbedtls/libmbedTLSCrypto.a  modules/mbedtls/libmbedTLSX509.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -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/youssef/git/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.19.a && cd /home/youssef/git/ble/build/mcuboot/zephyr && /usr/bin/cmake -E true
    /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss' will not fit in region `RAM'
    /home/youssef/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `RAM' overflowed by 271248 bytes
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    [41/591] Generating ../../zephyr/net_core_app_update.bin
    image.py: sign the payload
    [42/591] Generating ../../zephyr/net_core_app_signed.hex
    image.py: sign the payload
    [43/591] Generating ../../zephyr/net_core_app_test_update.hex
    image.py: sign the payload
    [44/591] Generating ../../zephyr/net_core_app_moved_test_update.hex
    FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/youssef/git/ble/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.hex /home/youssef/git/ble/build/mcuboot/zephyr/zephyr.elf 
    cd /home/youssef/git/ble/build/mcuboot && /usr/bin/cmake --build . --
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/youssef/git/ble/build

  • Hi Youssef,

    When building with sysbuild, have you added SB_CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM to your configuration?

    Best regards,
    Dejan

Related