FATAL ERROR: CMake is not installed or cannot be found; cannot build.

Using the 54l15 chip, with the NCSv3.2.1 version, the example is compiled using peripheral_uart.

I have been using this environment for over a year now.

1. When I was compiling today, I encountered the following problem

2. I attempted to delete C:\UserTools\Cmake, but encountered the following error message.

west build --build-dir e:/ncs/low_power_backup/peripheral_uart_update_1/build e:/ncs/low_power_backup/peripheral_uart_update_1 --pristine --board nrf54l15dk/nrf54l15/cpuapp -- -DCONFIG_DEBUG_THREAD_INFO=y

-- west build: generating a build system
FATAL ERROR: CMake is not installed or cannot be found; cannot build.

3. I attempted to reinstall the "NRF Connect for VS Code" within VS Code from scratch.

     FATAL ERROR: CMake is not installed or cannot be found; cannot build.

4. I uninstalled all the extensions of VSCode and finally uninstalled VSCode itself. Then I reinstalled them, but still got an error message.

     FATAL ERROR: CMake is not installed or cannot be found; cannot build.

5. Compile using the nrf connet port



The SDK for my NCS is not on the C drive, but on another drive. I'm not sure if this will cause any problems.The SDK is not on the C drive. I have always used it this way.

Could you please take a look at it and help solve it as soon as possible? It's extremely urgent!

Looking forward to your reply very much.

