Failing to build using sysbuild/NCS2.9.0 with MCUboot for DFU enabled for app/CPU-NET/Wifi fw

Situation : custom nrf5340/nrf7002 board (very close to production...). Main image is overflowing available internal flash (with a MCUboot 64kB partition).

Secondary slots etc are on 8Mb external flash (QSPI connected)

Up to now, using the 'multi-image build' process (migrated from 2.6->2.8->2.9 in search of stable wifi/networking operation).

I want to move the wifi fw patches (approx 80kB) to the external flash also (CONFIG_WIFI_PATCHES_EXT_FLASH_STORE=y). This forces me to move to sysbuild as the mechanism to generate the required .hex files is not supported in the old mutli-image CMakefiles. This successfully puts the wifi bin file (nrf70.bin) in the external flash... 

The build was working, but then when flashed to the board mcuboot refused to run the app. No error or explanation. I tried updating the partition sizes to let it have 64kB so I could also enable serial download over USB.... and now I cannot get the build to complete.

It fails building mcuboot, with an error indicating that 'PM_MCUBOOT_PRIMARY_1_ID' is not defined.

...

oot/bootutil/src/bootutil_public.c
In file included from C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/include/sysflash/sysflash.h:12,
from C:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c:43:
C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h: In function '__flash_area_ids_for_slot':
C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/include/sysflash/pm_sysflash.h:20:37: error: 'PM_MCUBOOT_PRIMARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_2_ID'?
20 | #define FLASH_AREA_IMAGE_1_SLOTS PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID,
| ^~~~~~~~~~~~~~~~~~~~~~~

This is the id for the 'ram-flash' partition that simulates the primary partition for the CPU-NET DFU operation (as explained in the tutorials about DFU). The pm_sysflash.h is I think looking for 2 image slots, instead of the 3 it should expect (app, cpu-net, wifi fw).

The generated pm_config.h indeed does not contain this id, despite it being defined in my pm_static.yml:


# need fake flash ram flash partition to do cpunet DFU...
mcuboot_primary_1:
    region: ram_flash
    address: 0x0
    affiliation:
        - mcuboot
    size: 0x40000
    device: flash_ctrl
    #  end_address: 0x40000
    #  device: nordic_ram_flash_controller

ram_flash:
  address: 0x40000
  end_address: 0x40000
  region: ram_flash
  size: 0x0
