Can't install SDK 2.1.0

I am trying to install SDK 2.1.0 on a new computer. I installed nRF connect extension in VS code, installed toolchain 2.1.0, and then when I attempt to install SDK 2.1.0 I get this error:

[19:56:55] nRF Command Line Tools 10.24.2 are up to date
[19:56:56] =========== Toolchain validation report for nRF Connect SDK Toolchain v2.1.0 ===========
📦 Using the nRF Connect SDK v2.1.0 at /opt/nordic/ncs/v2.1.0
No issues were detected with the toolchain.
[20:19:29] ENOENT: no such file or directory, open '/opt/nordic/ncs/v2.1.0/.west/config' (/opt/nordic/ncs/v2.1.0)
[20:19:30] =========== Toolchain validation report for nRF Connect SDK Toolchain v2.1.0 ===========
No issues were detected with the toolchain.
[20:19:52] nrfutil-toolchain-manager install v2.1.0: Download toolchain
[20:19:59] nrfutil-toolchain-manager install v2.1.0: Toolchain downloaded: success
[20:19:59] nrfutil-toolchain-manager install v2.1.0: Unpack toolchain
[20:20:09] nrfutil-toolchain-manager install v2.1.0: Toolchain unpacked to /opt/nordic/ncs/tmp/.tmpscxMgW: success
[20:20:09] nrfutil-toolchain-manager install v2.1.0: Install toolchain
[20:20:09] nrfutil-toolchain-manager install v2.1.0: Toolchain installed at /opt/nordic/ncs/toolchains/v2.1.0: success
[west]: === Initializing in /opt/nordic/ncs/v2.1.0
[west]: --- Cloning manifest repository from https://github.com/nrfconnect/sdk-nrf
[west]: Cloning into '/opt/nordic/ncs/v2.1.0/.west/manifest-tmp'...
[west]: --- setting manifest.path to nrf
[west]: === Initialized. Now run "west update" inside /opt/nordic/ncs/v2.1.0.

[west]: exited with code 0.


[west]: updating /opt/nordic/ncs/v2.1.0...

