The difference between prj.conf and prj_release.conf

Since I encountered some issues, I would like to confirm the differences between these two files once again.

Apart from debug messages, can prj.conf be used for the final product release?

Are there any other important considerations, such as BIN file encryption or similar matters?

Parents
  • Hi,

    Since I encountered some issues, I would like to confirm the differences between these two files once again.

    prj.conf is used by default. prj_release.conf is used if you use the FILE_SUFFIX "release". See Custom configurations.

    Apart from debug messages, can prj.conf be used for the final product release?

    prj_release.conf is just a way to show that your own project can use a separate file for release.

    Are there any other important considerations, such as BIN file encryption or similar matters?

    There are a lot of considerations, but most depend on your project requirements, so I can not give one solution that covers all scenarios.

    Here are a couple of things that I think are a good idea to do:

    1. Remember to add DFU so you can update your product in the field!

    2. Properly test the device before releasing it!

    3. Back up the build directory from your release build, sometimes you need this later.

    4. Enable APPROTECT.

    Regards,
    Sigurd Hellesvik

  • Here are the things I originally wanted to confirm:

    1. Can prj.conf be used for mass production?
    2. Will it be vulnerable to malicious access or modification?

    The APPROTECT feature you suggested seems to address the second issue. How can I enable APPROTECT?

  • Hi,

    I have already added the following three configurations to prj.conf. However, nRF Connect can still read the data. Did I miss any steps?

    CONFIG_NRF_SECURE_APPROTECT_LOCK=y
    CONFIG_NRF_SECURE_APPROTECT_USER_HANDLING=y
    CONFIG_NRF_SECURE_APPROTECT_USE_UICR=y

  • SunHuang said:
    Did I miss any steps?

    Yes. You are to only set one of the configurations.

  • Hi,

    I previously tried using only CONFIG_NRF_SECURE_APPROTECT_LOCK, but it did not disable the Flash read function. That’s why I attempted to enable all three configurations.

    By the way, the SDK version I’m using is 2.9.0.

  • Hi,

    I have previously tried using SB_CONFIG_APPROTECT_LOCK=y. Unfortunately, it resulted in a compilation error.

    (v2.9.0) C:\nordic_prj\DL02_S2MB_KPD_Small> west build -p -b dl02_s2mb_kpd_small/nrf5340/cpuapp -- -DBOARD_ROOT=C:/nordic_prj/DL02_S2MB_KPD_Small -DCONF_FILE=prj.conf
    -- west build: making build dir C:\nordic_prj\DL02_S2MB_KPD_Small\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: dl02_s2mb_kpd_small, qualifiers: nrf5340/cpuapp
    Parsing C:/nordic_prj/DL02_S2MB_KPD_Small/Kconfig.sysbuild
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/_sysbuild/empty.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild.conf'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/_sysbuild/autoconf.h'
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    --
       *****************************
       * 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/mcuboot/boards/dl02_s2mb_kpd_small_nrf5340_cpuapp.overlay
    -- Found devicetree overlay: C:/ncs/v2.9.0/nrf/modules/mcuboot/flash_sim.overlay
    'label' is marked as deprecated in 'properties:' in C:/ncs/v2.9.0/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@c000/mx25r6435f@0.
    node '/soc/peripheral@50000000/i2c@9000/outside@5B' compatible 'sunion,outside' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/store@50' compatible 'sunion,eeprom' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/timer@32' compatible 'sunion,rtc' has unknown vendor prefix 'sunion'
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/dts.cmake
    
    warning: Experimental symbol ISR_TABLES_LOCAL_DECLARATION is enabled.
    
    Parsing C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/mcuboot/boards/dl02_s2mb_kpd_small_nrf5340_cpuapp.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/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
    -- Setting build type to 'MinSizeRel' as none was specified.
    MCUBoot bootloader key file: C:/ncs/v2.9.0/bootloader/mcuboot/root-ec-p256.pem
    MCUBoot bootloader encryption key file: C:/nordic_prj/DL02_S2MB_KPD_Small/custom_key_dir/encryption_key.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot
    --
       *******************************
       * Running CMake for ipc_radio *
       *******************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/nrf/applications/ipc_radio
    -- 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/dts.cmake
    Parsing C:/ncs/v2.9.0/nrf/applications/ipc_radio/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/ipc_radio/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/ipc_radio/boards/dl02_s2mb_kpd_small_nrf5340_cpunet.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/applications/ipc_radio/overlay-bt_hci_ipc.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/applications/ipc_radio/overlay-802154.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/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/nrf/applications/ipc_radio)
    -- 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: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__gpio
    
      Excluding target from build.
    
    
    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:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio
    --
       *************************
       * Running CMake for b0n *
       *************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/nrf/samples/nrf5340/netboot
    -- 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing C:/ncs/v2.9.0/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v2.9.0/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/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
    -- 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: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    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:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n
    --
       *****************************************
       * Running CMake for DL02_S2MB_KPD_Small *
       *****************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic_prj/DL02_S2MB_KPD_Small
    -- 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic_prj/DL02_S2MB_KPD_Small/boards/dl02_s2mb_kpd_small_nrf5340_cpuapp.overlay
    'label' is marked as deprecated in 'properties:' in C:/ncs/v2.9.0/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@c000/mx25r6435f@0.
    node '/soc/peripheral@50000000/i2c@9000/outside@5B' compatible 'sunion,outside' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/store@50' compatible 'sunion,eeprom' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/timer@32' compatible 'sunion,rtc' has unknown vendor prefix 'sunion'
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/dts.cmake
    
    warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.
    
    
    warning: Experimental symbol GPIO_ENABLE_DISABLE_INTERRUPT is enabled.
    
    Parsing C:/nordic_prj/DL02_S2MB_KPD_Small/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/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
    =========== 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 ===============
    ################### OPENTHREAD REPORT ###################
    + Target device: nrf5340
    + Thread version: v1.4
    + OpenThread library feature set: Minimal Thread Device (MTD)
    + Thread device type: Sleepy End Device (SED)
    + OpenThread Library: openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd/
    + OpenThread NCS revision: ncs-thread-reference-20241002
    + OpenThread NCS SHA: ee86dc26d
    + NCS revision: v2.9.0
    + NCS SHA: 7787b26498
    + No differences in the used Thread library in comparison to the NCS v2.8.0 release.
    ###################        END        ###################
    -- libmetal version: 1.6.0 (C:/nordic_prj/DL02_S2MB_KPD_Small)
    -- 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/nrfxlib/openthread/cmake/extensions.cmake:123 (message):
    
       CONFIG_MBEDTLS_ASN1_PARSE_C=y is required by the precompiled OpenThread libraries, but it has been configured differently in the current build.
       The minimal crypto configuration is stored under "Crypto configuration" section at: C:/ncs/v2.9.0/nrfxlib/openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd//openthread_lib_configuration.txt
    
    Call Stack (most recent call first):
      C:/ncs/v2.9.0/nrfxlib/openthread/CMakeLists.txt:79 (check_openthread_dependencies)
    
    
    CMake Warning at C:/ncs/v2.9.0/nrfxlib/openthread/cmake/extensions.cmake:123 (message):
    
       CONFIG_MBEDTLS_ASN1_WRITE_C=y is required by the precompiled OpenThread libraries, but it has been configured differently in the current build.
       The minimal crypto configuration is stored under "Crypto configuration" section at: C:/ncs/v2.9.0/nrfxlib/openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd//openthread_lib_configuration.txt
    
    Call Stack (most recent call first):
      C:/ncs/v2.9.0/nrfxlib/openthread/CMakeLists.txt:79 (check_openthread_dependencies)
    
    
    CMake Warning at C:/ncs/v2.9.0/nrfxlib/openthread/cmake/extensions.cmake:123 (message):
    
       CONFIG_MBEDTLS_USE_PSA_CRYPTO=y is required by the precompiled OpenThread libraries, but it has been configured differently in the current build.
       The minimal crypto configuration is stored under "Crypto configuration" section at: C:/ncs/v2.9.0/nrfxlib/openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd//openthread_lib_configuration.txt
    
    Call Stack (most recent call first):
      C:/ncs/v2.9.0/nrfxlib/openthread/CMakeLists.txt:79 (check_openthread_dependencies)
    
    
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- 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:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- Found partition manager static configuration : C:/nordic_prj/DL02_S2MB_KPD_Small/pm_static_dl02_s2mb_kpd_small_nrf5340_cpuapp.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_1' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary_1' is not included in the dynamic resolving since it is statically defined.
    Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'hw_unique_key_partition' since its size is 0.
    -- Configuring incomplete, errors occurred!
    See also "C:/nordic_prj/DL02_S2MB_KPD_Small/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-BC:\nordic_prj\DL02_S2MB_KPD_Small\build' -GNinja -DBOARD=dl02_s2mb_kpd_small/nrf5340/cpuapp -DBOARD_ROOT=C:/nordic_prj/DL02_S2MB_KPD_Small -DCONF_FILE=prj.conf '-SC:\ncs\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=C:\nordic_prj\DL02_S2MB_KPD_Small'

