multicore example, problem during generation files

Hi,

I am trying to test the multicore example but when I try to build the application I have some errors related to python (maybe). The log is the following:

Building prova_multicore
west build --build-dir /Users/warcomeb/Projects/x/prova_multicore/build_nonna /Users/warcomeb/Projects/x/prova_multicore --pristine --board nrf5340dk_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DDTC_OVERLAY_FILE:STRING="/Users/warcomeb/Projects/x/prova_multicore/nrf5340dk_nrf5340_cpuapp.overlay" -DCONF_FILE:STRING="/Users/warcomeb/Projects/x/prova_multicore/prj.conf"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/warcomeb/Projects/x/prova_multicore
-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter 
-- Cache files will be written to: /Users/warcomeb/Library/Caches/zephyr
-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
-- Found dtc: /opt/nordic/ncs/toolchains/v2.1.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk)
-- Found BOARD.dts: /opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: /Users/warcomeb/Projects/x/prova_multicore/nrf5340dk_nrf5340_cpuapp.overlay
-- Generated zephyr.dts: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: /Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/dts.cmake
Parsing /Users/warcomeb/Projects/x/prova_multicore/Kconfig
Loaded configuration '/opt/nordic/ncs/v2.1.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration '/Users/warcomeb/Projects/x/prova_multicore/prj.conf'
Configuration saved to '/Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/.config'
Kconfig header saved to '/Users/warcomeb/Projects/x/prova_multicore/build_nonna/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc

=== child image b0 -  begin ===
loading initial cache file /Users/warcomeb/Projects/x/prova_multicore/build_nonna/b0/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.1.0/nrf/samples/bootloader
CMake Error at /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3: Found unsuitable version "3.9.7", but required is
  exact version "3.7" (found /usr/local/bin/python3, found components:
  Interpreter)
Call Stack (most recent call first):
  /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
  /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPython/Support.cmake:3165 (find_package_handle_standard_args)
  /opt/nordic/ncs/toolchains/v2.1.0/Cellar/cmake/3.20.5/share/cmake/Modules/FindPython3.cmake:485 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/python.cmake:46 (find_package)
  /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
CMake Error at /opt/nordic/ncs/v2.1.0/nrf/cmake/multi_image.cmake:409 (message):
  CMake generation for b0 failed, aborting.  Command: 1
Call Stack (most recent call first):
  /opt/nordic/ncs/v2.1.0/nrf/cmake/multi_image.cmake:150 (add_child_image_from_source)
  /opt/nordic/ncs/v2.1.0/nrf/samples/CMakeLists.txt:68 (add_child_image)


-- Configuring incomplete, errors occurred!
See also "/Users/warcomeb/Projects/x/prova_multicore/build_nonna/CMakeFiles/CMakeOutput.log".
See also "/Users/warcomeb/Projects/x/prova_multicore/build_nonna/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.1.0/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/v2.1.0/bin/python3 -B/Users/warcomeb/Projects/x/prova_multicore/build_nonna -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DDTC_OVERLAY_FILE:STRING=/Users/warcomeb/Projects/x/prova_multicore/nrf5340dk_nrf5340_cpuapp.overlay -DCONF_FILE:STRING=/Users/warcomeb/Projects/x/prova_multicore/prj.conf -S/Users/warcomeb/Projects/x/prova_multicore

I don't understand why the script try to search a different version of python instead the installed into ncs.

Can you help me?

Marco

Related