nRF Connect for VS Code no longer building project

Hello,

for some time I didn't have to work on my project that uses nRF Connect SDK but recently I had to work on it again and noticed that I am not able to build my before working configurations anymore.

This is my build log:

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: <path-to-project>
-- Found Python3: C:/ncs/toolchains/v2.0.2/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/ncs/v2.0.2/zephyr/.cache
-- Zephyr version: 3.0.99 (C:/ncs/v2.0.2/zephyr)
-- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
-- Found dtc: C:/ncs/toolchains/v2.0.2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.2/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.0.2/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: <path-to-project>/configuration/nrf52840dk_nrf52840/app.overlay
-- Generated zephyr.dts: <path-to-project>/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: <path-to-project>/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: <path-to-project>/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: <path-to-project>/build/zephyr/dts.cmake
CMake Error at C:/ncs/v2.0.2/zephyr/cmake/modules/kconfig.cmake:226 (message):
  File not found:
  <path-to-project>/configuration/nrf52840dk_nrf52840/configuration/nrf52840dk_nrf52840/prj.conf
Call Stack (most recent call first):
  C:/ncs/v2.0.2/zephyr/cmake/modules/zephyr_default.cmake:121 (include)
  C:/ncs/v2.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:51 (include)
  C:/ncs/v2.0.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:76 (include_boilerplate)
  CMakeLists.txt:22 (find_package)

And this is the build command:

west build --build-dir <path-to-project>/build <path-to-project> --pristine --board nrf52840dk_nrf52840 --cmake-only -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=configuration/nrf52840dk_nrf52840/prj.conf -DBOARD_ROOT=<path-to-project>

The error says it doesn't find the configuration file and this is correct because it is looking in the wrong path. It is looking under <path-to-project>/configuration/nrf52840dk_nrf52840/configuration/nrf52840dk_nrf52840/prj.conf but the actual path should be just <path-to-project>/configuration/nrf52840dk_nrf52840/prj.conf.

This seems like a bug to me or am I missing something?

OS: Windows 11 24H2
VS Code: 1.102.2
nRF Connect for VS Code: 2025.5.152

Edit:

When adjusting the build command like below and run it manually it works.

west build --build-dir <path-to-project>/build <path-to-project> --pristine --board nrf52840dk_nrf52840 --cmake-only -- -DNCS_TOOLCHAIN_VERSION=NONE -DCONF_FILE=prj.conf -DBOARD_ROOT=<path-to-project>