[west]: === updating zephyr (zephyr):
[west]: --- zephyr: initializing
[west]: Initialized empty Git repository in /opt/nordic/ncs/v2.1.0/zephyr/.git/
[west]: --- zephyr: fetching, need revision v3.1.99-ncs1
[west]: From https://github.com/nrfconnect/sdk-zephyr
[west]:  * tag                       v3.1.99-ncs1              -> FETCH_HEAD
[west]:  * [new tag]                 v1.13.99-ncs1             -> v1.13.99-ncs1
[west]:  * [new tag]                 v1.13.99-ncs1-rc1         -> v1.13.99-ncs1-rc1
[west]:  * [new tag]                 v1.13.99-ncs2             -> v1.13.99-ncs2
[west]:  * [new tag]                 v1.13.99-ncs2-rc1         -> v1.13.99-ncs2-rc1
[west]:  * [new tag]                 v1.13.99-ncs2-rc2         -> v1.13.99-ncs2-rc2
[west]:  * [new tag]                 v1.14.99-ncs1             -> v1.14.99-ncs1
[west]:  * [new tag]                 v1.14.99-ncs1-rc1         -> v1.14.99-ncs1-rc1
[west]:  * [new tag]                 v1.14.99-ncs1-rc2         -> v1.14.99-ncs1-rc2
[west]:  * [new tag]                 v1.14.99-ncs2             -> v1.14.99-ncs2
[west]:  * [new tag]                 v1.14.99-ncs2-rc1         -> v1.14.99-ncs2-rc1
[west]:  * [new tag]                 v1.14.99-ncs2-rc2         -> v1.14.99-ncs2-rc2
[west]:  * [new tag]                 v1.14.99-ncs2-rc3         -> v1.14.99-ncs2-rc3
[west]:  * [new tag]                 v1.14.99-ncs2-rc4         -> v1.14.99-ncs2-rc4
[west]:  * [new tag]                 v1.14.99-ncs3-snapshot1   -> v1.14.99-ncs3-snapshot1
[west]:  * [new tag]                 v1.14.99-ncs3-snapshot2   -> v1.14.99-ncs3-snapshot2
[west]:  * [new tag]                 v2.0.99-ncs1              -> v2.0.99-ncs1
[west]:  * [new tag]                 v2.0.99-ncs1-rc1          -> v2.0.99-ncs1-rc1
[west]:  * [new tag]                 v2.0.99-ncs1-rc2          -> v2.0.99-ncs1-rc2
[west]:  * [new tag]                 v2.0.99-ncs1-rc3          -> v2.0.99-ncs1-rc3
[west]:  * [new tag]                 v2.0.99-ncs1-snapshot1    -> v2.0.99-ncs1-snapshot1
[west]:  * [new tag]                 v2.1.0-ncs1-snapshot1     -> v2.1.0-ncs1-snapshot1
[west]:  * [new tag]                 v2.1.99-ncs1              -> v2.1.99-ncs1
[west]:  * [new tag]                 v2.1.99-ncs1-rc1          -> v2.1.99-ncs1-rc1
[west]:  * [new tag]                 v2.1.99-ncs1-rc2          -> v2.1.99-ncs1-rc2
[west]:  * [new tag]                 v2.1.99-ncs1-snapshot1    -> v2.1.99-ncs1-snapshot1
[west]:  * [new tag]                 v2.3.0-rc1-ncs1           -> v2.3.0-rc1-ncs1
[west]:  * [new tag]                 v2.3.0-rc1-ncs1-rc1       -> v2.3.0-rc1-ncs1-rc1
[west]:  * [new tag]                 v2.3.0-rc1-ncs1-rc2       -> v2.3.0-rc1-ncs1-rc2
[west]:  * [new tag]                 v2.3.0-rc1-ncs1-rc3       -> v2.3.0-rc1-ncs1-rc3
[west]:  * [new tag]                 v2.3.0-rc1-ncs1-snapshot1 -> v2.3.0-rc1-ncs1-snapshot1
[west]:  * [new tag]                 v2.3.0-rc1-ncs2           -> v2.3.0-rc1-ncs2
[west]:  * [new tag]                 v2.3.0-rc1-ncs3           -> v2.3.0-rc1-ncs3
[west]:  * [new tag]                 v2.4.0-ncs1               -> v2.4.0-ncs1
[west]:  * [new tag]                 v2.4.0-ncs1-rc1           -> v2.4.0-ncs1-rc1
[west]:  * [new tag]                 v2.4.0-ncs1-rc2           -> v2.4.0-ncs1-rc2
[west]:  * [new tag]                 v2.4.0-ncs1-snapshot1     -> v2.4.0-ncs1-snapshot1
[west]:  * [new tag]                 v2.4.0-ncs2               -> v2.4.0-ncs2
[west]:  * [new tag]                 v2.4.0-ncs2-rc1           -> v2.4.0-ncs2-rc1
[west]:  * [new tag]                 v2.4.99-ncs1              -> v2.4.99-ncs1
[west]:  * [new tag]                 v2.4.99-ncs1-rc1          -> v2.4.99-ncs1-rc1
[west]:  * [new tag]                 v2.4.99-ncs1-snapshot1    -> v2.4.99-ncs1-snapshot1
[west]:  * [new tag]                 v2.4.99-ncs2              -> v2.4.99-ncs2
[west]:  * [new tag]                 v2.4.99-ncs2-1            -> v2.4.99-ncs2-1
[west]:  * [new tag]                 v2.4.99-ncs2-rc1          -> v2.4.99-ncs2-rc1
[west]:  * [new tag]                 v2.6.0-ncs1-rc3           -> v2.6.0-ncs1-rc3
[west]:  * [new tag]                 v2.6.0-rc1-ncs1           -> v2.6.0-rc1-ncs1
[west]:  * [new tag]                 v2.6.0-rc1-ncs1-rc1       -> v2.6.0-rc1-ncs1-rc1
[west]:  * [new tag]                 v2.6.0-rc1-ncs1-snapshot1 -> v2.6.0-rc1-ncs1-snapshot1
[west]:  * [new tag]                 v2.6.99-ncs1              -> v2.6.99-ncs1
[west]:  * [new tag]                 v2.6.99-ncs1-1            -> v2.6.99-ncs1-1
[west]:  * [new tag]                 v2.6.99-ncs1-rc1          -> v2.6.99-ncs1-rc1
[west]:  * [new tag]                 v2.6.99-ncs1-rc2          -> v2.6.99-ncs1-rc2
[west]:  * [new tag]                 v2.6.99-ncs1-snapshot1    -> v2.6.99-ncs1-snapshot1
[west]:  * [new tag]                 v2.7.0-ncs1               -> v2.7.0-ncs1
[west]:  * [new tag]                 v2.7.0-ncs1-rc1           -> v2.7.0-ncs1-rc1
[west]:  * [new tag]                 v2.7.0-ncs1-rc2           -> v2.7.0-ncs1-rc2
[west]:  * [new tag]                 v2.7.0-ncs1-snapshot1     -> v2.7.0-ncs1-snapshot1
[west]:  * [new tag]                 v2.7.0-ncs1-snapshot2     -> v2.7.0-ncs1-snapshot2
[west]:  * [new tag]                 v2.7.99-ncs1              -> v2.7.99-ncs1
[west]:  * [new tag]                 v2.7.99-ncs1-1            -> v2.7.99-ncs1-1
[west]:  * [new tag]                 v2.7.99-ncs1-rc1          -> v2.7.99-ncs1-rc1
[west]:  * [new tag]                 v2.7.99-ncs1-rc2          -> v2.7.99-ncs1-rc2
[west]:  * [new tag]                 v3.0.99-ncs1              -> v3.0.99-ncs1
[west]:  * [new tag]                 v3.0.99-ncs1-1            -> v3.0.99-ncs1-1
[west]:  * [new tag]                 v3.0.99-ncs1-rc1          -> v3.0.99-ncs1-rc1
[west]:  * [new tag]                 v3.0.99-ncs1-rc2          -> v3.0.99-ncs1-rc2
[west]:  * [new tag]                 v3.0.99-ncs1-snapshot1    -> v3.0.99-ncs1-snapshot1
[west]:  * [new tag]                 v3.1.99-ncs1              -> v3.1.99-ncs1
[west]:  * [new tag]                 v3.1.99-ncs1-1            -> v3.1.99-ncs1-1
[west]:  * [new tag]                 v3.1.99-ncs1-2            -> v3.1.99-ncs1-2
[west]:  * [new tag]                 v3.1.99-ncs1-3            -> v3.1.99-ncs1-3
[west]:  * [new tag]                 v3.1.99-ncs1-rc1          -> v3.1.99-ncs1-rc1
[west]:  * [new tag]                 v3.1.99-ncs1-rc2          -> v3.1.99-ncs1-rc2
[west]:  * [new tag]                 v3.1.99-ncs1-snapshot1    -> v3.1.99-ncs1-snapshot1
[west]:  * [new tag]                 v3.2.99-ncs1              -> v3.2.99-ncs1
[west]:  * [new tag]                 v3.2.99-ncs1-rc1          -> v3.2.99-ncs1-rc1
[west]:  * [new tag]                 v3.2.99-ncs1-rc2          -> v3.2.99-ncs1-rc2
[west]:  * [new tag]                 v3.2.99-ncs1-snapshot1    -> v3.2.99-ncs1-snapshot1
[west]:  * [new tag]                 v3.2.99-ncs2              -> v3.2.99-ncs2
[west]:  * [new tag]                 v3.2.99-ncs2-rc1          -> v3.2.99-ncs2-rc1
[west]:  * [new tag]                 v3.2.99-ncs2-rc2          -> v3.2.99-ncs2-rc2
[west]:  * [new tag]                 v3.2.99-ncs2-snapshot1    -> v3.2.99-ncs2-snapshot1
[west]:  * [new tag]                 v3.3.99-ncs1              -> v3.3.99-ncs1
[west]:  * [new tag]                 v3.3.99-ncs1-1            -> v3.3.99-ncs1-1
[west]:  * [new tag]                 v3.3.99-ncs1-2            -> v3.3.99-ncs1-2
[west]:  * [new tag]                 v3.3.99-ncs1-3            -> v3.3.99-ncs1-3
[west]:  * [new tag]                 v3.3.99-ncs1-rc1          -> v3.3.99-ncs1-rc1
[west]:  * [new tag]                 v3.3.99-ncs1-rc2          -> v3.3.99-ncs1-rc2
[west]:  * [new tag]                 v3.3.99-ncs1-snapshot1    -> v3.3.99-ncs1-snapshot1
[west]:  * [new tag]                 v3.4.99-ncs1              -> v3.4.99-ncs1
[west]:  * [new tag]                 v3.4.99-ncs1-1            -> v3.4.99-ncs1-1
[west]:  * [new tag]                 v3.4.99-ncs1-1-rc1        -> v3.4.99-ncs1-1-rc1
[west]:  * [new tag]                 v3.4.99-ncs1-2            -> v3.4.99-ncs1-2
[west]:  * [new tag]                 v3.4.99-ncs1-3            -> v3.4.99-ncs1-3
[west]:  * [new tag]                 v3.4.99-ncs1-rc1          -> v3.4.99-ncs1-rc1
[west]:  * [new tag]                 v3.4.99-ncs1-rc2          -> v3.4.99-ncs1-rc2
[west]:  * [new tag]                 v3.4.99-ncs1-snapshot1    -> v3.4.99-ncs1-snapshot1
[west]:  * [new tag]                 v3.5.99-ncs1              -> v3.5.99-ncs1
[west]:  * [new tag]                 v3.5.99-ncs1-1            -> v3.5.99-ncs1-1
[west]:  * [new tag]                 v3.5.99-ncs1-2            -> v3.5.99-ncs1-2
[west]:  * [new tag]                 v3.5.99-ncs1-rc1          -> v3.5.99-ncs1-rc1
[west]:  * [new tag]                 v3.5.99-ncs1-rc2          -> v3.5.99-ncs1-rc2
[west]:  * [new tag]                 v3.5.99-ncs1-snapshot1    -> v3.5.99-ncs1-snapshot1
[west]:  * [new tag]                 v3.6.99-ncs2              -> v3.6.99-ncs2
[west]:  * [new tag]                 v3.6.99-ncs2-rc1          -> v3.6.99-ncs2-rc1
[west]:  * [new tag]                 v3.6.99-ncs2-rc2          -> v3.6.99-ncs2-rc2
[west]:  * [new tag]                 v3.6.99-ncs2-rc3          -> v3.6.99-ncs2-rc3
[west]:  * [new tag]                 v3.6.99-ncs2-snapshot1    -> v3.6.99-ncs2-snapshot1
[west]:  * [new tag]                 v3.7.99-ncs1              -> v3.7.99-ncs1
[west]:  * [new tag]                 v3.7.99-ncs1-rc1          -> v3.7.99-ncs1-rc1
[west]:  * [new tag]                 v3.7.99-ncs1-rc2          -> v3.7.99-ncs1-rc2
[west]:  * [new tag]                 v3.7.99-ncs1-snapshot1    -> v3.7.99-ncs1-snapshot1
[west]: HEAD is now at 86893246053 [nrf fromtree] drivers: spi: fix sample syntax
[west]: HEAD is now at 86893246053 [nrf fromtree] drivers: spi: fix sample syntax
[west]: FATAL ERROR: command exited with status 128: show refs/heads/manifest-rev:west.yml

