nrf connect v3.0.1 nRF52840 bootloader

I am trying to go through this document to see fesiability of different bootloader variation 

Enabling a bootloader chain using sysbuild

using nRFConnect v3.0.1 on nRF52840 

first i have encounter the size issue on nsib with minimal config, luckily someone have same issue in the devzone, 

 CMake/build errors when applying minimal config to nsib and mcuboot - Nordic Q&A - Nordic DevZone - Nordic DevZone

then when i try nsib + mcuboot + minimal config i encounter undefined symbol


west build ^
--build-dir build_mcu_minimal c:/ncs/sourcecode/hello_world ^
--board nrf52840dk/nrf52840 ^
-- ^
-Db0_FILE_SUFFIX=minimal ^
-Db0_CONFIG_B0_MIN_PARTITION_SIZE=n ^
-Db0_CONFIG_PM_PARTITION_SIZE_B0_IMAGE=0x6000 ^
-Dmcuboot_FILE_SUFFIX=minimal ^
-Dmcuboot_EXTRA_CONF_FILE=external_crypto.conf ^
-Dmcuboot_CONFIG_BOOT_USE_MIN_PARTITION_SIZE=n ^
-Dmcuboot_CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x5e00

C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf:30: warning: attempt to assign the value 'n' to the undefined symbol MINIMAL_LIBC_CALLOC

C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf:31: warning: attempt to assign the value 'n' to the undefined symbol MINIMAL_LIBC_MALLOC
Parsing C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/Kconfig

C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf:32: warning: attempt to assign the value 'n' to the undefined symbol MINIMAL_LIBC_REALLOCARRAYLoaded configuration 'C:/ncs/v3.0.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'

C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf:30: warning: attempt to assign the value 'n' to the undefined symbol MINIMAL_LIBC_CALLOC

C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf:31: warning: attempt to assign the value 'n' to the undefined symbol MINIMAL_LIBC_MALLOC
Parsing C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/Kconfig

C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf:32: warning: attempt to assign the value 'n' to the undefined symbol MINIMAL_LIBC_REALLOCARRAYLoaded configuration 'C:/ncs/v3.0.1/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration 'C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/prj_minimal.conf'
Merged configuration 'C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_nrf52840.conf'
Merged configuration 'C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/external_crypto.conf'
Merged configuration 'C:/ncs/v3.0.1/nrf/subsys/bootloader/image/log_minimal.conf'
Merged configuration 'C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/external_crypto.conf'
Merged configuration 'C:/ncs/sourcecode/hello_world/build_mcu_minimal/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
Merged configuration 'C:/ncs/sourcecode/hello_world/build_mcu_minimal/mcuboot/zephyr/.config.sysbuild'


error: Aborting due to Kconfig warnings

CMake Error at C:/ncs/v3.0.1/zephyr/cmake/modules/kconfig.cmake:396 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/ncs/v3.0.1/nrf/cmake/modules/kconfig.cmake:36 (include)
  C:/ncs/v3.0.1/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-pack-- Configuring incomplete, errors occurred!
age/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:18 (find_package)


CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):
  CMake configure failed for Zephyr project: mcuboot

  Location: C:/ncs/v3.0.1/bootloader/mcuboot/boot/zephyr/
Call Stack (most recent call first):
  cmake/modules/sysbuild_images.cmake:43 (ExternalZephyrProject_Cmake)
  cmake/modules/sysbuild_default.cmake:21 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
  C:/ncs/v3.0.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  C:/ncs/v3.0.1/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
  template/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "C:/ncs/sourcecode/hello_world/build_mcu_minimal/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\0b393f9e1b\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/0b393f9e1b/opt/bin/python.exe '-BC:\ncs\sourcecode\hello_world\build_mcu_minimal' -GNinja -Db0_FILE_SUFFIX=minimal -Db0_CONFIG_B0_MIN_PARTITION_SIZE=n -Db0_CONFIG_PM_PARTITION_SIZE_B0_IMAGE=0x6000 -Dmcuboot_FILE_SUFFIX=minimal -Dmcuboot_EXTRA_CONF_FILE=external_crypto.conf -Dmcuboot_FILE_SUFFIX=minimal -Dmcuboot_CONFIG_BOOT_USE_MIN_PARTITION_SIZE=n -Dmcuboot_CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x5e00 '-SC:\ncs\v3.0.1\zephyr\share\sysbuild' '-DAPP_DIR:PATH=c:\ncs\sourcecode\hello_world'


Parents Reply Children
No Data
Related