This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Cannot Create Project create_nordic_project.ph failed (1)

I am just getting started.  When I use the SEGGER / file / open nRF Connect SDK Project and try to configure for a SDK release 1.5.1 (/opt/nordic/ncs/v1.5.1), toolchain version 1.5.1 zephyr/blinky, nrf52840dk_nrf52840 I get the build directory /opt/nordic/ncs/v1.5.1/zephyr/samples/basic/blinky/build_nrf52840dk_nrf52840 ... I get the error 'create_nordic_project.ph failed (1).  I am running macos 11.2.3 on an M1.  I installed everything using the nrf connect 3.6.1.  I can successfully compile and run the Solutions 'nRF Samples' Project Hello_world both in the simulator and connected to the nRF52840dk board through the USB J-Link connection.  Any ideas what I may try next?

Parents
  • Hi!

    As you are just getting started I assume you haven't changed anything in the project folder either?

    Could you try checking the "Clean Build Directory" checkbox?

    Best regards,

    Håkon

  • I did try that.  I also tried cleaning the solution before trying to open the nRF Connect SDK project.  I there a step by step I should follow?  I found enough to get me to install and download the toolchain and example projects but it fell apart at the 'open nRF Connect SDK Project'.  Do I need to be an administrator?  Are there file protections which may need cleaning up?


    Thanks for your help!

  • It is embarrassing to admit, I can't figure out how to put an image in this reply.  Here is a copy the output text:

    Creating solution blinky.emProject
    /opt/nordic/ncs/v1.5.1/toolchain/bin/cmake -GNinja -DBOARD=nrf52840dk_nrf52840 -DBOARD_DIR=/opt/nordic/ncs/v1.5.1/zephyr/boards/arm/nrf52840dk_nrf52840 -B/opt/nordic/ncs/v1.5.1/zephyr/samples/basic/blinky/build_nrf52840dk_nrf52840 -S/opt/nordic/ncs/v1.5.1/zephyr/samples/basic/blinky -DNCS_TOOLCHAIN_VERSION=1.5.1 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/Users/ward/Segger/arm_segger_embedded_studio_v550a_macos_x64_nordic/html/configure_nordic_project_menuconfig.py
    -- Application: /opt/nordic/ncs/v1.5.1/zephyr/samples/basic/blinky
    -- Zephyr version: 2.4.99 (/opt/nordic/ncs/v1.5.1/zephyr)
    -- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
    -- Configuring incomplete, errors occurred!
    Including boilerplate (Zephyr base (cached)): /opt/nordic/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
    -- Using NCS Toolchain 1.5.1 for building. (/opt/nordic/ncs/v1.5.1/toolchain/cmake)
    CMake Error at /opt/nordic/ncs/v1.5.1/zephyr/cmake/zephyr_module.cmake:61 (message):
      Traceback (most recent call last):
    
        File "/opt/nordic/ncs/v1.5.1/zephyr/scripts/zephyr_module.py", line 378, in 
          main()
        File "/opt/nordic/ncs/v1.5.1/zephyr/scripts/zephyr_module.py", line 283, in main
          manifest = Manifest.from_file()
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1084, in from_file
          return Manifest(**kwargs)
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1273, in __init__
          self._load(source_data['manifest'],
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1527, in _load
          self._load_projects(manifest, url_bases, defaults, ctx)
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 1859, in _load_projects
          self._import_from_project(project, imp, ctx)
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 2047, in _import_from_project
          self._import_path_from_project(project, imap.file,
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 2059, in _import_path_from_project
          imported = self._import_content_from_project(project, path)
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 2105, in _import_content_from_project
          project.is_cloned():
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 850, in is_cloned
          res = self.git('rev-parse --show-cdup', check=False, cwd=cwd,
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/west/manifest.py", line 747, in git
          popen = subprocess.Popen(
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/opt/nordic/ncs/v1.5.1/toolchain/Cellar/[email protected]/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
    
      FileNotFoundError: [Errno 2] No such file or directory: 'git'
    
    Call Stack (most recent call first):
      /opt/nordic/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake:183 (include)
      /opt/nordic/ncs/v1.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
      /opt/nordic/ncs/v1.5.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    
    error: cmake failed
    create_nordic_project.py failed (1)
    
  • It seems that git is an issue. Could you try running "git --version" in a commandline, and giving me the output?

    And did you use the Toolchain Manager?

    Btw, on Windows and Chrome I can either simply paste an image into this reply, or insert an image using the "insert" drop-down menu. Does that not work for you?

    Best regards,

    Håkon

  • YES.  I am using the Toalchain Manager.

    git version 2.24.3 (Apple Git-128)

  • Great!

    Hmm it seems the issue might be related to this one. What python3 version are you using?

    Best regards,

    Håkon

  • I upgraded to phython3 as my default and things now seem to be OK.  Give me a few days to verify....

Reply Children
Related