Error when build configuration with vs code

Hi,

I am using VS code for nordic 9160dk, and when create a new application - copy a sample and choose the Blinky sample / Asset Tracker v2 application, and build configuration, then I got the 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.

But when I use the Hello World sample, build and flash runs successful. And I also build for Blinky sample successful occasionally. I tried to install the nRF Connect SDK again, but it doesn't work.

Best regards, 

Liza

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

{
"platform": {
"os": "win32",
"osVersion": "Windows 10 Pro",
"osKernel": "10.0.19045",
"vscode": "1.92.2",
"electron": "30.1.2",
"node": "v20.14.0"
},
"system": {
"date": "2024-08-20T04:07:09.932Z",
"vscodeRoot": "c:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\resources\\app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "01:13:43",
"osUptime": "833:04:30",
"cpu": "Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz"
},
"workspace": {
"name": "asset_tracker_v2",
"workspaceFile": null,
"folders": [
"c:\\asset_tracker_v2"
]
},
"sdks": [
{
"version": "v2.6.0",
"path": "c:\\ncs\\v2.6.0"
}
],
"apps": [
{
"workspace": "c:\\asset_tracker_v2",
"uri": "c:\\asset_tracker_v2",
"buildConfigurations": []
}
],
"topdir": "c:\\ncs\\v2.6.0",
"workspaceState": "freestanding-ready",
"toolchains": [
{
"version": "2.6.0",
"path": "c:\\ncs\\toolchains\\cf2149caf2"
}
],
"connectedDevices": [],
"deviceProvider": "nrfutil",
"tools": {
"C:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5",
"C:\\APP\\nRF command line tools\\SEGGER\\JLink_V794e\\JLink.exe": "7.94e",
"C:\\APP\\nRF command line tools\\10.24.2\\bin\\nrfjprog.exe": "10.24.2",
"nrfutil": "Not found",
"C:\\ncs\\toolchains\\cf2149caf2\\opt\\bin\\cmake.exe": "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",
"gdbPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
},
"nrfutil": {
"nrfutil-device": {
"version": "2.0.0",
"binPath": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
},
"nrfutil-toolchain-manager": {
"version": "0.14.4",
"binPath": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
}
},
"environment": {
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "C:\\Users\\Liza",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\Liza",
"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\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\APP\\python 3.12;C:\\APP\\python 3.12\\Scripts\\;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\CMake\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\Ninja\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\GNU-tools-for-STM32\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STLink-gdb-server\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STM32CubeProgrammer\\bin;C:\\APP\\VMware\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\APP\\Anaconda\\Anaconda;C:\\APP\\Anaconda\\Anaconda\\Library\\mingw-w64\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\usr\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\bin;C:\\APP\\Anaconda\\Anaconda\\Scripts;C:\\APP\\Python\\Scripts\\;C:\\APP\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Arduino CLI\\;C:\\APP\\PuTTY\\PuTTY 0.80\\;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Git\\Git\\cmd;C:\\APP\\JAVA\\JDK22\\bin;C:\\APP\\JAVA\\JDK22\\jre\\bin;C:\\APP\\Android Studio\\SDK\\platform-tools;C:\\APP\\gcc-arm\\10 2021.10\\bin;C:\\APP\\OpenOCD\\OpenOCD-20231002-0.12.0\\bin;C:\\APP\\make\\GnuWin32\\bin;C:\\APP\\MinGW\\bin;C:\\APP\\cmake\\cmake-3.28.6\\bin;C:\\APP\\nRF command line tools\\10.24.2\\bin\\;C:\\APP\\wget-1.21.4-win32;C:\\APP\\MinGW\\msys\\1.0\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\APP\\GN tool;C:\\Users\\Liza\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\Liza\\AppData\\Local\\Microsoft\\WindowsApps;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Arduino;C:\\Users\\Liza\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.3\\tools;",
"ZEPHYR_BASE": "c:\\ncs\\v2.6.0\\zephyr",
"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": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "C:\\Users\\Liza",
"HOMEDRIVE": "C:",
"HOMEPATH": "\\Users\\Liza",
"Path": "c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.18.2\\res\\tools\\win32\\unify_builder;C:\\Users\\Liza\\.eide\\bin\\builder\\utils;C:\\Users\\Liza\\.eide\\bin\\scripts;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.18.2\\res\\tools\\win32\\7z;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.18.2\\res\\tools\\win32\\utils;C:\\Users\\Liza\\.eide\\tools\\gcc_arm\\bin;C:\\Users\\Liza\\.eide\\tools\\jlink;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\st_cube_programer\\bin;C:\\Users\\Liza\\.eide\\bin\\builder\\msys\\bin;C:\\APP\\python 3.12;C:\\APP\\python 3.12\\Scripts\\;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\CMake\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\Ninja\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\GNU-tools-for-STM32\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STLink-gdb-server\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STM32CubeProgrammer\\bin;C:\\APP\\VMware\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\APP\\Anaconda\\Anaconda;C:\\APP\\Anaconda\\Anaconda\\Library\\mingw-w64\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\usr\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\bin;C:\\APP\\Anaconda\\Anaconda\\Scripts;C:\\APP\\Python\\Scripts\\;C:\\APP\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Arduino CLI\\;C:\\APP\\PuTTY\\PuTTY 0.80\\;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Git\\Git\\cmd;C:\\APP\\JAVA\\JDK22\\bin;C:\\APP\\JAVA\\JDK22\\jre\\bin;C:\\APP\\Android Studio\\SDK\\platform-tools;C:\\APP\\gcc-arm\\10 2021.10\\bin;C:\\APP\\OpenOCD\\OpenOCD-20231002-0.12.0\\bin;C:\\APP\\make\\GnuWin32\\bin;C:\\APP\\MinGW\\bin;C:\\APP\\cmake\\cmake-3.28.6\\bin;C:\\APP\\nRF command line tools\\10.24.2\\bin\\;C:\\APP\\wget-1.21.4-win32;C:\\APP\\MinGW\\msys\\1.0\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\APP\\GN tool;C:\\Users\\Liza\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\Liza\\AppData\\Local\\Microsoft\\WindowsApps;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Arduino;C:\\Users\\Liza\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.3\\tools;;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\dotnet",
"PATH": "c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.18.2\\res\\tools\\win32\\unify_builder;C:\\Users\\Liza\\.eide\\bin\\builder\\utils;C:\\Users\\Liza\\.eide\\bin\\scripts;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.18.2\\res\\tools\\win32\\7z;c:\\Users\\Liza\\.vscode\\extensions\\cl.eide-3.18.2\\res\\tools\\win32\\utils;C:\\Users\\Liza\\.eide\\tools\\gcc_arm\\bin;C:\\Users\\Liza\\.eide\\tools\\jlink;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\openocd_7a1adfbec_mingw32\\bin;C:\\Users\\Liza\\.eide\\tools\\st_cube_programer\\bin;C:\\Users\\Liza\\.eide\\bin\\builder\\msys\\bin;C:\\APP\\python 3.12;C:\\APP\\python 3.12\\Scripts\\;C:\\Program Files (x86)\\STMicroelectronics\\stlink_server;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\CMake\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\Ninja\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\GNU-tools-for-STM32\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STLink-gdb-server\\bin;C:\\APP\\STM32CubeCLT\\STM32CubeCLT_1.16.0\\STM32CubeProgrammer\\bin;C:\\APP\\VMware\\bin\\;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\APP\\Anaconda\\Anaconda;C:\\APP\\Anaconda\\Anaconda\\Library\\mingw-w64\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\usr\\bin;C:\\APP\\Anaconda\\Anaconda\\Library\\bin;C:\\APP\\Anaconda\\Anaconda\\Scripts;C:\\APP\\Python\\Scripts\\;C:\\APP\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Arduino CLI\\;C:\\APP\\PuTTY\\PuTTY 0.80\\;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Git\\Git\\cmd;C:\\APP\\JAVA\\JDK22\\bin;C:\\APP\\JAVA\\JDK22\\jre\\bin;C:\\APP\\Android Studio\\SDK\\platform-tools;C:\\APP\\gcc-arm\\10 2021.10\\bin;C:\\APP\\OpenOCD\\OpenOCD-20231002-0.12.0\\bin;C:\\APP\\make\\GnuWin32\\bin;C:\\APP\\MinGW\\bin;C:\\APP\\cmake\\cmake-3.28.6\\bin;C:\\APP\\nRF command line tools\\10.24.2\\bin\\;C:\\APP\\wget-1.21.4-win32;C:\\APP\\MinGW\\msys\\1.0\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\APP\\GN tool;C:\\Users\\Liza\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\Liza\\AppData\\Local\\Microsoft\\WindowsApps;C:\\APP\\VS Code\\VS Code\\Microsoft VS Code\\bin;C:\\APP\\Arduino;C:\\Users\\Liza\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.3\\tools;;C:\\Program Files\\dotnet;C:\\Program Files (x86)\\dotnet",
"ZEPHYR_BASE": "C:\\ncs\\zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "C:\\ncs\\toolchains\\cf2149caf2\\opt",
"ZEPHYR_TOOLCHAIN_VARIANT": "C:\\ncs\\zephyr\\cmake\\toolchain\\gnuarmemb"
},
"toolchainPath": "c:\\ncs\\toolchains\\cf2149caf2",
"toolchainBinPath": "c:\\ncs\\toolchains\\cf2149caf2\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
"toolchainVersion": "2.6.0"
},
"terminal": {
"shell": "C:/APP/Git/Git/bin/bash.exe",
"defaultProfile": null
},
"config": {
"nordic-semiconductor.nrf-connect": {
"topdir": "",
"toolchain": {
"path": ""
},
"ozonePath": "",
"applications": [],
"applicationOptions": {},
"kconfig": {
"interface": "kconfig"
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"taskBindings": {},
"buildTerminal": {
"condensedProgress": true
},
"debugging": {
"flash": true,
"bindings": {},
"justMyCode": true
},
"activeAppFollowActiveEditor": true,
"deviceProvider": "",
"flash": {
"softreset": false,
"erase": false,
"recover": false
},
"enableTelemetry": true,
"thirdpartyIntegration": {},
"toolchainManager": {
"indexURL": null,
"installDirectory": null
},
"nrfutil": {
"home": null
},
"defaultOpenAction": "ask"
},
"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": "2024.7.13",
"path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.7.13-win32-x64",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2024.3.15",
"path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.3.15",
"isActive": true
},
"nordic-semiconductor.nrf-devicetree": {
"version": "2024.6.20",
"path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.6.20",
"isActive": true
},
"nordic-semiconductor.nrf-kconfig": {
"version": "2024.6.20",
"path": "c:\\Users\\Liza\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.6.20",
"isActive": true
}
},
"external": {
"marus25.cortex-debug": "1.12.1",
"ms-vscode.cpptools": "1.21.6",
"ms-vscode.js-debug": "1.92.0",
"ms-vscode.js-debug-companion": "1.1.3",
"ms-vscode.vscode-js-profile-table": "1.0.9",
"alefragnani.project-manager": "12.8.0",
"cl.eide": "3.18.2",
"cl.keil-assistant": "1.7.0",
"cschlosser.doxdocgen": "1.4.0",
"dan-c-underwood.arm": "1.7.4",
"DanielSanMedium.dscodegpt": "3.4.59",
"formulahendry.code-runner": "0.12.2",
"GitHub.remotehub": "0.62.0",
"hars.CppSnippets": "0.0.15",
"IBM.output-colorizer": "0.1.2",
"jeff-hykin.better-cpp-syntax": "1.27.1",
"keroc.hex-fmt": "1.0.0",
"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",
"mechatroner.rainbow-csv": "3.12.0",
"MS-CEINTL.vscode-language-pack-zh-hans": "1.92.2024081409",
"ms-vscode.azure-repos": "0.38.0",
"ms-vscode.cmake-tools": "1.18.44",
"ms-vscode.cpptools-extension-pack": "1.3.0",
"ms-vscode.cpptools-themes": "2.0.0",
"ms-vscode.hexeditor": "1.10.0",
"ms-vscode.makefile-tools": "0.10.26",
"ms-vscode.remote-repositories": "0.40.0",
"ms-vscode.vscode-serial-monitor": "0.12.0",
"platformio.platformio-ide": "3.3.3",
"redhat.vscode-yaml": "1.15.0",
"STMicroelectronics.stm32-vscode-extension": "2.1.0",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17",
"vsciot-vscode.vscode-arduino": "0.7.0",
"xiaoyongdong.srecord": "0.0.5",
"ZixuanWang.linkerscript": "1.0.4"
}
}
}

Parents Reply Children
No Data
Related