I have the dts controller defined as:
/ {
    soc {
        /* Add a flash controller which has the compatible
         * 'zephyr,sim-flash'. This will ensure that the flash
         * simulator can use it. None of the other properties in this
         * node is used for anything.
         */
        nordic_ram_flash_controller: nordic_ram-flash-controller@0 {
            compatible = "zephyr,sim-flash";
            reg = <0x00000000 DT_SIZE_K(40)>;
            #address-cells = <1>;
            #size-cells = <1>;
            erase-value = <0xff>;

            /* This node label must match that used in the flash
             * simulator.
             */
            flash_sim0: flash_sim@0 {
                status = "okay";
                compatible = "soc-nv-flash";
                erase-block-size = <4096>;
                write-block-size = <4>;
                reg = <0x00000000 DT_SIZE_K(256)>;

                partitions {
                    compatible = "fixed-partitions";
                    #address-cells = <1>;
                    #size-cells = <1>;

                    /* This partition must be defined for
                     * MCUboot to find the partition ID
                     * of the primary slot for image 1,
                     * which is stored in this partition.
                     */
                    slot2_partition: partition@0 {
                        label = "image-2";
                        reg = <0x00000000 0x00000A000>;
                    };
                };
            };
        };
    };
};
(copied from nrf/modules/mcuboot/flash_sim.overlay)
and the entries in the sysbuild/mcuboot/prj.conf to enable the simulator from the nrf5340_exip_image.conf in the same place:
# The network core cannot access external flash directly. The flash simulator must be used to
# provide a memory region that is used to forward the new firmware to the network core.
CONFIG_FLASH_SIMULATOR=y
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y
CONFIG_FLASH_SIMULATOR_STATS=n
Why doesn't sysbuild generate the PM defines for the priimary_1 partition? What dependancy did I break?
Parents
  • If I define in sysbuild.conf

    SB_CONFIG_SECURE_BOOT_NETCORE=y
    SB_CONFIG_NETCORE_APP_UPDATE=y
    then it defines 
    PM_MCUBOOT_PRIMARY_1_ID
    in the generated pm_config.h correctly.
    However, doing this provokes this warning:
    --------------------------------------------------------------
    --- WARNING: Using generated NSIB public/private key-pair. ---
    --- It should not be used for production. ---
    --- See SB_CONFIG_SECURE_BOOT_SIGNING_KEY_FILE ---
    --------------------------------------------------------------
    But I understood this to be when using a dual stage bootloader, which I do not want. 
    I already define 
    SB_CONFIG_BOOT_SIGNATURE_KEY_FILE="/work/dev/if-device-nrf53/keys/bootloader_priv-ecdsa256.pem"
    to sign the application, cpu-net and wifi images.
    Oh, and then the build fails anyway with
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `noinit' will not fit in region `RAM'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `RAM' overflowed by 259176 bytes
    despite the fact I have not changed any other setup....
    My objective for this setup is :
     - use NCS2.9.0
     - build with sysbuild (to align with future, to get wifi patch in external flash feature)
     - place wifi firmware patch in external flash (STORE option)
     - use mcuboot as single stage mmutable bootloader on CPU-APP core
        - with signed images using public/private key of type ECDSA_P256
        - capable of DFU on main app image, cpu-net image, wifi fw image
        - with serial DFU enabled, using USB CDC-ACM virtual com port
        - fitting in 64kB partition
        - secondary slots for app, cpu-net and wifi fw in external QSPI flash
    Here is a 'test_fw' project, which aims to have this configuration (based on the wifi_sta' sample).
    I have sysbuild enabled, and build as:
    west build --build-dir test_fw/build test_fw --board cc2v1/nrf5340/cpuapp --pristine -DBOARD_ROOT=/work/dev/if-device-nrf53
    The board definition is my custom PCB of course, but the build should work on a nrf7002 DK I think (needs nrf7002 and external flash on a nrf5340)
    Thanks to Andreas with this ticket: 
    the mcuboot fits in 64kB, and can boot into serial download mode using the USB virtual com ports, when built with the depreciated multi-image system.
    However, when I switch to sysbuild, it fails to build due to the "PRIMARY_1_ID' define not being found:
    C:\work\dev\if-device-nrf53>west build --build-dir test_fw/build test_fw --board cc2v1/nrf5340/cpuapp --pristine -DBOARD_ROOT=/work/dev/if-device-nrf53
    -- west build: making build dir C:\work\dev\if-device-nrf53\test_fw\build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    Parsing C:/ncs/v2.9.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/test_fw/build/_sysbuild/empty.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/sysbuild.conf'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/_sysbuild/autoconf.h'
    --
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/dts.cmake
    
    warning: STDOUT_CONSOLE (defined at lib/libc/Kconfig:135) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_STDOUT_CONSOLE and/or look up
    STDOUT_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.
    
    
    warning: LOG_BACKEND_UART (defined at subsys/logging\backends\Kconfig.uart:4) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: UART_CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_BACKEND_UART and/or look up
    LOG_BACKEND_UART 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 ISR_TABLES_LOCAL_DECLARATION is enabled.
    
    Parsing C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.9.0/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.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
      CONFIG_USB_DEVICE_PID has default value 0x100.
    
      This value is only for testing and MUST be configured for USB products.
    
    
    -- Setting build type to 'MinSizeRel' as none was specified.
    MCUBoot bootloader key file: /work/dev/if-device-nrf53/keys/bootloader_priv-ecdsa256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot
    --
       *****************************
       * Running CMake for hci_ipc *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/zephyr/samples/bluetooth/hci_ipc
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/dts.cmake
    Parsing C:/ncs/v2.9.0/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/sysbuild/hci_ipc/prj.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/.config.sysbuild'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.6.0 (C:/ncs/v2.9.0/zephyr/samples/bluetooth/hci_ipc)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Setting build type to 'MinSizeRel' as none was specified.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc
    --
       *****************************
       * Running CMake for test_fw *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/work/dev/if-device-nrf53/test_fw
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/dts.cmake
    
    warning: The choice symbol WIFI_NM_LOG_LEVEL_WRN (defined at
    subsys/net/Kconfig.template.log_config.net:26) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_WIFI_NM_LOG_LEVEL_WRN
    and/or look up WIFI_NM_LOG_LEVEL_WRN 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: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol POSIX_ASYNCHRONOUS_IO is enabled.
    
    
    warning: Experimental symbol POSIX_DEVICE_IO is enabled.
    
    
    warning: Experimental symbol POSIX_FD_MGMT is enabled.
    
    
    warning: Experimental symbol POSIX_MULTI_PROCESS is enabled.
    
    
    warning: Experimental symbol POSIX_REALTIME_SIGNALS is enabled.
    
    
    warning: Experimental symbol POSIX_SIGNALS is enabled.
    
    
    warning: Experimental symbol NET_SOCKETS_SERVICE is enabled.
    
    Parsing C:/ncs/v2.9.0/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/prj.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config.sysbuild'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.9.0/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.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
      CONFIG_USB_DEVICE_PID has default value 0x100.
    
      This value is only for testing and MUST be configured for USB products.
    
    
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_library_config ===============
    -- libmetal version: 1.6.0 (C:/work/dev/if-device-nrf53/test_fw)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Setting build type to 'MinSizeRel' as none was specified.
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: ..__nrf__subsys__caf__modules
    
      Excluding target from build.
    
    
    -- Including signing script: C:/ncs/v2.9.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/test_fw
    -- nRF WiFi FW patch binary will be stored in external flash
    -- Found partition manager static configuration : C:/work/dev/if-device-nrf53/test_fw/pm_static.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' 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 'nvs_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build
    ←[92m-- west build: building application
    [12/34] Generating ../nrf70.signed.bin
    image.py: sign the payload
    [14/34] Generating ../nrf70.signed.hex
    image.py: sign the payload
    [16/34] Performing build step for 'test_fw'
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/work/dev/if-device-nrf53/test_fw
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/dts.cmake
    
    warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol POSIX_ASYNCHRONOUS_IO is enabled.
    
    
    warning: Experimental symbol POSIX_DEVICE_IO is enabled.
    
    
    warning: Experimental symbol POSIX_FD_MGMT is enabled.
    
    
    warning: Experimental symbol POSIX_MULTI_PROCESS is enabled.
    
    
    warning: Experimental symbol POSIX_REALTIME_SIGNALS is enabled.
    
    
    warning: Experimental symbol POSIX_SIGNALS is enabled.
    
    
    warning: Experimental symbol NET_SOCKETS_SERVICE is enabled.
    
    Parsing C:/ncs/v2.9.0/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config.sysbuild'
    No change to configuration in 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config'
    No change to Kconfig header in 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/autoconf.h'
    CMake Warning at C:/ncs/v2.9.0/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.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
      CONFIG_USB_DEVICE_PID has default value 0x100.
    
      This value is only for testing and MUST be configured for USB products.
    
    
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_library_config ===============
    -- libmetal version: 1.6.0 (C:/work/dev/if-device-nrf53/test_fw)
    -- Build type:  MinSizeRel
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: ..__nrf__subsys__caf__modules
    
      Excluding target from build.
    
    
    -- Including signing script: C:/ncs/v2.9.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/test_fw
    [6/625] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr), build: v3.7.99-ncs2
    [202/625] Building C object zephyr/CMakeFiles/zephyr.dir/C...9.0/modules/lib/hostap/src/crypto/crypto_mbedtls_alt.c.obj
    C:/ncs/v2.9.0/modules/lib/hostap/src/crypto/crypto_mbedtls_alt.c:1665:12: warning: 'crypto_mbedtls_ike_id_from_ecp_group_id' defined but not used [-Wunused-function]
     1665 | static int crypto_mbedtls_ike_id_from_ecp_group_id(mbedtls_ecp_group_id grp_id)
          |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [492/625] Building C object modules/mcuboot/boot/bootutil/...bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
    FAILED: modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
    C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=512 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNCS_APPLICATION_BOOT_BANNER_GIT_REPO -DNRF5340_XXAA_APPLICATION -DNRF70_ANT_GAIN_2G=0 -DNRF70_ANT_GAIN_5G_BAND1=0 -DNRF70_ANT_GAIN_5G_BAND2=0 -DNRF70_ANT_GAIN_5G_BAND3=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_DATA_TX -DNRF70_LOG_VERBOSE -DNRF70_MAX_TX_PENDING_QLEN=18 -DNRF70_MAX_TX_TOKENS=5 -DNRF70_PCB_LOSS_2G=0 -DNRF70_PCB_LOSS_5G_BAND1=0 -DNRF70_PCB_LOSS_5G_BAND2=0 -DNRF70_PCB_LOSS_5G_BAND3=0 -DNRF70_REG_DOMAIN=00 -DNRF70_RPU_PS_IDLE_TIMEOUT_MS=10 -DNRF70_RX_MAX_DATA_SIZE=1600 -DNRF70_RX_NUM_BUFS=6 -DNRF70_STA_MODE -DNRF70_SYSTEM_MODE -DNRF70_TCP_IP_CHECKSUM_OFFLOAD -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_WIFI_AP_DEAD_DETECT_TIMEOUT=20 -DNRF_WIFI_IFACE_MTU=1500 -DNRF_WIFI_LOW_POWER -DNRF_WIFI_MGMT_BUFF_OFFLOAD -DNRF_WIFI_PS_INT_PS=y -DNRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS="" -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr -IC:/ncs/v2.9.0/zephyr/include -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated -IC:/ncs/v2.9.0/zephyr/soc/nordic -IC:/ncs/v2.9.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.9.0/zephyr/include/zephyr/posix -IC:/ncs/v2.9.0/zephyr/soc/nordic/nrf53/. -IC:/ncs/v2.9.0/zephyr/soc/nordic/common/. -IC:/ncs/v2.9.0/zephyr/subsys/usb/device -IC:/ncs/v2.9.0/zephyr/subsys/bluetooth -IC:/ncs/v2.9.0/zephyr/subsys/net/l2 -IC:/ncs/v2.9.0/zephyr/subsys/net/lib/dns/. -IC:/ncs/v2.9.0/zephyr/drivers/usb/common/nrf_usbd_common/. -IC:/ncs/v2.9.0/zephyr/drivers/wifi/nrf_wifi/inc -IC:/ncs/v2.9.0/zephyr/subsys/net/ip -IC:/ncs/v2.9.0/nrf/include -IC:/ncs/v2.9.0/modules/lib/hostap/port/mbedtls -IC:/ncs/v2.9.0/nrf/subsys/app_event_manager/. -IC:/ncs/v2.9.0/nrf/subsys/app_event_manager_profiler_tracer/. -IC:/ncs/v2.9.0/nrf/tests/include -IC:/ncs/v2.9.0/modules/lib/cjson -IC:/ncs/v2.9.0/nrf/modules/cjson/include -IC:/ncs/v2.9.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.9.0/zephyr/modules/cmsis/. -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.9.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.9.0/zephyr/modules/hostap/src -IC:/ncs/v2.9.0/modules/lib/hostap -IC:/ncs/v2.9.0/modules/lib/hostap/wpa_supplicant -IC:/ncs/v2.9.0/modules/lib/hostap/src -IC:/ncs/v2.9.0/modules/lib/hostap/src/common -IC:/ncs/v2.9.0/modules/lib/hostap/src/eap_common -IC:/ncs/v2.9.0/modules/lib/hostap/src/eap_server -IC:/ncs/v2.9.0/modules/lib/hostap/src/radius -IC:/ncs/v2.9.0/modules/lib/hostap/src/crypto -IC:/ncs/v2.9.0/modules/lib/hostap/src/ap -IC:/ncs/v2.9.0/modules/lib/hostap/src/drivers -IC:/ncs/v2.9.0/modules/lib/hostap/src/rsn_supp -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/modules/libmetal/libmetal/lib/include -IC:/ncs/v2.9.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.9.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.9.0/nrfxlib/nfc/include -IC:/ncs/v2.9.0/nrfxlib/softdevice_controller/include -IC:/work/dev/if-device-nrf53/test_fw/configuration/cc2v1 -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/generated/library_nrf_security_psa -IC:/ncs/v2.9.0/nrf/subsys/nrf_security/include -IC:/ncs/v2.9.0/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v2.9.0/nrf/subsys/nrf_security/src/utils -IC:/ncs/v2.9.0/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v2.9.0/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v2.9.0/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v2.9.0/modules/crypto/mbedtls/library -IC:/ncs/v2.9.0/modules/crypto/mbedtls/include -IC:/ncs/v2.9.0/modules/crypto/mbedtls/include/library -IC:/ncs/v2.9.0/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/v2.9.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.9.0/zephyr/modules/nrf_wifi/os -IC:/ncs/v2.9.0/zephyr/modules/nrf_wifi/os/../bus -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/utils/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/os_if/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/bus_if/bus/qspi/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/bus_if/bal/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_if/umac_if/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_load/mips/fw/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/hw_if/hal/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/hw_if/hal/inc/fw -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_if/umac_if/inc/default -IC:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.9.0/zephyr/lib/libc/common/include -isystem C:/ncs/v2.9.0/nrfxlib/crypto/nrf_cc312_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.9.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/work/dev/if-device-nrf53/test_fw=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.9.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.9.0=WEST_TOPDIR -ffunction-sections -fdata-sections -D_POSIX_THREADS -std=c99 -MD -MT modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -MF modules\mcuboot\boot\bootutil\zephyr\CMakeFiles\mcuboot_util.dir\C_\ncs\v2.9.0\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c.obj.d -o modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -c C:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c
    In file included from c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:12,
                     from C:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c:43:
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h: In function '__flash_area_ids_for_slot':
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:20:37: error: 'PM_MCUBOOT_PRIMARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_2_ID'?
       20 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID,
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:41:29: note: in expansion of macro 'FLASH_AREA_IMAGE_1_SLOTS'
       41 |                             FLASH_AREA_IMAGE_1_SLOTS \
          |                             ^~~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:55:9: note: in expansion of macro 'ALL_AVAILABLE_SLOTS'
       55 |         ALL_AVAILABLE_SLOTS
          |         ^~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:20:37: note: each undeclared identifier is reported only once for each function it appears in
       20 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID,
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:41:29: note: in expansion of macro 'FLASH_AREA_IMAGE_1_SLOTS'
       41 |                             FLASH_AREA_IMAGE_1_SLOTS \
          |                             ^~~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:55:9: note: in expansion of macro 'ALL_AVAILABLE_SLOTS'
       55 |         ALL_AVAILABLE_SLOTS
          |         ^~~~~~~~~~~~~~~~~~~
    [501/625] Building C object modules/fatfs/CMakeFiles/modules__fatfs.dir/C_/ncs/v2.9.0/modules/fs/fatfs/ff.c.obj
    ninja: build stopped: subcommand failed.
    [19/34] Generating ../mcuboot_primary_2.hex
    FAILED: _sysbuild/sysbuild/images/test_fw-prefix/src/test_fw-stamp/test_fw-build C:/work/dev/if-device-nrf53/test_fw/build/_sysbuild/sysbuild/images/test_fw-prefix/src/test_fw-stamp/test_fw-build
    cmd.exe /C "cd /D C:\work\dev\if-device-nrf53\test_fw\build\test_fw && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/work/dev/if-device-nrf53/test_fw/build
    
    Any ideas on what can be changed in the config to get sysbuild to work? (without going down the dual bootloader route - I already have a big flash space issue, hence the desire to push the wifi fw out to the external flash!!!)
Reply
  • If I define in sysbuild.conf

    SB_CONFIG_SECURE_BOOT_NETCORE=y
    SB_CONFIG_NETCORE_APP_UPDATE=y
    then it defines 
    PM_MCUBOOT_PRIMARY_1_ID
    in the generated pm_config.h correctly.
    However, doing this provokes this warning:
    --------------------------------------------------------------
    --- WARNING: Using generated NSIB public/private key-pair. ---
    --- It should not be used for production. ---
    --- See SB_CONFIG_SECURE_BOOT_SIGNING_KEY_FILE ---
    --------------------------------------------------------------
    But I understood this to be when using a dual stage bootloader, which I do not want. 
    I already define 
    SB_CONFIG_BOOT_SIGNATURE_KEY_FILE="/work/dev/if-device-nrf53/keys/bootloader_priv-ecdsa256.pem"
    to sign the application, cpu-net and wifi images.
    Oh, and then the build fails anyway with
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `noinit' will not fit in region `RAM'
    c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `RAM' overflowed by 259176 bytes
    despite the fact I have not changed any other setup....
    My objective for this setup is :
     - use NCS2.9.0
     - build with sysbuild (to align with future, to get wifi patch in external flash feature)
     - place wifi firmware patch in external flash (STORE option)
     - use mcuboot as single stage mmutable bootloader on CPU-APP core
        - with signed images using public/private key of type ECDSA_P256
        - capable of DFU on main app image, cpu-net image, wifi fw image
        - with serial DFU enabled, using USB CDC-ACM virtual com port
        - fitting in 64kB partition
        - secondary slots for app, cpu-net and wifi fw in external QSPI flash
    Here is a 'test_fw' project, which aims to have this configuration (based on the wifi_sta' sample).
    I have sysbuild enabled, and build as:
    west build --build-dir test_fw/build test_fw --board cc2v1/nrf5340/cpuapp --pristine -DBOARD_ROOT=/work/dev/if-device-nrf53
    The board definition is my custom PCB of course, but the build should work on a nrf7002 DK I think (needs nrf7002 and external flash on a nrf5340)
    Thanks to Andreas with this ticket: 
    the mcuboot fits in 64kB, and can boot into serial download mode using the USB virtual com ports, when built with the depreciated multi-image system.
    However, when I switch to sysbuild, it fails to build due to the "PRIMARY_1_ID' define not being found:
    C:\work\dev\if-device-nrf53>west build --build-dir test_fw/build test_fw --board cc2v1/nrf5340/cpuapp --pristine -DBOARD_ROOT=/work/dev/if-device-nrf53
    -- west build: making build dir C:\work\dev\if-device-nrf53\test_fw\build pristine
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    Parsing C:/ncs/v2.9.0/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/test_fw/build/_sysbuild/empty.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/sysbuild.conf'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/_sysbuild/autoconf.h'
    --
       *****************************
       * Running CMake for mcuboot *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/dts.cmake
    
    warning: STDOUT_CONSOLE (defined at lib/libc/Kconfig:135) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: CONSOLE_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_STDOUT_CONSOLE and/or look up
    STDOUT_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.
    
    
    warning: LOG_BACKEND_UART (defined at subsys/logging\backends\Kconfig.uart:4) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: UART_CONSOLE (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_BACKEND_UART and/or look up
    LOG_BACKEND_UART 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 ISR_TABLES_LOCAL_DECLARATION is enabled.
    
    Parsing C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/mcuboot/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.9.0/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.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
      CONFIG_USB_DEVICE_PID has default value 0x100.
    
      This value is only for testing and MUST be configured for USB products.
    
    
    -- Setting build type to 'MinSizeRel' as none was specified.
    MCUBoot bootloader key file: /work/dev/if-device-nrf53/keys/bootloader_priv-ecdsa256.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/mcuboot
    --
       *****************************
       * Running CMake for hci_ipc *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/zephyr/samples/bluetooth/hci_ipc
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpunet
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/dts.cmake
    Parsing C:/ncs/v2.9.0/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/sysbuild/hci_ipc/prj.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/.config.sysbuild'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.6.0 (C:/ncs/v2.9.0/zephyr/samples/bluetooth/hci_ipc)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Setting build type to 'MinSizeRel' as none was specified.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/hci_ipc
    --
       *****************************
       * Running CMake for test_fw *
       *****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/work/dev/if-device-nrf53/test_fw
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/dts.cmake
    
    warning: The choice symbol WIFI_NM_LOG_LEVEL_WRN (defined at
    subsys/net/Kconfig.template.log_config.net:26) was selected (set =y), but no symbol ended up as the
    choice selection. See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_WIFI_NM_LOG_LEVEL_WRN
    and/or look up WIFI_NM_LOG_LEVEL_WRN 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: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol POSIX_ASYNCHRONOUS_IO is enabled.
    
    
    warning: Experimental symbol POSIX_DEVICE_IO is enabled.
    
    
    warning: Experimental symbol POSIX_FD_MGMT is enabled.
    
    
    warning: Experimental symbol POSIX_MULTI_PROCESS is enabled.
    
    
    warning: Experimental symbol POSIX_REALTIME_SIGNALS is enabled.
    
    
    warning: Experimental symbol POSIX_SIGNALS is enabled.
    
    
    warning: Experimental symbol NET_SOCKETS_SERVICE is enabled.
    
    Parsing C:/ncs/v2.9.0/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/prj.conf'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config.sysbuild'
    Configuration saved to 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config'
    Kconfig header saved to 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/ncs/v2.9.0/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.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
      CONFIG_USB_DEVICE_PID has default value 0x100.
    
      This value is only for testing and MUST be configured for USB products.
    
    
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_library_config ===============
    -- libmetal version: 1.6.0 (C:/work/dev/if-device-nrf53/test_fw)
    -- Build type:
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    -- Setting build type to 'MinSizeRel' as none was specified.
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: ..__nrf__subsys__caf__modules
    
      Excluding target from build.
    
    
    -- Including signing script: C:/ncs/v2.9.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/test_fw
    -- nRF WiFi FW patch binary will be stored in external flash
    -- Found partition manager static configuration : C:/work/dev/if-device-nrf53/test_fw/pm_static.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' 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 'nvs_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build
    ←[92m-- west build: building application
    [12/34] Generating ../nrf70.signed.bin
    image.py: sign the payload
    [14/34] Generating ../nrf70.signed.hex
    image.py: sign the payload
    [16/34] Performing build step for 'test_fw'
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/work/dev/if-device-nrf53/test_fw
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.8.20241119.782234748775 for building. (C:/ncs/toolchains/b620d30767/cmake)
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: cc2v1, qualifiers: nrf5340/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/work/dev/if-device-nrf53/boards/infrafon/cc2v1/cc2v1_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/dts.cmake
    
    warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol WIFI_NM_WPA_SUPPLICANT is enabled.
    
    
    warning: Experimental symbol POSIX_ASYNCHRONOUS_IO is enabled.
    
    
    warning: Experimental symbol POSIX_DEVICE_IO is enabled.
    
    
    warning: Experimental symbol POSIX_FD_MGMT is enabled.
    
    
    warning: Experimental symbol POSIX_MULTI_PROCESS is enabled.
    
    
    warning: Experimental symbol POSIX_REALTIME_SIGNALS is enabled.
    
    
    warning: Experimental symbol POSIX_SIGNALS is enabled.
    
    
    warning: Experimental symbol NET_SOCKETS_SERVICE is enabled.
    
    Parsing C:/ncs/v2.9.0/zephyr/Kconfig
    Loaded configuration 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config'
    Merged configuration 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config.sysbuild'
    No change to configuration in 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/.config'
    No change to Kconfig header in 'C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/autoconf.h'
    CMake Warning at C:/ncs/v2.9.0/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.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/subsys/usb/device/CMakeLists.txt:28 (message):
      CONFIG_USB_DEVICE_PID has default value 0x100.
    
      This value is only for testing and MUST be configured for USB products.
    
    
    =========== Generating psa_crypto_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_config ===============
    =========== Generating psa_crypto_library_config ===============
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Backup: CONFIG_MBEDTLS_THREADING: False
    Backup: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== Checkpoint: backup ===============
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: True
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False
    Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False
    Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: False
    Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False
    Restore: CONFIG_MBEDTLS_THREADING: False
    Restore: CONFIG_MBEDTLS_THREADING_ALT: True
    =========== End psa_crypto_library_config ===============
    -- libmetal version: 1.6.0 (C:/work/dev/if-device-nrf53/test_fw)
    -- Build type:  MinSizeRel
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
    -- Host:    Windows/AMD64
    -- Target:  Generic/arm
    -- Machine: arm
    -- C_FLAGS :  -Wall -Wextra
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: ..__nrf__subsys__caf__modules
    
      Excluding target from build.
    
    
    -- Including signing script: C:/ncs/v2.9.0/nrf/cmake/sysbuild/image_signing.cmake
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/work/dev/if-device-nrf53/test_fw/build/test_fw
    [6/625] Generating include/generated/zephyr/version.h
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr), build: v3.7.99-ncs2
    [202/625] Building C object zephyr/CMakeFiles/zephyr.dir/C...9.0/modules/lib/hostap/src/crypto/crypto_mbedtls_alt.c.obj
    C:/ncs/v2.9.0/modules/lib/hostap/src/crypto/crypto_mbedtls_alt.c:1665:12: warning: 'crypto_mbedtls_ike_id_from_ecp_group_id' defined but not used [-Wunused-function]
     1665 | static int crypto_mbedtls_ike_id_from_ecp_group_id(mbedtls_ecp_group_id grp_id)
          |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [492/625] Building C object modules/mcuboot/boot/bootutil/...bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
    FAILED: modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj
    C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DK_HEAP_MEM_POOL_SIZE=512 -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_PSA_CRYPTO_CONFIG_FILE=\"nrf-psa-crypto-config.h\" -DMBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE=\"nrf-psa-crypto-user-config.h\" -DNCS_APPLICATION_BOOT_BANNER_GIT_REPO -DNRF5340_XXAA_APPLICATION -DNRF70_ANT_GAIN_2G=0 -DNRF70_ANT_GAIN_5G_BAND1=0 -DNRF70_ANT_GAIN_5G_BAND2=0 -DNRF70_ANT_GAIN_5G_BAND3=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_DSSS=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_2G_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_1_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2A_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_2C_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_3_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_LOWER_EDGE_BACKOFF_HT=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HE=0 -DNRF70_BAND_UNII_4_UPPER_EDGE_BACKOFF_HT=0 -DNRF70_DATA_TX -DNRF70_LOG_VERBOSE -DNRF70_MAX_TX_PENDING_QLEN=18 -DNRF70_MAX_TX_TOKENS=5 -DNRF70_PCB_LOSS_2G=0 -DNRF70_PCB_LOSS_5G_BAND1=0 -DNRF70_PCB_LOSS_5G_BAND2=0 -DNRF70_PCB_LOSS_5G_BAND3=0 -DNRF70_REG_DOMAIN=00 -DNRF70_RPU_PS_IDLE_TIMEOUT_MS=10 -DNRF70_RX_MAX_DATA_SIZE=1600 -DNRF70_RX_NUM_BUFS=6 -DNRF70_STA_MODE -DNRF70_SYSTEM_MODE -DNRF70_TCP_IP_CHECKSUM_OFFLOAD -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_WIFI_AP_DEAD_DETECT_TIMEOUT=20 -DNRF_WIFI_IFACE_MTU=1500 -DNRF_WIFI_LOW_POWER -DNRF_WIFI_MGMT_BUFF_OFFLOAD -DNRF_WIFI_PS_INT_PS=y -DNRF_WIFI_RPU_RECOVERY_PS_ACTIVE_TIMEOUT_MS="" -DUSE_PARTITION_MANAGER=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr -IC:/ncs/v2.9.0/zephyr/include -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated -IC:/ncs/v2.9.0/zephyr/soc/nordic -IC:/ncs/v2.9.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.9.0/zephyr/include/zephyr/posix -IC:/ncs/v2.9.0/zephyr/soc/nordic/nrf53/. -IC:/ncs/v2.9.0/zephyr/soc/nordic/common/. -IC:/ncs/v2.9.0/zephyr/subsys/usb/device -IC:/ncs/v2.9.0/zephyr/subsys/bluetooth -IC:/ncs/v2.9.0/zephyr/subsys/net/l2 -IC:/ncs/v2.9.0/zephyr/subsys/net/lib/dns/. -IC:/ncs/v2.9.0/zephyr/drivers/usb/common/nrf_usbd_common/. -IC:/ncs/v2.9.0/zephyr/drivers/wifi/nrf_wifi/inc -IC:/ncs/v2.9.0/zephyr/subsys/net/ip -IC:/ncs/v2.9.0/nrf/include -IC:/ncs/v2.9.0/modules/lib/hostap/port/mbedtls -IC:/ncs/v2.9.0/nrf/subsys/app_event_manager/. -IC:/ncs/v2.9.0/nrf/subsys/app_event_manager_profiler_tracer/. -IC:/ncs/v2.9.0/nrf/tests/include -IC:/ncs/v2.9.0/modules/lib/cjson -IC:/ncs/v2.9.0/nrf/modules/cjson/include -IC:/ncs/v2.9.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.9.0/zephyr/modules/cmsis/. -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.9.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.9.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.9.0/zephyr/modules/hostap/src -IC:/ncs/v2.9.0/modules/lib/hostap -IC:/ncs/v2.9.0/modules/lib/hostap/wpa_supplicant -IC:/ncs/v2.9.0/modules/lib/hostap/src -IC:/ncs/v2.9.0/modules/lib/hostap/src/common -IC:/ncs/v2.9.0/modules/lib/hostap/src/eap_common -IC:/ncs/v2.9.0/modules/lib/hostap/src/eap_server -IC:/ncs/v2.9.0/modules/lib/hostap/src/radius -IC:/ncs/v2.9.0/modules/lib/hostap/src/crypto -IC:/ncs/v2.9.0/modules/lib/hostap/src/ap -IC:/ncs/v2.9.0/modules/lib/hostap/src/drivers -IC:/ncs/v2.9.0/modules/lib/hostap/src/rsn_supp -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/modules/libmetal/libmetal/lib/include -IC:/ncs/v2.9.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.9.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.9.0/nrfxlib/nfc/include -IC:/ncs/v2.9.0/nrfxlib/softdevice_controller/include -IC:/work/dev/if-device-nrf53/test_fw/configuration/cc2v1 -IC:/work/dev/if-device-nrf53/test_fw/build/test_fw/generated/library_nrf_security_psa -IC:/ncs/v2.9.0/nrf/subsys/nrf_security/include -IC:/ncs/v2.9.0/nrf/subsys/nrf_security/src/threading/include -IC:/ncs/v2.9.0/nrf/subsys/nrf_security/src/utils -IC:/ncs/v2.9.0/modules/crypto/oberon-psa-crypto/oberon/drivers -IC:/ncs/v2.9.0/modules/crypto/oberon-psa-crypto/include -IC:/ncs/v2.9.0/modules/crypto/oberon-psa-crypto/library -IC:/ncs/v2.9.0/modules/crypto/mbedtls/library -IC:/ncs/v2.9.0/modules/crypto/mbedtls/include -IC:/ncs/v2.9.0/modules/crypto/mbedtls/include/library -IC:/ncs/v2.9.0/nrfxlib/crypto/nrf_oberon/include -IC:/ncs/v2.9.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -IC:/ncs/v2.9.0/zephyr/modules/nrf_wifi/os -IC:/ncs/v2.9.0/zephyr/modules/nrf_wifi/os/../bus -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/utils/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/os_if/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/bus_if/bus/qspi/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/bus_if/bal/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_if/umac_if/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_load/mips/fw/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/hw_if/hal/inc -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/hw_if/hal/inc/fw -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_if/umac_if/inc/fw -IC:/ncs/v2.9.0/modules/lib/nrf_wifi/fw_if/umac_if/inc/default -IC:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/zephyr/.. -IC:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/zephyr/../include -IC:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/zephyr/../../zephyr/include -isystem C:/ncs/v2.9.0/zephyr/lib/libc/common/include -isystem C:/ncs/v2.9.0/nrfxlib/crypto/nrf_cc312_platform/include -Os -DNDEBUG -fno-strict-aliasing -Os -imacros C:/work/dev/if-device-nrf53/test_fw/build/test_fw/zephyr/include/generated/zephyr/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.9.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/work/dev/if-device-nrf53/test_fw=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.9.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.9.0=WEST_TOPDIR -ffunction-sections -fdata-sections -D_POSIX_THREADS -std=c99 -MD -MT modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -MF modules\mcuboot\boot\bootutil\zephyr\CMakeFiles\mcuboot_util.dir\C_\ncs\v2.9.0\bootloader\mcuboot\boot\bootutil\src\bootutil_public.c.obj.d -o modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/mcuboot_util.dir/C_/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c.obj -c C:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c
    In file included from c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\sysflash.h:12,
                     from C:/ncs/v2.9.0/bootloader/mcuboot/boot/bootutil/src/bootutil_public.c:43:
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h: In function '__flash_area_ids_for_slot':
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:20:37: error: 'PM_MCUBOOT_PRIMARY_1_ID' undeclared (first use in this function); did you mean 'PM_MCUBOOT_PRIMARY_2_ID'?
       20 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID,
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:41:29: note: in expansion of macro 'FLASH_AREA_IMAGE_1_SLOTS'
       41 |                             FLASH_AREA_IMAGE_1_SLOTS \
          |                             ^~~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:55:9: note: in expansion of macro 'ALL_AVAILABLE_SLOTS'
       55 |         ALL_AVAILABLE_SLOTS
          |         ^~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:20:37: note: each undeclared identifier is reported only once for each function it appears in
       20 | #define FLASH_AREA_IMAGE_1_SLOTS    PM_MCUBOOT_PRIMARY_1_ID, PM_MCUBOOT_SECONDARY_1_ID,
          |                                     ^~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:41:29: note: in expansion of macro 'FLASH_AREA_IMAGE_1_SLOTS'
       41 |                             FLASH_AREA_IMAGE_1_SLOTS \
          |                             ^~~~~~~~~~~~~~~~~~~~~~~~
    c:\ncs\v2.9.0\bootloader\mcuboot\boot\zephyr\include\sysflash\pm_sysflash.h:55:9: note: in expansion of macro 'ALL_AVAILABLE_SLOTS'
       55 |         ALL_AVAILABLE_SLOTS
          |         ^~~~~~~~~~~~~~~~~~~
    [501/625] Building C object modules/fatfs/CMakeFiles/modules__fatfs.dir/C_/ncs/v2.9.0/modules/fs/fatfs/ff.c.obj
    ninja: build stopped: subcommand failed.
    [19/34] Generating ../mcuboot_primary_2.hex
    FAILED: _sysbuild/sysbuild/images/test_fw-prefix/src/test_fw-stamp/test_fw-build C:/work/dev/if-device-nrf53/test_fw/build/_sysbuild/sysbuild/images/test_fw-prefix/src/test_fw-stamp/test_fw-build
    cmd.exe /C "cd /D C:\work\dev\if-device-nrf53\test_fw\build\test_fw && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/work/dev/if-device-nrf53/test_fw/build
    
    Any ideas on what can be changed in the config to get sysbuild to work? (without going down the dual bootloader route - I already have a big flash space issue, hence the desire to push the wifi fw out to the external flash!!!)
Children
No Data
Related