No prj.conf file was found in the C:/ncs/v2.5.2/nrf/samples/caf_prj folder on ncs v2.5.2

I put prj.conf files under C:\ncs\v2.5.2\nrf\samples\caf_prj\configuration\nrf5340dk_nrf5340_cpuapp folder. But west build failed with the following messages.

C:\ncs\v2.5.2\nrf\samples\caf_prj>west build -b nrf5340dk_nrf5340_cpuapp
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/v2.5.2/nrf/samples/caf_prj
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
CMake Deprecation Warning at C:/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  C:/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.5.2/zephyr/.cache
-- Zephyr version: 3.4.99 (C:/ncs/v2.5.2/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: nrf5340dk_nrf5340_cpuapp
CMake Error at C:/ncs/v2.5.2/zephyr/cmake/modules/configuration_files.cmake:78 (message):
  No prj.conf file was found in the C:/ncs/v2.5.2/nrf/samples/caf_prj folder,
  please read the Zephyr documentation on application development.
Call Stack (most recent call first):
  C:/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:8 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' -DWEST_PYTHON=C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe '-BC:\ncs\v2.5.2\nrf\samples\caf_prj\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp '-SC:\ncs\v2.5.2\nrf\samples\caf_prj'

Procedures to reproduce this issue are as follows.

1. Unzipping caf_prj.zip to C:\ncs\v2.5.2\nrf\samples folder

2. cd C:\ncs\v2.5.2\nrf\samples\caf_prj

3. west build -b nrf5340dk_nrf5340_cpuapp

Parents Reply
  • No problem at all! :) 

    snowuyl said:
    Does Nordic provide sample code for Configuration option?

    I am not sure I understand exactly what you mean by this, are you asking whether there are any examples that use the configuration option to change between different boards?
    If so, this is typically done in examples by making a new board configuration and changing the build target for the specific board you are working with then. In the case that you have configurations on top of the DK (like attached sensors etc) then you would use the configuration option to change between these.

    Best regards,
    Karl

Children
Related