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

Using NRF connect SDK to build and run a “hello world” sample on my board.

devzone.nordicsemi.com/.../nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0
I follow the link above to create a hello world project, which has failed all the time. Here is the output log. Can you provide some solutions?


Creating solution hello_world.emProject
C:/Users/wangmin/ncs/v1.4.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf52833dk_nrf52833 -DBOARD_DIR=C:\Users\wangmin\ncs\v1.4.0\zephyr\boards\arm\nrf52833dk_nrf52833 -BC:\Users\wangmin\ncs\v1.4.0\zephyr\samples\hello_world\build_nrf52833dk_nrf52833 -SC:\Users\wangmin\ncs\v1.4.0\zephyr\samples\hello_world -DNCS_TOOLCHAIN_VERSION=1.4.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Users\wangmin\ncs\v1.4.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
-- Application: C:/Users/wangmin/ncs/v1.4.0/zephyr/samples/hello_world
-- Zephyr version: 2.4.99 (C:/Users/wangmin/ncs/v1.4.0/zephyr)
-- Found Python3: C:/Users/wangmin/ncs/v1.4.0/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Found west (found suitable version "0.7.2", minimum required is "0.7.1")
-- git describe failed: fatal: No names found, cannot describe anything.;
BUILD_VERSION is left undefined
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): C:/Users/wangmin/ncs/v1.4.0/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.4.0 for building. (C:/Users/wangmin/ncs/v1.4.0/toolchain/cmake)
CMake Error at C:/Users/wangmin/ncs/v1.4.0/zephyr/cmake/zephyr_module.cmake:61 (message):
Traceback (most recent call last):

File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 925, in _import_content_from_project
content = _manifest_content_at(project, path)
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1547, in _manifest_content_at
out = project.git(['ls-tree', rev, path], capture_stdout=True,
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1246, in git
raise subprocess.CalledProcessError(popen.returncode, cmd_list,

subprocess.CalledProcessError: Command '['ls-tree',
'refs/heads/manifest-rev', 'west.yml']' returned non-zero exit status 128.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:/Users/wangmin/ncs/v1.4.0/zephyr/scripts/zephyr_module.py", line 378, in
main()
File "C:/Users/wangmin/ncs/v1.4.0/zephyr/scripts/zephyr_module.py", line 283, in main
manifest = Manifest.from_file()
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 252, in from_file
return Manifest(**kwargs)
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 413, in __init__
self._load(source_data['manifest'], manifest_path,
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 599, in _load
self._load_projects(manifest, url_bases, defaults, ctx)
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 800, in _load_projects
self._import_from_project(project, imp, ctx)
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 873, in _import_from_project
self._import_path_from_project(project, imap.file,
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 884, in _import_path_from_project
imported = self._import_content_from_project(project, path)
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 936, in _import_content_from_project
content = self._importer(project, path)
File "C:\Users\wangmin\ncs\v1.4.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1582, in _default_importer
raise ManifestImportFailed(project, file)

west.manifest.ManifestImportFailed: ManifestImportFailed: project file
west.yml

Call Stack (most recent call first):
C:/Users/wangmin/ncs/v1.4.0/zephyr/cmake/app/boilerplate.cmake:183 (include)
C:/Users/wangmin/ncs/v1.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/wangmin/ncs/v1.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:5 (find_package)

error: cmake failed
create_nordic_project.py failed (1)

Parents
  • Hi,

    Are you only experiencing this issue when trying to create the hello world sample, or do you see it when opening samples that are already in NCS as well?

    There have been people experiencing problems with NCS and SES in Windows because of the path length. Could you please try installing NCS (with the Toolchain Manager) in C:/ncs/ instead of under your user folder?

    Best regards,

    Marte

Reply
  • Hi,

    Are you only experiencing this issue when trying to create the hello world sample, or do you see it when opening samples that are already in NCS as well?

    There have been people experiencing problems with NCS and SES in Windows because of the path length. Could you please try installing NCS (with the Toolchain Manager) in C:/ncs/ instead of under your user folder?

    Best regards,

    Marte

Children
Related