NRF 5340 Audio DK - Demo - FATAL ERROR: CMake is not installed or cannot be found; cannot build.

Hi, 

I am having trouble getting the build to complete for the Audio DK demo (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/README.html#nrf53-audio-app-configuration-select-bis). I have the "FATAL ERROR: CMake is not installed or cannot be found; cannot build"

I have the cmake extension installed, I am opening VS code from the toolchain manager. I checked in the nrf connect: generate support information and it looks like CMake has a path to tools. I noticed there isn't one to nrfutil. I'm not sure if this could cause the issue or how to fix it. 

IMPORTANT: The data below could contain sensitive or confidential information about your environment.
If you do not wish this to be seen by others, please make sure to remove it before sharing.

For help and support, visit the Nordic DevZone at https://devzone.nordicsemi.com/.

{
  "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Enterprise",
    "osKernel": "10.0.19044",
    "vscode": "1.74.2",
    "electron": "19.1.8",
    "node": "v16.14.2"
  },
  "system": {
    "date": "2022-12-29T15:50:44.549Z",
    "vscodeRoot": "c:\\Users\\armstrk1\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:12:32",
    "osUptime": "790:53:06",
    "cpu": {
      "model": "Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz",
      "speed": "2304 MHz",
      "count": 2
    },
    "memory": {
      "total": "15.89 GB",
      "free": "3.67 GB"
    }
  },
  "workspace": {
    "name": "nrf5340_audio",
    "workspaceFile": null,
    "folders": [
      "c:\\EGR636_nRF\\MyTest\\nrf5340_audio"
    ]
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2022.11.140",
        "path": "c:\\Users\\armstrk1\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.11.140-win32-x64",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2022.11.29",
        "path": "c:\\Users\\armstrk1\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.11.29",
        "isActive": true
      },
      "nordic-semiconductor.nrf-devicetree": {
        "version": "2022.11.153",
        "path": "c:\\Users\\armstrk1\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2022.11.153",
        "isActive": true
      },
      "nordic-semiconductor.nrf-kconfig": {
        "version": "2022.11.50",
        "path": "c:\\Users\\armstrk1\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2022.11.50",
        "isActive": true
      }
    },
    "external": {
      "marus25.cortex-debug": "1.6.9",
      "ms-vscode.cpptools": "1.13.8",
      "ms-vscode-remote.remote-wsl-recommender": "0.0.18",
      "ms-vscode.js-debug": "1.74.1",
      "ms-vscode.js-debug-companion": "1.0.18",
      "ms-vscode.vscode-js-profile-table": "1.0.3",
      "batisteo.vscode-django": "1.10.0",
      "cschlosser.doxdocgen": "1.4.0",
      "donjayamanne.python-environment-manager": "1.0.4",
      "donjayamanne.python-extension-pack": "1.7.0",
      "jeff-hykin.better-cpp-syntax": "1.17.2",
      "KevinRose.vsc-python-indent": "1.18.0",
      "mcu-debug.debug-tracker-vscode": "0.0.13",
      "mcu-debug.memory-view": "0.0.18",
      "mcu-debug.rtos-views": "0.0.2",
      "ms-python.isort": "2022.8.0",
      "ms-python.python": "2022.20.1",
      "ms-python.vscode-pylance": "2022.12.20",
      "ms-toolsai.jupyter": "2022.11.1003412109",
      "ms-toolsai.jupyter-keymap": "1.0.0",
      "ms-toolsai.vscode-jupyter-cell-tags": "0.1.6",
      "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
      "ms-vscode.cpptools-extension-pack": "1.3.0",
      "ms-vscode.cpptools-themes": "2.0.0",
      "njpwerner.autodocstring": "0.6.1",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "twxs.cmake": "0.0.17",
      "VisualStudioExptTeam.intellicode-api-usage-examples": "0.2.6",
      "VisualStudioExptTeam.vscodeintellicode": "1.2.29",
      "wholroyd.jinja": "0.0.8"
    }
  },
  "tools": {
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.15.1",
    "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.80c",
    "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.18.1",
    "nrfutil": "Not found",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\cmake.exe": "3.20.5",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\python.exe": "3.8.2",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\ninja.exe": "1.9.0",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\gperf.exe": "3.1",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\dtc.exe": "1.4.7",
    "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\gn.exe": "2073",
    "c:\\ncs\\toolchains\\v2.2.0\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
    "gdbPath": "c:\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
  },
  "sdks": [
    {
      "version": "2.0.0",
      "path": "c:\\ncs\\v2.0.0"
    },
    {
      "version": "2.2.0",
      "path": "c:\\ncs\\v2.2.0"
    }
  ],
  "toolchains": [
    {
      "version": "2.0.0",
      "path": "c:\\ncs\\toolchains\\v2.0.0"
    },
    {
      "version": "2.2.0",
      "path": "c:\\ncs\\toolchains\\v2.2.0"
    }
  ],
  "connectedDevices": [
    {
      "serialNumber": "1050199355"
    }
  ],
  "deviceProviders": [
    "nrfjprog"
  ],
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "c:\\EGR636_nRF\\MyTest",
      "toolchain": {
        "path": "${nrf-connect.toolchain:2.2.0}"
      },
      "ozonePath": "",
      "applications": [
        "."
      ],
      "applicationOptions": {},
      "kconfig": {
        "interface": "kconfig",
        "executeInDefaultShell": false
      },
      "welcome": {
        "showOnStartup": true
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "enableTelemetry": false,
      "taskBindings": {},
      "debugging": {
        "backend": "nRF Debug",
        "flash": true,
        "bindings": {}
      },
      "activeAppFollowActiveEditor": true
    },
    "nordic-semiconductor.nrf-terminal": {
      "terminalMode": "character",
      "scrollBack": 1000
    },
    "marus25.cortex-debug": {
      "armToolchainPath": null,
      "armToolchainPrefix": "arm-none-eabi",
      "gdbPath": null,
      "objdumpPath": null,
      "JLinkGDBServerPath": null,
      "openocdPath": null,
      "pyocdPath": null,
      "PEGDBServerPath": null,
      "stutilPath": null,
      "stlinkPath": null,
      "stm32cubeprogrammer": null,
      "enableTelemetry": true,
      "registerUseNaturalFormat": true,
      "variableUseNaturalFormat": true,
      "dbgServerLogfile": null,
      "showDevDebugOutput": "none"
    }
  },
  "environment": {
    "westExe": "west",
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\armstrk1",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\armstrk1",
      "Path": "c:\\ncs\\toolchains\\v2.2.0\\mingw64\\bin;c:\\ncs\\toolchains\\v2.2.0\\mingw64\\libexec\\git-core;c:\\ncs\\toolchains\\v2.2.0\\opt\\bin;c:\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.2.0\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Scripts;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Rockwell Software\\RSCommon;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Common Files\\Rockwell\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X64\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X86\\;C:\\Program Files (x86)\\Common Files\\Pulse Secure\\TNC Client Plugin\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Rockwell Software\\RSCommon;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Common Files\\Rockwell\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X64\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X86\\;C:\\Program Files (x86)\\Common Files\\Pulse Secure\\TNC Client Plugin\\;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python310;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;",
      "ZEPHYR_BASE": "c:\\EGR636_nRF\\MyTest\\zephyr",
      "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
      "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk",
      "PYTHONPATH": "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin;c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Lib;c:\\ncs\\toolchains\\v2.2.0\\opt\\bin\\Lib\\site-packages",
      "Python3_ROOT": "c:\\ncs\\toolchains\\v2.2.0\\opt\\bin"
    },
    "inherited": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\armstrk1",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\armstrk1",
      "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Rockwell Software\\RSCommon;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Common Files\\Rockwell\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X64\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X86\\;C:\\Program Files (x86)\\Common Files\\Pulse Secure\\TNC Client Plugin\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Rockwell Software\\RSCommon;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Common Files\\Rockwell\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X64\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X86\\;C:\\Program Files (x86)\\Common Files\\Pulse Secure\\TNC Client Plugin\\;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python310;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;",
      "PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Rockwell Software\\RSCommon;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Common Files\\Rockwell\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X64\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X86\\;C:\\Program Files (x86)\\Common Files\\Pulse Secure\\TNC Client Plugin\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Git\\cmd;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Rockwell Software\\RSCommon;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Common Files\\Rockwell\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X64\\;C:\\Program Files (x86)\\Pulse Secure\\VC142.CRT\\X86\\;C:\\Program Files (x86)\\Common Files\\Pulse Secure\\TNC Client Plugin\\;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Python\\Python310;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Users\\armstrk1\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;"
    },
    "toolchainPath": "c:\\ncs\\toolchains\\v2.2.0",
    "toolchainBinPath": "c:\\ncs\\toolchains\\v2.2.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
    "toolchainVersion": "2.2.0"
  },
  "terminal": {
    "shell": null,
    "defaultProfile": null
  }
}

I'm not sure what else to try? 

Parents
  • Alright, so I found a fix for the Cmake fatal error where I did pip3 install nrfutil. This worked except for a compatibility error with PyYAML: 

    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
    west 0.14.0 requires PyYAML>=5.1, but you have pyyaml 4.2b4 which is incompatible.

    So I used freeze and install to change the version of PyYaml to 4.2b1. Now I have a new conflict where it needs two separate versions. 

    Should I be using an older version of west to fix this? I have tried updating the version of nrfutil to the latest (6.1.7)  but it doesn't seem to let me do this?

    Thank you for any help!

Reply
  • Alright, so I found a fix for the Cmake fatal error where I did pip3 install nrfutil. This worked except for a compatibility error with PyYAML: 

    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
    west 0.14.0 requires PyYAML>=5.1, but you have pyyaml 4.2b4 which is incompatible.

    So I used freeze and install to change the version of PyYaml to 4.2b1. Now I have a new conflict where it needs two separate versions. 

    Should I be using an older version of west to fix this? I have tried updating the version of nrfutil to the latest (6.1.7)  but it doesn't seem to let me do this?

    Thank you for any help!

Children
No Data
Related