Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setting up the nRF Connect SDK v1.5.1 on macOS Big Sur 11.2.3

I tried to follow this tutorial to set up the Connect SDK toolchain with CLion.
It worked until I resetted the CMake Cache. Now it always gives me this error message.

/opt/nordic/ncs/v1.5.1/toolchain/Cellar/cmake/3.17.3/bin/cmake -DCMAKE_BUILD_TYPE=ZDebug -DCMAKE_C_COMPILER=/opt/nordic/ncs/v1.5.1/toolchain/bin/arm-none-eabi-gcc -DCMAKE_CXX_COMPILER=/opt/nordic/ncs/v1.5.1/toolchain/bin/arm-none-eabi-g++ -G Ninja /Users/morten/openHackStack
Including boilerplate (Zephyr base (cached)): /opt/nordic/ncs/v1.5.1/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/morten/openHackStack
-- Using NCS Toolchain 1.5.1 for building. (/opt/nordic/ncs/v1.5.1/toolchain/cmake)
-- 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")
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 <module>
      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 2122, in _import_content_from_project
      content = self._importer(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 176, in _default_importer
      raise ManifestImportFailed(project, file)

  west.manifest.ManifestImportFailed: ManifestImportFailed: project <Project
  zephyr ('/opt/nordic/ncs/v1.5.1/zephyr') at v2.4.99-ncs2> file west.yml

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)


-- Configuring incomplete, errors occurred!

Cannot get compiler information:
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/modules/nrf/lib/fatal_error' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/arch/arch/arm/core/aarch32' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/arch/arch/arm/core/aarch32/cortex_m' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/arch/arch/arm/core/aarch32/cortex_m/mpu' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/arch/common' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/drivers/gpio' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/drivers/serial' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/kernel' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/lib/libc/minimal' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/lib/posix' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/modules/hal_nordic' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/soc/arm/common/cortex_m' does not exist
	Cannot start process, the working directory '/Users/morten/openHackStack/cmake-build-zdebug-nrf-connect-sdk-151/zephyr/soc/arm/nordic_nrf/nrf52' does not exist

[Failed to reload]

I already tried to remove and reinstall the SDK, but that did not help.

Regards,

Mort

Related