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
  • Hi,

    I had the same issue.
    A few years old project suddenly stopped working (same error). Just with other projects I have no issues.
    It could be due to new VSCode extensions or nrf SDKs, I did change/install some.

    The solution for me was to delete the "CMakeCache.txt" file, located at the root of my project.

    Attached is the problematic file.

    Regards,
    Andrej

    # This is the CMakeCache file.
    # For build in directory: c:/PROJEKTI/bluetooth
    # It was generated by CMake: C:/ST/STM32CubeCLT_1.15.1/CMake/bin/cmake.exe
    # You can edit this file to change values found and used by cmake.
    # If you do not want to change any of the values, simply exit the editor.
    # If you do want to change a value, simply edit, save, and exit the editor.
    # The syntax for the file is as follows:
    # KEY:TYPE=VALUE
    # KEY is the name of a variable in the cache.
    # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
    # VALUE is the current value for the KEY.
    
    ########################
    # EXTERNAL cache entries
    ########################
    
    //Application Binary Directory
    APPLICATION_BINARY_DIR:PATH=C:/PROJEKTI/bluetooth
    
    //Application Source Directory
    APPLICATION_SOURCE_DIR:PATH=C:/PROJEKTI/bluetooth
    
    //Path to a program.
    CCACHE_FOUND:FILEPATH=CCACHE_FOUND-NOTFOUND
    
    //Value Computed by CMake.
    CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=C:/PROJEKTI/bluetooth/CMakeFiles/pkgRedirects
    
    //Value Computed by CMake
    CMAKE_PROJECT_DESCRIPTION:STATIC=
    
    //Value Computed by CMake
    CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
    
    //Value Computed by CMake
    CMAKE_PROJECT_NAME:STATIC=central_uart
    
    //NCS Toolchain DTC
    DTC:FILEPATH=C:/ncs/toolchains/v2.3.0/opt/bin/dtc.exe
    
    //NCS Toolchain Git
    GIT_EXECUTABLE:FILEPATH=C:/ncs/toolchains/v2.3.0/bin/git.exe
    
    //NCS GNU ARM emb path
    GNUARMEMB_TOOLCHAIN_PATH:PATH=C:/ncs/toolchains/v2.3.0/opt
    
    //NCS Toolchain gperf
    GPERF:FILEPATH=C:/ncs/toolchains/v2.3.0/opt/bin/gperf.exe
    
    //The directory containing a CMake configuration file for NcsToolchain.
    NcsToolchain_DIR:PATH=C:/ncs/toolchains/v2.3.0/cmake
    
    //NCS Toolchain protoc
    PROTOBUF_PROTOC_EXECUTABLE:STRING=C:/ST/STM32CubeCLT_1.15.1/CMake/bin/cmake.exe;-E;env;PATH=C:\ncs\toolchains\v2.3.0\opt\bin\;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:\Windows\system32\;C:\Windows\;C:\Windows\System32\Wbem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd\;C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\dotnet\;C:\Program Files\trice_windows_amd64\;C:\Program Files\CMake\bin\;C:\Program Files\SEGGER\JLink\;C:\Program Files\protoc-25.2-win64\;C:\Program Files\protoc-25.2-win64\bin\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\PuTTY\;C:\Program Files\TortoiseGit\bin\;C:\Users\Andrej\.cargo\bin\;C:\Users\Andrej\AppData\Local\Microsoft\WindowsApps\;C:\Users\Andrej\.dotnet\tools\;C:\Users\Andrej\AppData\Local\Programs\Python\Python311\Scripts\;C:\Program Files\SEGGER\JLink\;C:\Users\Andrej\AppData\Local\Programs\Microsoft VS Code\bin;C:/ncs/toolchains/v2.3.0/opt/nanopb/generator-bin/protoc.exe
    
    //NCS Toolchain protoc
    PROTOC:STRING=C:/ST/STM32CubeCLT_1.15.1/CMake/bin/cmake.exe;-E;env;PATH=C:\ncs\toolchains\v2.3.0\opt\bin\;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:\Windows\system32\;C:\Windows\;C:\Windows\System32\Wbem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd\;C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\dotnet\;C:\Program Files\trice_windows_amd64\;C:\Program Files\CMake\bin\;C:\Program Files\SEGGER\JLink\;C:\Program Files\protoc-25.2-win64\;C:\Program Files\protoc-25.2-win64\bin\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\PuTTY\;C:\Program Files\TortoiseGit\bin\;C:\Users\Andrej\.cargo\bin\;C:\Users\Andrej\AppData\Local\Microsoft\WindowsApps\;C:\Users\Andrej\.dotnet\tools\;C:\Users\Andrej\AppData\Local\Programs\Python\Python311\Scripts\;C:\Program Files\SEGGER\JLink\;C:\Users\Andrej\AppData\Local\Programs\Microsoft VS Code\bin;C:/ncs/toolchains/v2.3.0/opt/nanopb/generator-bin/protoc.exe
    
    //NCS Toolchain Python
    PYTHON_EXECUTABLE:FILEPATH=C:/ncs/toolchains/v2.3.0/opt/bin/python.exe
    
    //NCS Toolchain Python
    PYTHON_PREFER:FILEPATH=C:/ncs/toolchains/v2.3.0/opt/bin/python.exe
    
    //Path to a program.
    PYTHON_PREFER_EXECUTABLE:FILEPATH=C:/ncs/toolchains/v2.3.0/opt/bin/python.exe
    
    //NCS Toolchain Python
    Python3_EXECUTABLE:FILEPATH=C:/ncs/toolchains/v2.3.0/opt/bin/python.exe
    
    //Zephyr base
    ZEPHYR_BASE:PATH=C:/ncs/v2.3.0/zephyr
    
    //NCS Toolchain Variant
    ZEPHYR_TOOLCHAIN_VARIANT:STRING=zephyr
    
    //The directory containing a CMake configuration file for ZephyrBuildConfiguration.
    ZephyrBuildConfiguration_DIR:PATH=C:/ncs/v2.3.0/nrf/share/zephyrbuild-package/cmake
    
    //The directory containing a CMake configuration file for Zephyr.
    Zephyr_DIR:PATH=C:/ncs/v2.3.0/zephyr/share/zephyr-package/cmake
    
    //Value Computed by CMake
    central_uart_BINARY_DIR:STATIC=C:/PROJEKTI/bluetooth
    
    //Value Computed by CMake
    central_uart_IS_TOP_LEVEL:STATIC=ON
    
    //Value Computed by CMake
    central_uart_SOURCE_DIR:STATIC=C:/PROJEKTI/bluetooth
    
    
    ########################
    # INTERNAL cache entries
    ########################
    
    //This is the directory where this CMakeCache.txt was created
    CMAKE_CACHEFILE_DIR:INTERNAL=c:/PROJEKTI/bluetooth
    //Major version of cmake used to create the current loaded cache
    CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
    //Minor version of cmake used to create the current loaded cache
    CMAKE_CACHE_MINOR_VERSION:INTERNAL=28
    //Patch version of cmake used to create the current loaded cache
    CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
    //Path to CMake executable.
    CMAKE_COMMAND:INTERNAL=C:/ST/STM32CubeCLT_1.15.1/CMake/bin/cmake.exe
    //Path to cpack program executable.
    CMAKE_CPACK_COMMAND:INTERNAL=C:/ST/STM32CubeCLT_1.15.1/CMake/bin/cpack.exe
    //Path to ctest program executable.
    CMAKE_CTEST_COMMAND:INTERNAL=C:/ST/STM32CubeCLT_1.15.1/CMake/bin/ctest.exe
    //Path to cache edit program executable.
    CMAKE_EDIT_COMMAND:INTERNAL=C:/ST/STM32CubeCLT_1.15.1/CMake/bin/cmake-gui.exe
    //Name of external makefile project generator.
    CMAKE_EXTRA_GENERATOR:INTERNAL=
    //Name of generator.
    CMAKE_GENERATOR:INTERNAL=Ninja
    //Generator instance identifier.
    CMAKE_GENERATOR_INSTANCE:INTERNAL=
    //Name of generator platform.
    CMAKE_GENERATOR_PLATFORM:INTERNAL=
    //Name of generator toolset.
    CMAKE_GENERATOR_TOOLSET:INTERNAL=
    //Source directory with the top level CMakeLists.txt file for this
    // project
    CMAKE_HOME_DIRECTORY:INTERNAL=C:/PROJEKTI/bluetooth
    //NCS Toolchain ninja
    CMAKE_MAKE_PROGRAM:INTERNAL=C:/ncs/toolchains/v2.3.0/opt/bin/ninja.exe
    //number of local generators
    CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
    //Platform information initialized
    CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
    //Path to CMake installation.
    CMAKE_ROOT:INTERNAL=C:/ST/STM32CubeCLT_1.15.1/CMake/share/cmake-3.28
    //Details about finding Python3
    FIND_PACKAGE_MESSAGE_DETAILS_Python3:INTERNAL=[C:/ncs/toolchains/v2.3.0/opt/bin/python.exe][cfound components: Interpreter ][v3.8.2(3.8)]
    //West
    WEST:INTERNAL=C:/ncs/toolchains/v2.3.0/opt/bin/python.exe;-m;west
    //Compiler reason failure
    _Python3_Compiler_REASON_FAILURE:INTERNAL=
    //Development reason failure
    _Python3_Development_REASON_FAILURE:INTERNAL=
    _Python3_EXECUTABLE:INTERNAL=C:/ncs/toolchains/v2.3.0/opt/bin/python.exe
    //Python3 Properties
    _Python3_INTERPRETER_PROPERTIES:INTERNAL=Python;3;8;2;64;;;;C:\ncs\toolchains\v2.3.0\opt\bin\Lib;C:\ncs\toolchains\v2.3.0\opt\bin\Lib;C:\ncs\toolchains\v2.3.0\opt\bin\Lib\site-packages;C:\ncs\toolchains\v2.3.0\opt\bin\Lib\site-packages
    _Python3_INTERPRETER_SIGNATURE:INTERNAL=8b7c78e020c60439cf421a6d2d544d81
    //NumPy reason failure
    _Python3_NumPy_REASON_FAILURE:INTERNAL=
    
    

  • Hi Andrej,

    I deleted the "CMakeCache.txt" and tried again, then the build and flash successfully. Maybe it needs to close and reopen the project.

    Although the same error occurs occasionally, it can successfully build and flash after multiple attempts.

    Thank you for your answer!

    Best regards,

    Liza

Reply Children
No Data
Related