This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: cmake failed to open nRF Connect SDK project

Hi,

i am a beginner with nRF9160-DK and i was trying to open a Project. Then i got the following error:

Creating solution rgb_led.emProject
C:/Users/tcheced/ncs/v1.6.1/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=C:\Users\tcheced\ncs\v1.6.1\zephyr\boards\arm\nrf9160dk_nrf9160 -BC:\Users\tcheced\ncs\v1.6.1\zephyr\samples\basic\rgb_led\build_nrf9160dk_nrf9160ns -SC:\Users\tcheced\ncs\v1.6.1\zephyr\samples\basic\rgb_led -DNCS_TOOLCHAIN_VERSION=1.6.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=O:\Basic_Research_All\Gaping\Downloads\EmbeddedStudio_ARM_Nordic_v560_win_x64\arm_segger_embedded_studio_v560_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: C:/Users/tcheced/ncs/v1.6.1/zephyr/samples/basic/rgb_led
-- Zephyr version: 2.6.0-rc1 (C:/Users/tcheced/ncs/v1.6.1/zephyr), build: v2.6.0-rc1-ncs1
-- Found Python3: C:/Users/tcheced/ncs/v1.6.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
-- Cache files will be written to: C:/Users/tcheced/ncs/v1.6.1/zephyr/.cache
-- Found dtc: C:/Users/tcheced/ncs/v1.6.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/tcheced/ncs/v1.6.1/toolchain/opt)
-- Found BOARD.dts: C:/Users/tcheced/ncs/v1.6.1/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Generated zephyr.dts: C:/Users/tcheced/ncs/v1.6.1/zephyr/samples/basic/rgb_led/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/Users/tcheced/ncs/v1.6.1/zephyr/samples/basic/rgb_led/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/Users/tcheced/ncs/v1.6.1/zephyr/samples/basic/rgb_led/build_nrf9160dk_nrf9160ns/zephyr/include/generated/device_extern.h
Parsing C:/Users/tcheced/ncs/v1.6.1/zephyr/Kconfig
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): C:/Users/tcheced/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.6.1 for building. (C:/Users/tcheced/ncs/v1.6.1/toolchain/cmake)
C:/Users/tcheced/ncs/v1.6.1/zephyr/scripts/kconfig/kconfig.py: boards/Kconfig:57: Could not open 'C:/Users/tcheced/ncs/v1.6.1/zephyr/boards/arm/nrf9160dk_nrf9160/Kconfig' (in 'osource "$(BOARD_DIR)/Kconfig"') (EACCES: Permission denied)
CMake Error at C:/Users/tcheced/ncs/v1.6.1/zephyr/cmake/kconfig.cmake:264 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  C:/Users/tcheced/ncs/v1.6.1/zephyr/cmake/app/boilerplate.cmake:555 (include)
  C:/Users/tcheced/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/Users/tcheced/ncs/v1.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:4 (find_package)
error: cmake failed
create_nordic_project.py failed (1)
can someone please help find out what the problem is?
Thanks
Cedric
Parents
  • Hi Cederic, welcome to DevZone.

    Did you open Segger Embeded Studio through nRF Connect and Toolchain Manager? 

    Are you able to build any other samples, for example ncs\zephyr\samples\hello_world?

    One thing to try is to move the project folder so that it gets a shorter path. You could move it to something like C:\projects\rgb_led

    Please also feel free to share your project folder and we could take a quick look. 

    Best regards, 

    Håkon

  • Hi Hakon,

    thanks for your quick Response.

    I did open Segger Embedded Studio through nRF Connect and Toolchain Manager and i was able to build other samples.

    My next step was to try to follow the tutorials on nRF Connect SDK Series, but for Part 1, Point 1.1,  i have difficulties building the Folder hello_world in Segger Embedded Studio.

    Can you please help me in a clearer way on how to do it?

    Best regards

    Cedric

Reply
  • Hi Hakon,

    thanks for your quick Response.

    I did open Segger Embedded Studio through nRF Connect and Toolchain Manager and i was able to build other samples.

    My next step was to try to follow the tutorials on nRF Connect SDK Series, but for Part 1, Point 1.1,  i have difficulties building the Folder hello_world in Segger Embedded Studio.

    Can you please help me in a clearer way on how to do it?

    Best regards

    Cedric

Children
  • Hi Cederic,

    What are the difficulties you are seeing? Are you getting any build errors? 

    Exactly which part would you like to be more clear? 

    Have you created the three files, main.c(located in the folder src), CMakeLists.txt, and prj.conf and placed them in your project folder like this? 

    If you want, you could upload the hello_world folder as a .zip. I could then take a look to see if anything is missing. I could also try to build it on my computer. 

    Best regards,

    Håkon

  • Hi Hakon,

    thanks for your respond.

    I have created the three files and i have placed them in my project folder. But i cannot open it from Segger Embbeded Studio for ARM.

    There is not option for me to be able to upload the folder.

    Best regards 

    Cedric

Related