Parents Reply Children
  • hello,

    Here is the supporting information.

    After reinstalling the plugin and VSCode, I opened the NCS directory and compiled the code in the overlay file. However, the code could not jump to the file or view the definitions.This has caused me a lot of trouble. Could you please take a look at it?

    // IMPORTANT: The following data can contain sensitive or confidential information about your environment.
    // If you do not want others to see this information, make sure to remove it before sharing the data.
    
    // For help and support, visit Nordic Semiconductor's DevZone at https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro",
        "osKernel": "10.0.19044",
        "vscode": "1.111.0",
        "electron": "39.6.0",
        "node": "v22.22.0",
        "appName": "Visual Studio Code",
        "appHost": "desktop"
      },
      "system": {
        "date": "2026-03-11T10:15:40.467Z",
        "vscodeRoot": "d:\\Microsoft VS Code\\ce099c1ed2\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "02:18:06",
        "osUptime": "02:24:03",
        "cpu": "11th Gen Intel(R) Core(TM) i5-11500 @ 2.70GHz"
      },
      "workspace": {
        "name": "project",
        "workspaceFile": null,
        "folders": [
          "e:\\ncs\\project"
        ]
      },
      "sdks": [
        {
          "version": "v3.2.2",
          "path": "e:\\ncs\\v3.2.2"
        },
        {
          "version": "v3.2.1",
          "path": "e:\\ncs\\v3.2.1"
        },
        {
          "version": "v3.0.0",
          "path": "e:\\ncs\\v3.0.0"
        },
        {
          "version": "v2.6.0",
          "path": "d:\\nrfconnectSetup\\SDK_NCS\\v2.6.0"
        },
        {
          "version": "v2.6.0",
          "path": "f:\\svnProject\\QQQQ\\code"
        },
        {
          "version": "v2.6.0",
          "path": "f:\\svnBackups\\NCS_Script\\code"
        }
      ],
      "activeBuild": "/ncs/project/WWWW/build",
      "apps": [
        {
          "workspace": "e:\\ncs\\project",
          "uri": "e:\\ncs\\project\\EEEE",
          "buildConfigurations": [
            {
              "id": "/ncs/project/EEEE/MUbuild",
              "name": "MUbuild",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/ncs/project/EEEE/MUbuild/EEEE",
              "name": "MUbuild/EEEE",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/ncs/project/EEEE/MUbuild/mcuboot",
              "name": "MUbuild/mcuboot",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/ncs/project/EEEE/SUbuild",
              "name": "SUbuild",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/ncs/project/EEEE/SUbuild/EEEE",
              "name": "SUbuild/EEEE",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/ncs/project/EEEE/SUbuild/mcuboot",
              "name": "SUbuild/mcuboot",
              "boardId": "nrf54l15dk/nrf54l15/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            }
          ]
        },
        {
          "workspace": "e:\\ncs\\project",
          "uri": "e:\\ncs\\project\\WWWW",
          "buildConfigurations": [
            {
              "id": "/ncs/project/WWWW/build",
              "name": "build",
              "boardId": "nrf54l15dk/nrf54l05/cpuapp",
              "type": "Sysbuild",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            },
            {
              "id": "/ncs/project/WWWW/build/WWWW",
              "name": "build/WWWW",
              "boardId": "nrf54l15dk/nrf54l05/cpuapp",
              "type": "Zephyr",
              "isChild": true,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              },
              "sdk": "e:\\ncs\\v3.2.1",
              "toolchain": "nRF Connect SDK Toolchain v3.2.1"
            }
          ]
        }
      ],
      "toolchains": [
        {
          "version": "3.2.2",
          "path": "e:\\ncs\\toolchains\\c717907b94",
          "displayName": "nRF Connect SDK Toolchain v3.2.2",
          "compilerTools": [
            "Zephyr SDK (arm) 0.17.0",
            "Zephyr SDK (riscv) 0.17.0"
          ]
        },
        {
          "version": "3.2.1",
          "path": "e:\\ncs\\toolchains\\66cdf9b75e",
          "displayName": "nRF Connect SDK Toolchain v3.2.1",
          "compilerTools": [
            "Zephyr SDK (arm) 0.17.0",
            "Zephyr SDK (riscv) 0.17.0"
          ]
        },
        {
          "version": "3.0.0",
          "path": "e:\\ncs\\toolchains\\0b393f9e1b",
          "displayName": "nRF Connect SDK Toolchain v3.0.0",
          "compilerTools": [
            "Zephyr SDK (arm) 0.17.0",
            "Zephyr SDK (riscv) 0.17.0"
          ]
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000150712109"
        }
      ],
      "tools": {
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.17.0",
        "C:\\Program Files\\SEGGER\\JLink_V832\\JLink.exe": "8.32",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "E:\\ncs\\toolchains\\66cdf9b75e\\nrfutil": "8.1.1",
        "E:\\ncs\\toolchains\\66cdf9b75e\\nrfutil\\home\\bin\\nrfutil-device.exe": "2.16.0",
        "E:\\ncs\\toolchains\\66cdf9b75e\\cmake": "3.21.0",
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Scripts\\west.exe": "1.4.0",
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\python.exe": "3.12.4",
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\ninja.exe": "1.10.2",
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\gperf.exe": "3.1",
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\dtc.exe": "1.4.7",
        "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\gn.exe": "2223",
        "E:\\ncs\\toolchains\\66cdf9b75e\\mingw64\\bin\\git.exe": "git version 2.52.0.",
        "debugger (arm)": "e:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "debugger (riscv)": "e:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.17.1",
          "binPath": "c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device",
          "jlinkInfo": {
            "description": "This version of SEGGER J-Link is different from the J-Link version that was used to test nrfutil device commands",
            "expectedVersion": {
              "version": "JLink_V8.76",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V8.32",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.11.0",
          "binPath": "c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\fyuan",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\fyuan",
          "PATH": "E:\\ncs\\toolchains\\66cdf9b75e;E:\\ncs\\toolchains\\66cdf9b75e\\mingw64\\bin;E:\\ncs\\toolchains\\66cdf9b75e\\bin;E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin;E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Scripts;e:/ncs/toolchains/66cdf9b75e\\opt/nanopb/generator-bin;E:\\ncs\\toolchains\\66cdf9b75e\\nrfutil\\bin;E:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;E:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;D:\\Microsoft VS Code;D:\\VMware\\bin\\;C:\\Program Files\\VanDyke Software\\Clients\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\9 2020-q2-update\\bin;C:\\Windows\\System32\\OpenSSH\\;D:\\SVN\\bin;C:\\UserTools\\GnuWin32\\bin;C:\\UserTools\\cygwin64\\bin;C:\\UserTools\\nrfutil;C:\\Program Files (x86)\\Nordic Semiconductor\\nRFgo Studio\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;D:\\ATEL_BLUE\\Nordic\\OTA\\platform-tools;D:\\Git\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\UserTools\\Go\\bin;C:\\Users\\fyuan\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\fyuan\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Program Files (x86)\\GNU Tools Arm Embedded\\9 2019-q4-major\\bin;C:\\Users\\fyuan\\AppData\\Local\\Microsoft\\WindowsApps;C:\\UserTools\\MinGW\\bin;C:\\Users\\fyuan\\go\\bin;D:\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "e:\\ncs\\v3.2.1\\zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "e:\\ncs\\toolchains\\66cdf9b75e\\opt\\zephyr-sdk",
          "PYTHONPATH": "E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin;E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Lib;E:\\ncs\\toolchains\\66cdf9b75e\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\fyuan",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\fyuan",
          "Path": "D:\\Microsoft VS Code;D:\\VMware\\bin\\;C:\\Program Files\\VanDyke Software\\Clients\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\9 2020-q2-update\\bin;C:\\Windows\\System32\\OpenSSH\\;D:\\SVN\\bin;C:\\UserTools\\GnuWin32\\bin;C:\\UserTools\\cygwin64\\bin;C:\\UserTools\\nrfutil;C:\\Program Files (x86)\\Nordic Semiconductor\\nRFgo Studio\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;D:\\ATEL_BLUE\\Nordic\\OTA\\platform-tools;D:\\Git\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\UserTools\\Go\\bin;C:\\Users\\fyuan\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\fyuan\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Program Files (x86)\\GNU Tools Arm Embedded\\9 2019-q4-major\\bin;C:\\Users\\fyuan\\AppData\\Local\\Microsoft\\WindowsApps;C:\\UserTools\\MinGW\\bin;D:\\ATEL_BLUE\\Nordic\\OTA\\platform-tools;C:\\Users\\fyuan\\go\\bin;D:\\Microsoft VS Code\\bin",
          "PATH": "D:\\Microsoft VS Code;D:\\VMware\\bin\\;C:\\Program Files\\VanDyke Software\\Clients\\;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\9 2020-q2-update\\bin;C:\\Windows\\System32\\OpenSSH\\;D:\\SVN\\bin;C:\\UserTools\\GnuWin32\\bin;C:\\UserTools\\cygwin64\\bin;C:\\UserTools\\nrfutil;C:\\Program Files (x86)\\Nordic Semiconductor\\nRFgo Studio\\;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;D:\\ATEL_BLUE\\Nordic\\OTA\\platform-tools;D:\\Git\\Git\\cmd;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\UserTools\\Go\\bin;C:\\Users\\fyuan\\AppData\\Local\\Programs\\Python\\Python313\\Scripts\\;C:\\Users\\fyuan\\AppData\\Local\\Programs\\Python\\Python313\\;C:\\Program Files (x86)\\GNU Tools Arm Embedded\\9 2019-q4-major\\bin;C:\\Users\\fyuan\\AppData\\Local\\Microsoft\\WindowsApps;C:\\UserTools\\MinGW\\bin;D:\\ATEL_BLUE\\Nordic\\OTA\\platform-tools;C:\\Users\\fyuan\\go\\bin;D:\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "E:\\ncs\\v3.0.0\\zephyr"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}\\RRRR",
            "${workspaceFolder}\\EEEE",
            "${workspaceFolder}\\WWWW"
          ],
          "applicationOptions": {},
          "west": {
            "env": {
              "$base": "terminal"
            },
            "verbose": ""
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false,
            "focusOnNrfDebug": true
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": "E:/ncs"
          },
          "sdkManager": {
            "region": "default"
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": {}
          },
          "remoteDevices": []
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "localEcho": false
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2026.3.1484",
            "path": "c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2026.3.1484-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2026.3.273",
            "path": "c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2026.3.273",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2026.3.617",
            "path": "c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2026.3.617",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2026.1.230",
            "path": "c:\\Users\\fyuan\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2026.1.230",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.30.5",
          "ms-vscode.js-debug": "1.110.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "456ken.multicolorhighlighter": "1.1.5",
          "ms-vscode.cmake-tools": "1.22.28",
          "ms-vscode.cpp-devtools": "0.3.6",
          "ms-vscode.cpptools-extension-pack": "1.5.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "trond-snekvik.gnu-mapfiles": "1.1.0"
        }
      }
    }
    
    

    Looking forward to your reply very much.

    Thanks

  • Thank you! We are looking into it, and trying to reproduce the issue. 

    Question: Does the issue only occur when you use a different drive than the C-drive for the installation of NCS and the toolchain? Or also if you just use a custom location?

    Best regards,

    Edvin

  • hello,

    Thank you for your reply.

    This problem will occur when installing on a non-C drive.

    as shown blow

    I have now rolled back the version. There are no toolchains on the C drive either, and the problem has been resolved.

    Thanks

  • What I wanted to know if if you have tried installing NCS and the toolchain on the C-drive (can still be a custom path on the C drive) or if it only happens when you install it on the E drive.

    BR,
    Edvin

  • I haven't tried installing it in a custom path on the C drive.Only custom installation on the E drive

Related