Code does not compile using the west command when using the BL5340 board

Hi,

I am trying to build the HCI_USB program that is present in the /samples/bluetooth of the zephyr SDK. I am able to build it for the NRF5340DK board by using the following commnad: 

west build -b nrf5340dk_nrf5340_cpuapp --pristine -- -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem\"

As you can see that the code compiles successfully : 


mutsl04176@mutsl04176:~/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb$ west build -b nrf5340dk_nrf5340_cpuapp --pristine -- -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem\"
-- west build: making build dir /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/zephyr/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.



=== child image hci_rpmsg - CPUNET begin ===
loading initial cache file /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_rpmsg
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf5340dk_nrf5340_cpunet
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/zephyr/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_rpmsg/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/bootloader/image/secure_boot.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

=== child image b0n - CPUNET (inherited) begin ===
loading initial cache file /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/nrf/samples/nrf5340/netboot
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf5340dk_nrf5340_cpunet
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/nrf/samples/nrf5340/netboot/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/samples/nrf5340/netboot/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/CMakeLists.txt:1958 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done (4.2s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n
=== child image b0n - CPUNET (inherited) end ===

CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/subsys/bootloader/cmake/debug_keys.cmake:36 (message):
  

      --------------------------------------------------------------
      --- WARNING: Using generated NSIB public/private key-pair. ---
      --- It should not be used for production.                  ---
      --- See CONFIG_SB_SIGNING_KEY_FILE                         ---
      --------------------------------------------------------------
      

Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/nrf/subsys/bootloader/cmake/provision_hex.cmake:47 (include)
  /home/mutsl04176/ncs/v2.5.2/nrf/subsys/CMakeLists.txt:20 (include)


CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/hal/libmetal/libmetal/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- libmetal version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_rpmsg)
-- Build type:  
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/lib/open-amp/open-amp/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- open-amp version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/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
CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/cmake/partition_manager.cmake:79 (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/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/kernel.cmake:247 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring done (9.2s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg
=== child image hci_rpmsg - CPUNET end ===

-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found version "3.8.2") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:31 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: /home/mutsl04176/ncs/v2.5.2/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/dts.cmake

Parsing /home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/pcd/pcd.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done (4.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/modules/mcuboot/CMakeLists.txt:320 (message):
  

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



CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/modules/mcuboot/CMakeLists.txt:707 (message):
  CONFIG_MCUBOOT_SIGNATURE_KEY_FILE is set to
  "/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem".

  You are using the NCS Mcuboot signing, which means this option will be
  ignored.

  Image signing in NCS is done via the MCUboot image's
  CONFIG_BOOT_SIGNATURE_KEY_FILE option.

  Consider setting CONFIG_MCUBOOT_SIGNATURE_KEY_FILE in your application
  image back to its default value, the empty string.


CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/hal/libmetal/libmetal/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- libmetal version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb)
-- Build type:  
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/lib/open-amp/open-amp/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- open-amp version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/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
CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/cmake/partition_manager.cmake:79 (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/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/kernel.cmake:247 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring done (19.6s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build
-- west build: building application
[1/231] Preparing syscall dependency handling

[12/231] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr), build: v3.4.99-ncs1-2
[13/231] Performing build step for 'hci_rpmsg_subimage'
[0/224] Generating signing key
[1/224] Preparing syscall dependency handling

[6/224] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr), build: v3.4.99-ncs1-2
[10/224] Performing build step for 'b0n_subimage'
[1/139] Preparing syscall dependency handling

[3/139] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr), build: v3.4.99-ncs1-2
[139/139] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       23426 B      34176 B     68.55%
             RAM:        3500 B        64 KB      5.34%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%
[214/224] Creating public key from private key used for signing
[217/224] Creating data to be provisioned to the Bootloader, storing to provision.hex
[220/224] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      182456 B       222 KB     80.26%
             RAM:       49088 B        64 KB     74.90%
           SRAM1:          0 GB        64 KB      0.00%
        IDT_LIST:          0 GB         2 KB      0.00%
