Problems with project loading, missing build configs and build errors in VS Code (nRF Connect SDK)

Hi,
I'm using nRF Connect SDK (v2.1.2) with VS Code on Windows for a project targeting nRF52811.

Even though everything is versioned in Git, I keep running into the following problems randomly when I reopen the project:

1) Sometimes the project doesn't load at all

The nRF Connect view in VS Code shows no project under "Applications", even though the folder is open and CMakeLists.txt is present.

2) Build configuration is missing

When the project loads, there is often no build configuration present, and I have to create a new one every time.
Isn't this supposed to be saved somewhere?
Where is the build configuration stored, and why does it not reload automatically?

3) Build error with west

Sometimes when I try to build, I get this error:

ERROR: it looks like . is a build directory: did you mean --build-dir . instead?
FATAL ERROR: refusing to proceed without --force due to above error

I don't understand where this comes from. The project structure doesn't change.

This is extremely frustrating and wastes a lot of time. I don’t know what causes it — sometimes everything works, and other times it breaks just by reopening the same project.

Can someone explain what could cause these problems and how to avoid them?

Thanks!


  • Hi, 

    Please provide the support information from the top right of the Welcome view to help investigate the issue.

    Regards,
    Amanda H.

  • Hi, there it is:

    // 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 devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "win32",
    "osVersion": "Windows 11 Pro",
    "osKernel": "10.0.26100",
    "vscode": "1.99.3",
    "electron": "34.3.2",
    "node": "v20.18.3"
    },
    "system": {
    "date": "2025-04-23T07:40:52.719Z",
    "vscodeRoot": "c:...AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "22:36:06",
    "osUptime": "24:05:42",
    "cpu": "12th Gen Intel(R) Core(TM) i7-1260P"
    },
    "workspace": {
    "name": "RING_TX",
    "workspaceFile": null,
    "folders": [
    "c:\\.....ring_tx\\RING_TX"
    ]
    },
    "sdks": [
    {
    "version": "v2.7.0-rc2",
    "path": "c:\\ncs\\v2.7.0-rc2"
    },
    {
    "version": "v2.6.1",
    "path": "c:\\ncs\\v2.6.1"
    },
    {
    "version": "v2.5.2",
    "path": "c:\\ncs\\v2.5.2"
    },
    {
    "version": "v2.1.2",
    "path": "c:\\ncs\\v2.1.2"
    }
    ],
    "activeBuild": "c:...\\RING_TX\\build",
    "apps": [
    {
    "workspace": "c:...\\RING_TX",
    "uri": "c:...\\RING_TX",
    "buildConfigurations": [
    {
    "id": "c:...\\RING_TX\\build",
    "name": "build",
    "boardId": "nrf52840dk_nrf52811",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    },
    "sdk": "c:\\ncs\\v2.1.2",
    "toolchain": "nRF Connect SDK Toolchain v2.1.2"
    }
    ]
    }
    ],
    "toolchains": [
    {
    "version": "2.7.0-rc2",
    "path": "c:\\ncs\\toolchains\\ce3b5ff664"
    },
    {
    "version": "2.6.1",
    "path": "c:\\ncs\\toolchains\\cf2149caf2"
    },
    {
    "version": "2.5.2",
    "path": "c:\\ncs\\toolchains\\c57af46cb7"
    },
    {
    "version": "2.1.2",
    "path": "c:\\ncs\\toolchains\\v2.1.2"
    }
    ],
    "connectedDevices": [
    {
    "serialNumber": "000260102277"
    }
    ],
    "tools": {
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.14.1",
    "C:\\Program Files\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.24.0",
    "C:\\ncs\\toolchains\\v2.1.2\\cmake": "3.20.5",
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\bin\\Scripts\\west.exe": "0.14.0",
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\bin\\python.exe": "3.8.2",
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\bin\\ninja.exe": "1.9.0",
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\bin\\gperf.exe": "3.1",
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\bin\\dtc.exe": "1.4.7",
    "C:\\ncs\\toolchains\\v2.1.2\\opt\\bin\\gn.exe": "2071",
    "C:\\ncs\\toolchains\\v2.1.2\\mingw64\\bin\\git.exe": "2.26.2.windows.1",
    "arm-gdbPath": "c:\\ncs\\toolchains\\v2.1.2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb-no-py.exe",
    "riscv-gdbPath": "not found"
    },
    "nrfutil": {
    "nrfutil-device": {
    "version": "2.8.8",
    "binPath": "c:....vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.106-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
    },
    "nrfutil-sdk-manager": {
    "version": "1.0.2",
    "binPath": "c:....vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.106-win32-x64\\platform\\nrfutil\\bin\\nrfutil-sdk-manager"
    }
    },
    "environment": {
    "westEnv": {
    "HOME": "C:\\Users\\Uzivatel",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\Users\\Uzivatel",
    "PATH": "C:\\ncs\\toolchains\\ce3b5ff664;C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\nanopb\\generator-bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\aarch64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\x86_64-zephyr-elf\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin;c:....vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.106-win32-x64\\platform\\nrfutil\\lib\\nrfutil-sdk-manager;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\ST\\STM32CubeCLT_1.15.1;C:\\ST\\STM32CubeCLT_1.15.1\\CMake\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\Ninja\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\GNU-tools-for-STM32\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\STLink-gdb-server\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\STM32CubeProgrammer\\bin;C:\\Program Files (x86)\\Kerio\\Outlook Connector (Offline Edition)\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\OpenOCD-20240916-0.12.0\\bin;C:\\OpenOCD-20240916-0.12.0\\share\\openocd\\scripts;C:...AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:...AppData\\Local\\Programs\\Python\\Python311\\;C:...AppData\\Local\\Microsoft\\WindowsApps;C:...AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\ProgramData\\Uzivatel\\gitkraken\\bin;C:...AppData\\Local\\gitkraken\\bin;C:...AppData\\Local\\atom\\bin;C:...AppData\\Local\\GitHubDesktop\\bin;;C:...AppData\\Local\\Programs\\Ollama",
    "ZEPHYR_BASE": "c:\\ncs\\v2.1.2\\zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk",
    "PYTHONPATH": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib;C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Lib\\site-packages"
    },
    "inherited": {
    "HOME": "C:\\Users\\Uzivatel",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\Users\\Uzivatel",
    "Path": "C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\ST\\STM32CubeCLT_1.15.1;C:\\ST\\STM32CubeCLT_1.15.1\\CMake\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\Ninja\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\GNU-tools-for-STM32\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\STLink-gdb-server\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\STM32CubeProgrammer\\bin;C:\\Program Files (x86)\\Kerio\\Outlook Connector (Offline Edition)\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\OpenOCD-20240916-0.12.0\\bin;C:\\OpenOCD-20240916-0.12.0\\share\\openocd\\scripts;C:...AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:...AppData\\Local\\Programs\\Python\\Python311\\;C:...AppData\\Local\\Microsoft\\WindowsApps;C:...AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\ProgramData\\Uzivatel\\gitkraken\\bin;C:...AppData\\Local\\gitkraken\\bin;C:...AppData\\Local\\atom\\bin;C:...AppData\\Local\\GitHubDesktop\\bin;C:...AppData\\Local\\Microsoft\\WindowsApps;;C:...AppData\\Local\\Programs\\Ollama",
    "PATH": "C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\ST\\STM32CubeCLT_1.15.1;C:\\ST\\STM32CubeCLT_1.15.1\\CMake\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\Ninja\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\GNU-tools-for-STM32\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\STLink-gdb-server\\bin;C:\\ST\\STM32CubeCLT_1.15.1\\STM32CubeProgrammer\\bin;C:\\Program Files (x86)\\Kerio\\Outlook Connector (Offline Edition)\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\STMicroelectronics\\STM32 ST-LINK Utility\\ST-LINK Utility;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\OpenOCD-20240916-0.12.0\\bin;C:\\OpenOCD-20240916-0.12.0\\share\\openocd\\scripts;C:...AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:...AppData\\Local\\Programs\\Python\\Python311\\;C:...AppData\\Local\\Microsoft\\WindowsApps;C:...AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\ProgramData\\Uzivatel\\gitkraken\\bin;C:...AppData\\Local\\gitkraken\\bin;C:...AppData\\Local\\atom\\bin;C:...AppData\\Local\\GitHubDesktop\\bin;C:...AppData\\Local\\Microsoft\\WindowsApps;;C:...AppData\\Local\\Programs\\Ollama"
    }
    },
    "terminal": {
    "defaultProfile": null
    },
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${nrf-connect.sdk:1.9.1}",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.3.0}"
    },
    "ozonePath": "",
    "applications": [
    "c:\\Work\\Work\\04_VNT\\02_NordicBT\\00_RING\\RING_RX\\RING_RX",
    "${workspaceFolder}"
    ],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig"
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "buildTerminal": {
    "condensedProgress": true
    },
    "debugging": {
    "flash": true,
    "bindings": {},
    "justMyCode": false
    },
    "activeAppFollowActiveEditor": true,
    "flash": {
    "softreset": false,
    "erase": false,
    "recover": false
    },
    "enableTelemetry": true,
    "thirdpartyIntegration": {},
    "toolchainManager": {
    "indexURL": null,
    "installDirectory": null
    },
    "nrfutil": {
    "home": null
    },
    "defaultOpenAction": "ask",
    "terminalProfile": {
    "shell": null
    }
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    },
    "marus25.cortex-debug": {
    "variableUseNaturalFormat": true,
    "liveWatchRefreshRate": "300",
    "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,
    "dbgServerLogfile": null
    }
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2025.4.106",
    "path": "c:....vscode\\extensions\\nordic-semiconductor.nrf-connect-2025.4.106-win32-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2024.9.14",
    "path": "c:....vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2025.4.22",
    "path": "c:....vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2025.4.22",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2025.4.26",
    "path": "c:....vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2025.4.26",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.12.1",
    "ms-vscode.cpptools": "1.24.5",
    "ms-vscode.js-debug": "1.97.1",
    "ms-vscode.js-debug-companion": "1.1.3",
    "ms-vscode.vscode-js-profile-table": "1.0.10",
    "actboy168.tasks": "0.16.1",
    "bbenoist.QML": "1.0.0",
    "cschlosser.doxdocgen": "1.4.0",
    "dan-c-underwood.arm": "1.7.4",
    "eamodio.gitlens": "17.0.3",
    "GitHub.copilot": "1.303.0",
    "GitHub.copilot-chat": "0.26.5",
    "hediet.vscode-drawio": "1.9.0",
    "jeff-hykin.better-cpp-syntax": "1.27.1",
    "matangover.mypy": "0.4.2",
    "mcu-debug.debug-tracker-vscode": "0.0.15",
    "mcu-debug.memory-view": "0.0.25",
    "mcu-debug.peripheral-viewer": "1.4.6",
    "mcu-debug.rtos-views": "0.0.7",
    "ms-python.debugpy": "2025.6.0",
    "ms-python.python": "2025.4.0",
    "ms-python.vscode-pylance": "2025.4.1",
    "ms-vscode.cmake-tools": "1.20.53",
    "ms-vscode.cpptools-extension-pack": "1.3.1",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.hexeditor": "1.11.1",
    "ms-vscode.vscode-serial-monitor": "0.13.1",
    "shd101wyy.markdown-preview-enhanced": "0.8.18",
    "SteveBushResearch.BuildOutputColorizer": "0.1.8",
    "STMicroelectronics.stm32-vscode-extension": "2.1.1",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17",
    "usernamehw.errorlens": "3.25.0",
    "ZixuanWang.linkerscript": "1.0.4"
    }
    }
    }

  • I'm fed up with this:
    I created a new project – based on zephyr/blinky for nRF52811. I added a build configuration and built it. Then I modified the overlay file and wanted to build again, but this error showed up:

    ERROR: it looks like . is a build directory: did you mean --build-dir . instead?  
    FATAL ERROR: refusing to proceed without --force due to above error
    

    And the build configuration disappeared, I had to create a new one – delete the build folder, and then the same error again.


    {
    "platform": {
    "os": "win32",
    "osVersion": "Windows 11 Pro",
    "osKernel": "10.0.26100",
    "vscode": "1.99.3",
    "electron": "34.3.2",
    "node": "v20.18.3"
    },
    "system": {
    "date": "2025-04-23T14:06:34.701Z",
    "vscodeRoot": "c:\\...\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "01:05:12",
    "osUptime": "30:31:24",
    "cpu": "12th Gen Intel(R) Core(TM) i7-1260P"
    },
    "workspace": {
    "name": "ZoneGuard",
    "workspaceFile": null,
    "folders": [
    "c:\\...\\ZoneGuard"
    ]
    },
    "sdks": [
    {
    "version": "v2.7.0-rc2",
    "path": "c:\\...\\v2.7.0-rc2"
    },
    {
    "version": "v2.6.1",
    "path": "c:\\...\\v2.6.1"
    },
    {
    "version": "v2.5.2",
    "path": "c:\\...\\v2.5.2"
    },
    {
    "version": "v2.1.2",
    "path": "c:\\...\\v2.1.2"
    }
    ],
    "apps": [
    {
    "workspace": "c:\\...\\ZoneGuard",
    "uri": "c:\\...\\ZoneGuard",
    "buildConfigurations": []
    }
    ],
    "toolchains": [
    {
    "version": "2.7.0-rc2",
    "path": "c:\\...\\ce3b5ff664"
    },
    {
    "version": "2.6.1",
    "path": "c:\\...\\cf2149caf2"
    },
    {
    "version": "2.5.2",
    "path": "c:\\...\\c57af46cb7"
    },
    {
    "version": "2.1.2",
    "path": "c:\\...\\v2.1.2"
    }
    ],
    "connectedDevices": [
    {
    "serialNumber": "000260102277"
    }
    ],
    "tools": {
    "C:\\...\\arm-zephyr-eabi-gcc.exe": "0.16.5-1",
    "C:\\...\\JLink.exe": "7.94e",
    "C:\\...\\nrfjprog.exe": "10.24.0",
    "C:\\...\\cmake": "3.21.0",
    "C:\\...\\west.exe": "1.2.0",
    "C:\\...\\python.exe": "3.9.13",
    "C:\\...\\ninja.exe": "1.10.2",
    "C:\\...\\gperf.exe": "3.1",
    "C:\\...\\dtc.exe": "1.4.7",
    "C:\\...\\gn.exe": "2172",
    "C:\\...\\git.exe": "2.37.3.windows.1",
    "arm-gdbPath": "c:\\...\\arm-zephyr-eabi-gdb.exe",
    "riscv-gdbPath": "C:\\...\\riscv64-zephyr-elf-gdb.exe"
    },
    "nrfutil": {
    "nrfutil-device": {
    "version": "2.8.8",
    "binPath": "c:\\...\\nrfutil-device"
    },
    "nrfutil-sdk-manager": {
    "version": "1.0.2",
    "binPath": "c:\\...\\nrfutil-sdk-manager"
    }
    },
    "environment": {
    "westEnv": {
    "HOME": "C:\\...\\Uzivatel",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\...\\Uzivatel",
    "PATH": "C:\\...\\ce3b5ff664;C:\\...\\mingw64\\bin;C:\\...\\bin;C:\\...\\Scripts;C:\\...\\nanopb\\generator-bin;C:\\...\\aarch64-zephyr-elf\\bin;C:\\...\\x86_64-zephyr-elf\\bin;C:\\...\\arm-zephyr-eabi\\bin;C:\\...\\riscv64-zephyr-elf\\bin;c:\\...\\nrfutil-sdk-manager;C:\\...\\stlink_server;C:\\...\\STM32CubeCLT_1.15.1;C:\\...\\CMake\\bin;C:\\...\\Ninja\\bin;C:\\...\\GNU-tools-for-STM32\\bin;C:\\...\\STLink-gdb-server\\bin;C:\\...\\STM32CubeProgrammer\\bin;C:\\...\\Outlook Connector (Offline Edition)\\;C:\\...\\system32;C:\\...\\WINDOWS;C:\\...\\Wbem;C:\\...\\WindowsPowerShell\\v1.0\\;C:\\...\\OpenSSH\\;C:\\...\\TortoiseGit\\bin;C:\\...\\Git\\cmd;C:\\...\\CMake\\bin;C:\\...\\ST-LINK Utility;C:\\...\\nrf-command-line-tools\\bin\\;C:\\...\\OpenOCD-20240916-0.12.0\\bin;C:\\...\\openocd\\scripts;C:\\...\\Python311\\Scripts\\;C:\\...\\Python311\\;C:\\...\\WindowsApps;C:\\...\\Microsoft VS Code\\bin;C:\\...\\gitkraken\\bin;C:\\...\\gitkraken\\bin;C:\\...\\atom\\bin;C:\\...\\GitHubDesktop\\bin;;C:\\...\\Ollama",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "C:\\...\\zephyr-sdk",
    "PYTHONPATH": "C:\\...\\bin;C:\\...\\Lib;C:\\...\\site-packages"
    },
    "inherited": {
    "HOME": "C:\\...\\Uzivatel",
    "HOMEDRIVE": "C:",
    "HOMEPATH": "\\...\\Uzivatel",
    "Path": "C:\\...\\stlink_server;C:\\...\\STM32CubeCLT_1.15.1;C:\\...\\CMake\\bin;C:\\...\\Ninja\\bin;C:\\...\\GNU-tools-for-STM32\\bin;C:\\...\\STLink-gdb-server\\bin;C:\\...\\STM32CubeProgrammer\\bin;C:\\...\\Outlook Connector (Offline Edition)\\;C:\\...\\system32;C:\\...\\WINDOWS;C:\\...\\Wbem;C:\\...\\WindowsPowerShell\\v1.0\\;C:\\...\\OpenSSH\\;C:\\...\\TortoiseGit\\bin;C:\\...\\Git\\cmd;C:\\...\\CMake\\bin;C:\\...\\ST-LINK Utility;C:\\...\\nrf-command-line-tools\\bin\\;C:\\...\\OpenOCD-20240916-0.12.0\\bin;C:\\...\\openocd\\scripts;C:\\...\\Python311\\Scripts\\;C:\\...\\Python311\\;C:\\...\\WindowsApps;C:\\...\\Microsoft VS Code\\bin;C:\\...\\gitkraken\\bin;C:\\...\\gitkraken\\bin;C:\\...\\atom\\bin;C:\\...\\GitHubDesktop\\bin;C:\\...\\WindowsApps;;C:\\...\\Ollama",
    "PATH": "C:\\...\\stlink_server;C:\\...\\STM32CubeCLT_1.15.1;C:\\...\\CMake\\bin;C:\\...\\Ninja\\bin;C:\\...\\GNU-tools-for-STM32\\bin;C:\\...\\STLink-gdb-server\\bin;C:\\...\\STM32CubeProgrammer\\bin;C:\\...\\Outlook Connector (Offline Edition)\\;C:\\...\\system32;C:\\...\\WINDOWS;C:\\...\\Wbem;C:\\...\\WindowsPowerShell\\v1.0\\;C:\\...\\OpenSSH\\;C:\\...\\TortoiseGit\\bin;C:\\...\\Git\\cmd;C:\\...\\CMake\\bin;C:\\...\\ST-LINK Utility;C:\\...\\nrf-command-line-tools\\bin\\;C:\\...\\OpenOCD-20240916-0.12.0\\bin;C:\\...\\openocd\\scripts;C:\\...\\Python311\\Scripts\\;C:\\...\\Python311\\;C:\\...\\WindowsApps;C:\\...\\Microsoft VS Code\\bin;C:\\...\\gitkraken\\bin;C:\\...\\gitkraken\\bin;C:\\...\\atom\\bin;C:\\...\\GitHubDesktop\\bin;C:\\...\\WindowsApps;;C:\\...\\Ollama"
    }
    },
    "terminal": {
    "defaultProfile": null
    },
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${nrf-connect.sdk:2.5.2}",
    "toolchain": {
    "path": ""
    },
    "ozonePath": "",
    "applications": [],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig"
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "buildTerminal": {
    "condensedProgress": true
    },
    "debugging": {
    "flash": true,
    "bindings": {},
    "justMyCode": false
    },
    "activeAppFollowActiveEditor": false,
    "flash": {
    "softreset": false,
    "erase": false,
    "recover": false
    },
    "enableTelemetry": true,
    "thirdpartyIntegration": {},
    "toolchainManager": {
    "indexURL": null,
    "installDirectory": null
    },
    "nrfutil": {
    "home": null
    },
    "defaultOpenAction": "ask",
    "terminalProfile": {
    "shell": null
    }
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    },
    "marus25.cortex-debug": {
    "variableUseNaturalFormat": true,
    "liveWatchRefreshRate": "300",
    "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,
    "dbgServerLogfile": null
    }
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2025.4.106",
    "path": "c:\\...\\nrf-connect-2025.4.106-win32-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2024.9.14",
    "path": "c:\\...\\nrf-terminal-2024.9.14",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2025.4.22",
    "path": "c:\\...\\nrf-devicetree-2025.4.22",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2025.4.26",
    "path": "c:\\...\\nrf-kconfig-2025.4.26",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.12.1",
    "ms-vscode.cpptools": "1.24.5",
    "ms-vscode.js-debug": "1.97.1",
    "ms-vscode.js-debug-companion": "1.1.3",
    "ms-vscode.vscode-js-profile-table": "1.0.10",
    "actboy168.tasks": "0.16.1",
    "bbenoist.QML": "1.0.0",
    "cschlosser.doxdocgen": "1.4.0",
    "dan-c-underwood.arm": "1.7.4",
    "eamodio.gitlens": "17.0.3",
    "GitHub.copilot": "1.303.0",
    "GitHub.copilot-chat": "0.26.6",
    "hediet.vscode-drawio": "1.9.0",
    "jeff-hykin.better-cpp-syntax": "1.27.1",
    "matangover.mypy": "0.4.2",
    "mcu-debug.debug-tracker-vscode": "0.0.15",
    "mcu-debug.memory-view": "0.0.25",
    "mcu-debug.peripheral-viewer": "1.4.6",
    "mcu-debug.rtos-views": "0.0.7",
    "ms-python.debugpy": "2025.6.0",
    "ms-python.python": "2025.4.0",
    "ms-python.vscode-pylance": "2025.4.1",
    "ms-vscode.cmake-tools": "1.20.53",
    "ms-vscode.cpptools-extension-pack": "1.3.1",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.hexeditor": "1.11.1",
    "ms-vscode.vscode-serial-monitor": "0.13.1",
    "sh Chinese (Simplified) Language Pack for Visual Studio Code": "1.99.2025042309",
    "shd101wyy.markdown-preview-enhanced": "0.8.18",
    "SteveBushResearch.BuildOutputColorizer": "0.1.8",
    "STMicroelectronics.stm32-vscode-extension": "2.1.1",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17",
    "usernamehw.errorlens": "3.25.0",
    "ZixuanWang.linkerscript": "1.0.4"
    }
    }
    }

  • Hi, 

    1) Sometimes the project doesn't load at all

    You can try to manually add your application to the workspace. See the How to work with multiple applications doc.

    2) Build configuration is missing

    Check this post

    3) Build error with west

    What is the command you are using to build? Do you build with '--pristine'? Could you provide the completed build log? Please upload via Toolbar -> insert -> file (or code).

    -Amanda H.

  • The problem was that I had the CMake extension installed in VS Code, after disabling it everything works.

Related