nRF5340 MultioCore example build failure

Hi there,

In order to understand more about the MultiCore of the nRF5340, I'm trying to built the Multicore Hello World application, with nRF Connect SDK 2.3.0 as a "Workspace" application type.

Creating the files/application does work so far, but during the build process, it the the following failure bellow:

I have also tried it with the nRF Connect SDK 2.2.0, with the same result.

Kind regards,

Patrick

Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuapp for c:\repos\MAT\Nordic\WorkSpace\MultiCore_WorkSpace\MultiCore_2-3-0\multicore

Building multicore
C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:\repos\MAT\Nordic\WorkSpace\MultiCore_WorkSpace\MultiCore_2-3-0\multicore\build c:\repos\MAT\Nordic\WorkSpace\MultiCore_WorkSpace\MultiCore_2-3-0\multicore --pristine --board nrf5340dk_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore
-- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/zephyr/.cache
-- Zephyr version: 3.2.99 (C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-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.15.2 (C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/zephyr/dts.cmake
Parsing C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/Kconfig
Loaded configuration 'C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/prj.conf'
Merged configuration 'C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/zephyr/.config'
Kconfig header saved to 'C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Error at aci/CMakeLists.txt:11 (add_child_image):
Unknown CMake command "add_child_image".


-- Configuring incomplete, errors occurred!
See also "C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/CMakeFiles/CMakeOutput.log".
See also "C:/repos/MAT/Nordic/WorkSpace/MultiCore_WorkSpace/MultiCore_2-3-0/multicore/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\ncs\toolchains\v2.3.0\opt\bin\python.exe' '-Bc:\repos\MAT\Nordic\WorkSpace\MultiCore_WorkSpace\MultiCore_2-3-0\multicore\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y '-Sc:\repos\MAT\Nordic\WorkSpace\MultiCore_WorkSpace\MultiCore_2-3-0\multicore'

* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.

Parents
  • Hi Patrick,

    Thank you for contacting DevZone at NordicSemi.

    The sample "Multicore Hello World" is a sample from NCS 2.4.0.

    As you are testing with NCS 2.3.0, may I ask to check out the multicore sample (nrf/samples/nrf5340/multicore) which is same as that of Multicore-hello-world.

    Moreover, may I ask you to test the sample first with "Freestanding" application type from the VS Code.

    Also, the command add_child_image() is not a standard CMake command, but rather defined as a function in sdk-nrf/cmake/multi_image.cmake

    The issue, if you still face it, could be due to the order of entries in the yaml file, and it is discussed here for reference.

    Regards,

    Naeem



  • Dear Naeem,

    The link used to point to the example you mentioned with NCS 2.3.0. Seems like the link has changed to the latest NCS release since the ticket creation and your response.

    The sample is running on my machine as a "Freestanding" application, but as I mentioned, not as a "Workspace" application.

    In regards of the entries in the west.yaml, there is not much what I can change:

    manifest:
      remotes:
        - name: ncs
          url-base: https://github.com/nrfconnect
      projects:
        - name: sdk-nrf
          remote: ncs
          path: nrf
          revision: v2.3.0
          import: true
          clone-depth: 1
      self:
        path: multicore
    

    Regards,

    Patrick

  • Hi Patrick,

    Yes, I can now see the same issue as you have described.

    I do not know what is the cause of this issue, but I have reported it internally.

    I will let you know if there is any update.

    Regards,

    Naeem

Reply Children
Related