[221/224] Creating signature of application
[222/224] Creating validation for zephyr.hex, storing to
[224/224] Generating zephyr/merged_CPUNET.hex
[212/231] Performing build step for 'mcuboot_subimage'
[1/281] Preparing syscall dependency handling

[4/281] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr), build: v3.4.99-ncs1-2
[281/281] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       38896 B        48 KB     79.13%
             RAM:       22720 B       440 KB      5.04%
        IDT_LIST:          0 GB         2 KB      0.00%
[215/231] Generating ../../zephyr/net_core_app_update.bin
image.py: sign the payload
[216/231] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       48268 B     491008 B      9.83%
             RAM:       23680 B       440 KB      5.26%
        IDT_LIST:          0 GB         2 KB      0.00%
[219/231] Generating ../../zephyr/net_core_app_test_update.hex
image.py: sign the payload
[221/231] Generating ../../zephyr/app_update.bin
image.py: sign the payload
[223/231] Generating ../../zephyr/net_core_app_signed.hex
image.py: sign the payload
[224/231] Generating ../../zephyr/app_signed.hex
image.py: sign the payload
[225/231] Generating ../../zephyr/app_test_update.hex
image.py: sign the payload
[231/231] Generating zephyr/merged_domains.hex

The issue arises when instead of the NRF5340DK board, I am using the BL5340. It does not compile for the particular board. I am using the same command for BL5340 : 

west build -b bl5340_dvk_cpuapp --pristine -- -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem\"

This is the error which I am getting : 

Detailed logs for the build process : 

west build -b bl5340_dvk_cpuapp --pristine -- -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem\"
-- west build: making build dir /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: bl5340_dvk_cpuapp
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp.dts
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/zephyr/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/subsys/usb/device/CMakeLists.txt:22 (message):
  CONFIG_USB_DEVICE_VID has default value 0x2FE3.

  This value is only for testing and MUST be configured for USB products.



=== child image hci_rpmsg - CPUNET begin ===
loading initial cache file /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_rpmsg
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: bl5340_dvk_cpunet
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpunet.dts
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/zephyr/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpunet_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_rpmsg/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/bootloader/image/secure_boot.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

=== child image b0n - CPUNET (inherited) begin ===
loading initial cache file /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/nrf/samples/nrf5340/netboot
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: bl5340_dvk_cpunet
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpunet.dts
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/nrf/samples/nrf5340/netboot/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpunet_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/samples/nrf5340/netboot/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/CMakeLists.txt:1958 (message):
  __ASSERT() statements are globally ENABLED