Reply
  • Hi,

    I have previously tried using SB_CONFIG_APPROTECT_LOCK=y. Unfortunately, it resulted in a compilation error.

    (v2.9.0) C:\nordic_prj\DL02_S2MB_KPD_Small> west build -p -b dl02_s2mb_kpd_small/nrf5340/cpuapp -- -DBOARD_ROOT=C:/nordic_prj/DL02_S2MB_KPD_Small -DCONF_FILE=prj.conf
    -- west build: making build dir C:\nordic_prj\DL02_S2MB_KPD_Small\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: dl02_s2mb_kpd_small, qualifiers: nrf5340/cpuapp
    Parsing C:/nordic_prj/DL02_S2MB_KPD_Small/Kconfig.sysbuild
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/_sysbuild/empty.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild.conf'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/_sysbuild/autoconf.h'
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    CMake Error at C:/ncs/v2.9.0/nrf/sysbuild/CMakeLists.txt:617 (set_config_bool):
      set_config_bool Function invoked with incorrect arguments for function
      named: set_config_bool
    Call Stack (most recent call first):
      cmake/modules/sysbuild_extensions.cmake:583 (nrf_PRE_CMAKE)
      cmake/modules/sysbuild_extensions.cmake:583 (cmake_language)
      cmake/modules/sysbuild_images.cmake:16 (sysbuild_module_call)
      cmake/modules/sysbuild_default.cmake:20 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
      C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
      C:/ncs/v2.9.0/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
      template/CMakeLists.txt:10 (find_package)
    
    
    --
       *****************************
       * 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/mcuboot/boards/dl02_s2mb_kpd_small_nrf5340_cpuapp.overlay
    -- Found devicetree overlay: C:/ncs/v2.9.0/nrf/modules/mcuboot/flash_sim.overlay
    'label' is marked as deprecated in 'properties:' in C:/ncs/v2.9.0/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@c000/mx25r6435f@0.
    node '/soc/peripheral@50000000/i2c@9000/outside@5B' compatible 'sunion,outside' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/store@50' compatible 'sunion,eeprom' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/timer@32' compatible 'sunion,rtc' has unknown vendor prefix 'sunion'
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/dts.cmake
    
    warning: Experimental symbol ISR_TABLES_LOCAL_DECLARATION is enabled.
    
    Parsing C:/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/mcuboot/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/mcuboot/boards/dl02_s2mb_kpd_small_nrf5340_cpuapp.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/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
    -- Setting build type to 'MinSizeRel' as none was specified.
    MCUBoot bootloader key file: C:/ncs/v2.9.0/bootloader/mcuboot/root-ec-p256.pem
    MCUBoot bootloader encryption key file: C:/nordic_prj/DL02_S2MB_KPD_Small/custom_key_dir/encryption_key.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/nordic_prj/DL02_S2MB_KPD_Small/build/mcuboot
    --
       *******************************
       * Running CMake for ipc_radio *
       *******************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/nrf/applications/ipc_radio
    -- 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/dts.cmake
    Parsing C:/ncs/v2.9.0/nrf/applications/ipc_radio/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/ipc_radio/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/sysbuild/ipc_radio/boards/dl02_s2mb_kpd_small_nrf5340_cpunet.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/applications/ipc_radio/overlay-bt_hci_ipc.conf'
    Merged configuration 'C:/ncs/v2.9.0/nrf/applications/ipc_radio/overlay-802154.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio/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/nrf/applications/ipc_radio)
    -- 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: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__gpio
    
      Excluding target from build.
    
    
    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:/nordic_prj/DL02_S2MB_KPD_Small/build/ipc_radio
    --
       *************************
       * Running CMake for b0n *
       *************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/ncs/v2.9.0/nrf/samples/nrf5340/netboot
    -- 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/dts.cmake
    
    warning: UART_CONSOLE (defined at drivers/console/Kconfig:42) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL_HAS_DRIVER (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
    the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
    Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
    
    Parsing C:/ncs/v2.9.0/nrf/samples/nrf5340/netboot/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v2.9.0/nrf/samples/nrf5340/netboot/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n/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
    -- 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: drivers__console
    
      Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:952 (message):
      No SOURCES given to Zephyr library: drivers__serial
    
      Excluding target from build.
    
    
    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:/nordic_prj/DL02_S2MB_KPD_Small/build/b0n
    --
       *****************************************
       * Running CMake for DL02_S2MB_KPD_Small *
       *****************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/nordic_prj/DL02_S2MB_KPD_Small
    -- 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: dl02_s2mb_kpd_small, 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:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp.dts
    -- Found devicetree overlay: C:/nordic_prj/DL02_S2MB_KPD_Small/boards/dl02_s2mb_kpd_small_nrf5340_cpuapp.overlay
    'label' is marked as deprecated in 'properties:' in C:/ncs/v2.9.0/zephyr/dts/bindings\mtd\jedec,spi-nor.yaml for node /soc/peripheral@50000000/spi@c000/mx25r6435f@0.
    node '/soc/peripheral@50000000/i2c@9000/outside@5B' compatible 'sunion,outside' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/store@50' compatible 'sunion,eeprom' has unknown vendor prefix 'sunion'
    node '/soc/peripheral@50000000/i2c@9000/timer@32' compatible 'sunion,rtc' has unknown vendor prefix 'sunion'
    -- Generated zephyr.dts: C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/dts.cmake
    
    warning: Deprecated symbol MBEDTLS_LEGACY_CRYPTO_C is enabled.
    
    
    warning: Deprecated symbol NET_SOCKETS_POSIX_NAMES is enabled.
    
    
    warning: Experimental symbol GPIO_ENABLE_DISABLE_INTERRUPT is enabled.
    
    Parsing C:/nordic_prj/DL02_S2MB_KPD_Small/Kconfig
    Loaded configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/boards/sunion/dl02_s2mb_kpd_small/dl02_s2mb_kpd_small_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/prj.conf'
    Merged configuration 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/.config.sysbuild'
    Configuration saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/zephyr/.config'
    Kconfig header saved to 'C:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small/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
    =========== 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 ===============
    ################### OPENTHREAD REPORT ###################
    + Target device: nrf5340
    + Thread version: v1.4
    + OpenThread library feature set: Minimal Thread Device (MTD)
    + Thread device type: Sleepy End Device (SED)
    + OpenThread Library: openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd/
    + OpenThread NCS revision: ncs-thread-reference-20241002
    + OpenThread NCS SHA: ee86dc26d
    + NCS revision: v2.9.0
    + NCS SHA: 7787b26498
    + No differences in the used Thread library in comparison to the NCS v2.8.0 release.
    ###################        END        ###################
    -- libmetal version: 1.6.0 (C:/nordic_prj/DL02_S2MB_KPD_Small)
    -- 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/nrfxlib/openthread/cmake/extensions.cmake:123 (message):
    
       CONFIG_MBEDTLS_ASN1_PARSE_C=y is required by the precompiled OpenThread libraries, but it has been configured differently in the current build.
       The minimal crypto configuration is stored under "Crypto configuration" section at: C:/ncs/v2.9.0/nrfxlib/openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd//openthread_lib_configuration.txt
    
    Call Stack (most recent call first):
      C:/ncs/v2.9.0/nrfxlib/openthread/CMakeLists.txt:79 (check_openthread_dependencies)
    
    
    CMake Warning at C:/ncs/v2.9.0/nrfxlib/openthread/cmake/extensions.cmake:123 (message):
    
       CONFIG_MBEDTLS_ASN1_WRITE_C=y is required by the precompiled OpenThread libraries, but it has been configured differently in the current build.
       The minimal crypto configuration is stored under "Crypto configuration" section at: C:/ncs/v2.9.0/nrfxlib/openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd//openthread_lib_configuration.txt
    
    Call Stack (most recent call first):
      C:/ncs/v2.9.0/nrfxlib/openthread/CMakeLists.txt:79 (check_openthread_dependencies)
    
    
    CMake Warning at C:/ncs/v2.9.0/nrfxlib/openthread/cmake/extensions.cmake:123 (message):
    
       CONFIG_MBEDTLS_USE_PSA_CRYPTO=y is required by the precompiled OpenThread libraries, but it has been configured differently in the current build.
       The minimal crypto configuration is stored under "Crypto configuration" section at: C:/ncs/v2.9.0/nrfxlib/openthread/lib/nrf5340_cpuapp/soft-float/v1.4/mtd//openthread_lib_configuration.txt
    
    Call Stack (most recent call first):
      C:/ncs/v2.9.0/nrfxlib/openthread/CMakeLists.txt:79 (check_openthread_dependencies)
    
    
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- 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:/nordic_prj/DL02_S2MB_KPD_Small/build/DL02_S2MB_KPD_Small
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
    -- Found partition manager static configuration : C:/nordic_prj/DL02_S2MB_KPD_Small/pm_static_dl02_s2mb_kpd_small_nrf5340_cpuapp.yml
    Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined.
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_primary_1' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined.
    Partition 'mcuboot_secondary_1' is not included in the dynamic resolving since it is statically defined.
    Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined.
    Dropping partition 'hw_unique_key_partition' since its size is 0.
    -- Configuring incomplete, errors occurred!
    See also "C:/nordic_prj/DL02_S2MB_KPD_Small/build/CMakeFiles/CMakeOutput.log".
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/b620d30767/opt/bin/python.exe '-BC:\nordic_prj\DL02_S2MB_KPD_Small\build' -GNinja -DBOARD=dl02_s2mb_kpd_small/nrf5340/cpuapp -DBOARD_ROOT=C:/nordic_prj/DL02_S2MB_KPD_Small -DCONF_FILE=prj.conf '-SC:\ncs\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=C:\nordic_prj\DL02_S2MB_KPD_Small'

Children
Related