Parents
  • Hi David,

    Could you attach the Support Information?

    -Priyanka

  • Hi Pryanka,

    sure, attached you can find the Support Information file:

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.26100",
        "vscode": "1.102.2",
        "electron": "35.6.0",
        "node": "v22.15.1"
      },
      "system": {
        "date": "2025-07-24T13:51:01.027Z",
        "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:01:14",
        "osUptime": "166:08:52",
        "cpu": "AMD Ryzen 7 5800X 8-Core Processor"
      },
      "workspace": {
        "name": "debug",
        "workspaceFile": null,
        "folders": [
          "c:\\project\\debug"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.1",
          "path": "c:\\ncs\\v2.6.1"
        },
        {
          "version": "v2.0.2",
          "path": "c:\\ncs\\v2.0.2"
        }
      ],
      "apps": [
        {
          "workspace": "c:\\project\\debug",
          "uri": "c:\\project\\debug\\firmware",
          "buildConfigurations": []
        }
      ],
      "toolchains": [
        {
          "version": "2.6.1",
          "path": "c:\\ncs\\toolchains\\cf2149caf2"
        },
        {
          "version": "2.0.2",
          "path": "c:\\ncs\\toolchains\\v2.0.2"
        }
      ],
      "connectedDevices": [],
      "tools": {
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
        "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.2",
        "c:\\ncs\\toolchains\\cf2149caf2\\cmake": "3.21.0",
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\python.exe": "3.9.13",
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\ninja.exe": "1.10.2",
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gperf.exe": "3.1",
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\gn.exe": "2154",
        "c:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.8.8",
          "binPath": "c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.152-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.18",
              "versionFormat": "string"
            },
            "name": "JlinkARM",
            "version": "JLink_V7.94e",
            "versionFormat": "string"
          }
        },
        "nrfutil-sdk-manager": {
          "version": "1.3.0",
          "binPath": "c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.152-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\Lunatone",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Lunatone",
          "PATH": "c:\\ncs\\toolchains\\cf2149caf2;c:\\ncs\\toolchains\\cf2149caf2\\mingw64\\bin;c:\\ncs\\toolchains\\cf2149caf2\\bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Scripts;c:\\ncs\\toolchains\\cf2149caf2\\opt\\nanopb\\generator-bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.152-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;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:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Meld\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\RedHat\\Podman\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Users\\Lunatone\\go\\bin;C:\\Users\\Lunatone\\scoop\\apps\\mingw-winlibs-llvm-ucrt\\current\\bin;C:\\Users\\Lunatone\\scoop\\shims;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Lunatone\\AppData\\Local\\gitkraken\\bin;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\albertony.npiperelay_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\astral-sh.uv_Microsoft.Winget.Source_8wekyb3d8bbwe",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin;c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib;c:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\Lib\\site-packages"
        },
        "inherited": {
          "HOME": "C:\\Users\\Lunatone",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\Lunatone",
          "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;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:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Meld\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\RedHat\\Podman\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Users\\Lunatone\\go\\bin;C:\\Users\\Lunatone\\scoop\\apps\\mingw-winlibs-llvm-ucrt\\current\\bin;C:\\Users\\Lunatone\\scoop\\shims;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Lunatone\\AppData\\Local\\gitkraken\\bin;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Users\\Lunatone\\AppData\\Roaming\\Python\\Scripts;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\albertony.npiperelay_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\astral-sh.uv_Microsoft.Winget.Source_8wekyb3d8bbwe",
          "PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\java8path;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:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Meld\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\RedHat\\Podman\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\CMake\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Users\\Lunatone\\go\\bin;C:\\Users\\Lunatone\\scoop\\apps\\mingw-winlibs-llvm-ucrt\\current\\bin;C:\\Users\\Lunatone\\scoop\\shims;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Lunatone\\AppData\\Local\\gitkraken\\bin;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw64\\bin;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Links;C:\\Users\\Lunatone\\AppData\\Roaming\\Python\\Scripts;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\albertony.npiperelay_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\\Users\\Lunatone\\AppData\\Local\\Microsoft\\WinGet\\Packages\\astral-sh.uv_Microsoft.Winget.Source_8wekyb3d8bbwe"
        }
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/firmware"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [
            "${workspaceFolder}/firmware"
          ],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": false
          },
          "activeAppFollowActiveEditor": true,
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": "c:\\ncs"
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask",
          "terminalProfile": {
            "shell": null
          }
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2025.5.152",
            "path": "c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.5.152-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2025.4.22",
            "path": "c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2025.4.22",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2025.4.26",
            "path": "c:\\Users\\Lunatone\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2025.4.26",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.26.3",
          "ms-vscode.js-debug": "1.102.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "Arm.vscode-cmsis-debugger": "0.5.0",
          "basdp.language-gas-x86": "0.0.2",
          "bbenoist.Doxygen": "1.0.0",
          "charliermarsh.ruff": "2025.24.0",
          "dan-c-underwood.arm": "1.7.4",
          "docker.docker": "0.13.0",
          "eamodio.gitlens": "17.3.2",
          "GitLab.gitlab-workflow": "6.35.0",
          "jeff-hykin.better-cpp-syntax": "1.27.1",
          "josetr.cmake-language-support-vscode": "0.0.9",
          "keroc.hex-fmt": "1.0.0",
          "matepek.vscode-catch2-test-adapter": "4.17.3",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.25",
          "mehyaa.workspace-storage-cleanup": "1.11.5",
          "mhutchie.git-graph": "1.30.0",
          "ms-azuretools.vscode-containers": "2.1.0",
          "ms-azuretools.vscode-docker": "2.0.0",
          "ms-dotnettools.vscode-dotnet-runtime": "2.3.7",
          "ms-python.debugpy": "2025.10.0",
          "ms-python.pylint": "2025.2.0",
          "ms-python.python": "2025.10.1",
          "ms-python.vscode-pylance": "2025.6.2",
          "ms-python.vscode-python-envs": "1.0.0",
          "ms-vscode-remote.remote-containers": "0.422.1",
          "ms-vscode-remote.remote-ssh": "0.120.0",
          "ms-vscode-remote.remote-ssh-edit": "0.87.0",
          "ms-vscode-remote.remote-wsl": "0.99.0",
          "ms-vscode-remote.vscode-remote-extensionpack": "0.26.0",
          "ms-vscode.cpptools-extension-pack": "1.3.1",
          "ms-vscode.cpptools-themes": "2.0.0",
          "ms-vscode.hexeditor": "1.11.1",
          "ms-vscode.remote-explorer": "0.5.0",
          "ms-vscode.remote-server": "1.5.2",
          "ms-vscode.test-adapter-converter": "0.2.1",
          "ms-vscode.vscode-embedded-tools": "0.8.0",
          "ms-vscode.vscode-serial-monitor": "0.13.1",
          "nick-rudenko.back-n-forth": "3.1.1",
          "oderwat.indent-rainbow": "8.3.1",
          "redhat.vscode-xml": "0.29.0",
          "redhat.vscode-yaml": "1.18.0",
          "tamasfe.even-better-toml": "0.21.2",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "vscode-icons-team.vscode-icons": "12.13.0",
          "ZixuanWang.linkerscript": "1.0.4"
        }
      }
    }
    
    

  • Hi David,

    I am not able to replicate your error. 

    Could you try to build within the actual path and see if the issue arises?, i.e. build within C:\NCS\v2.6.1\nrf\applications\nrf_desktop\

    instead of creating a separate workspace at c:\project\debug

    Please try this and let me know how it goes. Also, please delete the existing build file and application as well and do a fresh build in the new location.

    Regards,

    Priyanka

  • Hi Priyanka,

    when I'm building in the SDK path I have the same issue. I tried it with both versions I have installed 2.0.2 and 2.6.1. Before building I deleted the build folder.

  • Hi David,

    I am checking this internally with the team. Similar issue has been reported, but I am not able to reproduce it here. I am discussing this with experts and will get back to you as soon as I get a solution.

    -Priyanka

  • Hello Priyanka,

    I am having the exact same issue as David and can not build my projects. Please do not give up.

  • Hi,

    Thank you for reporting. We are yet to find a solution and are still working on this.

    -Priyanka

Reply Children
No Data
Related