[west]: exited with code 128.

If I open a toolchain terminal, cd to the sdk dir, and run west update then it completes successfully. However, I still can't build the project:

cmake -DNCS_TOOLCHAIN_VERSION=2.1.0 -DBOARD=nrf52840dk_nrf52840 -DPRODUCT=Spark2 -DCONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y -S/Users/nick/Documents/Repos/airturn_fanstel -B/Users/nick/Documents/Repos/airturn_fanstel/build_Spark2 -G Ninja
-- Building for Spark2 using board PG500
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/nick/Documents/Repos/airturn_fanstel
-- Using NCS Toolchain 2.1.0 for building. (/opt/nordic/ncs/toolchains/v2.1.0/cmake)
-- Found Python3: /opt/nordic/ncs/toolchains/v2.1.0/bin/python3 (found suitable exact version "3.9.6") found components: Interpreter 
-- Cache files will be written to: /Users/nick/Library/Caches/zephyr
-- Zephyr version: 3.1.99 (/opt/nordic/ncs/v2.1.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
CMake Error at /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_module.cmake:78 (message):
  Traceback (most recent call last):

    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 2380, in _import_content_from_project
      content = _manifest_content_at(project, path)
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 199, in _manifest_content_at
      return project.read_at(path, rev=rev).decode('utf-8')
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 948, in read_at
      cp = self.git(['show', f'{rev}:{os.fspath(path)}'],
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 845, in git
      raise subprocess.CalledProcessError(popen.returncode, cmd_list,

  subprocess.CalledProcessError: Command '['show',
  '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 "/opt/nordic/ncs/v2.1.0/zephyr/scripts/zephyr_module.py", line 553, in <module>
      main()
    File "/opt/nordic/ncs/v2.1.0/zephyr/scripts/zephyr_module.py", line 503, in main
      west_proj = west_projects()
    File "/opt/nordic/ncs/v2.1.0/zephyr/scripts/zephyr_module.py", line 381, in west_projects
      manifest = Manifest.from_file()
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 1170, in from_file
      return Manifest(topdir=topdir, config=config,
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 1396, in __init__
      self._load_validated()
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 1791, in _load_validated
      self._load_projects(manifest_data, url_bases, defaults)
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 2114, in _load_projects
      self._import_from_project(project, imp)
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 2300, in _import_from_project
      self._import_map_from_project(project, imp)
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 2327, in _import_map_from_project
      imported = self._import_content_from_project(project, imap.file)
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 2391, in _import_content_from_project
      content = self._ctx.project_importer(project, path)
    File "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/west/manifest.py", line 164, in _default_importer
      raise ManifestImportFailed(project, file)

  west.manifest.ManifestImportFailed: ManifestImportFailed: project <Project
  zephyr ('/opt/nordic/ncs/v2.1.0/zephyr') at v3.1.99-ncs1> value west.yml

Call Stack (most recent call first):
  /opt/nordic/ncs/v2.1.0/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.1.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:74 (find_package)

-- Configuring incomplete, errors occurred!

Parents
  • Additionally, when I open this project in vs code it keeps trying to build the configuration in the command above (build_Spark2) even when I delete the build dir. Where is it caching that? And even though I've tried deleting the ncs directory, and removing the extension and reinstalling, when I go to "add build configuration" the tab is now completely empty.
    How can I reset ncs and the extension?

Reply
  • Additionally, when I open this project in vs code it keeps trying to build the configuration in the command above (build_Spark2) even when I delete the build dir. Where is it caching that? And even though I've tried deleting the ncs directory, and removing the extension and reinstalling, when I go to "add build configuration" the tab is now completely empty.
    How can I reset ncs and the extension?

Children
Related