-- Configuring done (5.3s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg/b0n
=== child image b0n - CPUNET (inherited) end ===

CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/subsys/bootloader/cmake/debug_keys.cmake:36 (message):
  

      --------------------------------------------------------------
      --- WARNING: Using generated NSIB public/private key-pair. ---
      --- It should not be used for production.                  ---
      --- See CONFIG_SB_SIGNING_KEY_FILE                         ---
      --------------------------------------------------------------
      

Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/nrf/subsys/bootloader/cmake/provision_hex.cmake:47 (include)
  /home/mutsl04176/ncs/v2.5.2/nrf/subsys/CMakeLists.txt:20 (include)


CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/hal/libmetal/libmetal/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- libmetal version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_rpmsg)
-- Build type:  
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/lib/open-amp/open-amp/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- open-amp version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/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
CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/cmake/partition_manager.cmake:79 (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/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/kernel.cmake:247 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:5 (find_package)


-- Configuring done (11.3s)
-- Generating done (0.2s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/hci_rpmsg
=== child image hci_rpmsg - CPUNET end ===

-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found version "3.8.2") found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.27.7
-- Using NCS Toolchain 2.5.20231017.513615545433 for building. (/home/mutsl04176/ncs/toolchains/7795df4459/cmake)
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:31 (find_package)


-- Found Python3: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/python3 (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter 
-- Cache files will be written to: /home/mutsl04176/.cache/zephyr
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: bl5340_dvk_cpuapp
-- Found host-tools: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/mutsl04176/ncs/toolchains/7795df4459/usr/local/bin/dtc (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp.dts
-- Found devicetree overlay: /home/mutsl04176/ncs/v2.5.2/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/dts.cmake
Parsing /home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp_defconfig'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/prj.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/boards/bl5340_dvk_cpuapp.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/pcd/pcd.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf'
Merged configuration '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/.config'
Kconfig header saved to '/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/include/generated/autoconf.h'

warning: I2C (defined at boards/arm/bl5340_dvk/Kconfig.defconfig:13, drivers/i2c/Kconfig:9) was
assigned the value 'n' but got the value 'y'. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_I2C and/or look up I2C 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.

-- Found GnuLd: /home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../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/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem
-- Configuring done (6.1s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/modules/mcuboot/CMakeLists.txt:320 (message):
  

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



CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/modules/mcuboot/CMakeLists.txt:707 (message):
  CONFIG_MCUBOOT_SIGNATURE_KEY_FILE is set to
  "/home/mutsl04176/ncs/v2.5.2/bootloader/mcuboot/root-rsa-2048.pem".

  You are using the NCS Mcuboot signing, which means this option will be
  ignored.

  Image signing in NCS is done via the MCUboot image's
  CONFIG_BOOT_SIGNATURE_KEY_FILE option.

  Consider setting CONFIG_MCUBOOT_SIGNATURE_KEY_FILE in your application
  image back to its default value, the empty string.


CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/hal/libmetal/libmetal/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- libmetal version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb)
-- Build type:  
-- Host:    Linux/x86_64
-- Target:  Generic/arm
-- Machine: arm
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
CMake Deprecation Warning at /home/mutsl04176/ncs/v2.5.2/modules/lib/open-amp/open-amp/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- open-amp version: 1.4.0 (/home/mutsl04176/ncs/v2.5.2/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
CMake Warning at /home/mutsl04176/ncs/v2.5.2/nrf/cmake/partition_manager.cmake:79 (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/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/kernel.cmake:247 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/mutsl04176/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring done (24.9s)
-- Generating done (0.2s)
-- Build files have been written to: /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build
-- west build: building application
[1/237] Preparing syscall dependency handling

[10/237] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr), build: v3.4.99-ncs1-2
[13/237] Performing build step for 'mcuboot_subimage'
[1/298] Preparing syscall dependency handling

[4/298] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/home/mutsl04176/ncs/v2.5.2/zephyr), build: v3.4.99-ncs1-2
[293/298] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/zephyr_pre0.map 
: && ccache /home/mutsl04176/ncs/toolchains/7795df4459/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/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/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/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/i2c/libdrivers__i2c.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fprotect/lib..__nrf__lib__fprotect.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/subsys/pcd/lib..__nrf__subsys__pcd.a  modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.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  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -L"/home/mutsl04176/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp"  -L/home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/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/mutsl04176/ncs/v2.5.2/nrfxlib/crypto/nrf_cc312_platform/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_platform_0.9.18.a && cd /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr && /home/mutsl04176/.local/lib/python3.8/site-packages/cmake/data/bin/cmake -E true
/home/mutsl04176/ncs/toolchains/7795df4459/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 `datas' will not fit in region `FLASH'
/home/mutsl04176/ncs/toolchains/7795df4459/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 492 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[214/237] Generating isr_tables.c, isrList.bin
FAILED: modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build mcuboot/zephyr/zephyr.hex mcuboot/zephyr/zephyr.elf /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/modules/mcuboot/mcuboot_subimage-prefix/src/mcuboot_subimage-stamp/mcuboot_subimage-build /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/zephyr.hex /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot/zephyr/zephyr.elf 
cd /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build/mcuboot && /home/mutsl04176/.local/lib/python3.8/site-packages/cmake/data/bin/cmake --build . --
[216/237] Generating isr_tables.c, isrList.bin
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/mutsl04176/.local/bin/cmake --build /home/mutsl04176/ncs/v2.5.2/zephyr/samples/bluetooth/hci_usb/build

I am not able to understand what can be the issue, since the same code compiles fine for other board. Any help on this would be helpful!

Parents Reply Children
No Data
Related