Compile issue in the V2.9.0 of NCS for the nRF5340

Hi Nordic teams,

There is have issue when I compile the V2.9.0. For more details

C:\ncs\v2.9.0\nrf\applications\nrf5340_audio>west build -b nrf5340_audio_dk_nrf5340_cpuapp --pristine -- -DCONFIG_AUDIO_DEV=1 -DCONF_FILE=prj.conf
-- west build: making build dir C:\ncs\v2.9.0\nrf\applications\nrf5340_audio\build pristine
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: C:/Python312/python.exe (found suitable version "3.12.2", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.5.2/zephyr/.cache
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
CMake Error at cmake/modules/sysbuild_default.cmake:12 (include):
include could not find requested file:

yaml
Call Stack (most recent call first):
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.5.2/zephyr/cmake/modules/extensions.cmake:2341 (message):
zephyr_file(APPLICATION_ROOT <val> ...) given unknown arguments:
BASE_DIR;C:/ncs/v2.9.0/nrf/applications/nrf5340_audio
Call Stack (most recent call first):
cmake/modules/sysbuild_root.cmake:36 (zephyr_file)
cmake/modules/sysbuild_default.cmake:13 (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)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' -DWEST_PYTHON=C:/Python312/python.exe '-BC:\ncs\v2.9.0\nrf\applications\nrf5340_audio\build' -GNinja -DBOARD=nrf5340_audio_dk_nrf5340_cpuapp -DCONFIG_AUDIO_DEV=1 -DCONF_FILE=prj.conf '-SC:\ncs\v2.9.0\zephyr\share\sysbuild' '-DAPP_DIR:PATH=C:\ncs\v2.9.0\nrf\applications\nrf5340_audio'

Could you tell me what the problem is? how to fixed it?(Note, It compiles is done when I choose the V2.5.2)

Best Regards!

Yin

Parents
  • Hello,

    -- Cache files will be written to: C:/ncs/v2.5.2/zephyr/.cache

    This line looks a bit odd. Have you selected both the correct SDK version and Toolchain version when building this sample?

    When both of these are selected, I am able to build using your command. I exchanged "nrf5340_audio_dk_nrf5340_cpuapp" with "nrf5340_audio_dk/nrf5340/cpuapp".

    Best regards,

    Edvin

  • Hi Edvin,

    I compiled the V2.9.0 using the following tools,However, some other problems occurred. It seems that the definition of the board cannot be found.

    Issue:

    Could you tell me how to fixed the issue? How to choose a defined board?

    Thank you very much.

    Yin

  • I do not see the error that you see. Can you try to do this in the same command terminal (that you opened using Toolchain manager, from your screenshot). Navigate to the C:\ncs\v2.9.0\nrf folder, and run the command:

    west update

    And then try to build again, using the same command that you were using. Does the output change? And what does it reply when you ran the "west update" command in the nrf folder?

    Best regards,

    Edvin

Reply
  • I do not see the error that you see. Can you try to do this in the same command terminal (that you opened using Toolchain manager, from your screenshot). Navigate to the C:\ncs\v2.9.0\nrf folder, and run the command:

    west update

    And then try to build again, using the same command that you were using. Does the output change? And what does it reply when you ran the "west update" command in the nrf folder?

    Best regards,

    Edvin

Children
Related