Cannot compile after update nRF Connect for VS Code to v2023.4.148

I can no longer compile my projects after updating extension "nRF Connect for VS Code" to v2023.4.148 today.
Up to v2023.2.56 it worked fine!

From version v2023.4.148 comes:
CMake Error at D:/Nordic/v2.2.0/zephyr/cmake/modules/FindZephyr-sdk.cmake:56 (find_package):
Could not find a configuration file for package "Zephyr-sdk" that is
compatible with requested version "0.15".

The following configuration files were considered but not accepted:

D:/Nordic/toolchains/v2.1.3/opt/zephyr-sdk/cmake/Zephyr-sdkConfig.cmake, version: 0.14.1

Call Stack (most recent call first):
D:/Nordic/v2.2.0/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package)
D:/Nordic/v2.2.0/zephyr/cmake/modules/dts.cmake:8 (find_package)
D:/Nordic/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
D:/Nordic/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
D:/Nordic/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)

It might be interesting that I have several SDK versions installed (NCS 1.9.1, 2.0.2, 2.1.3, 2.2.0, 2.3.0).
I have my projects in a workspace with:
"nrf-connect.topdir": "${nrf-connect.sdk:2.1.3}",
"nrf-connect.toolchain.path": "${nrf-connect.toolchain:2.1.3}",

Apparently the new extension mixes v2.1.3 and v.2.2.0:
-- Found Python3: D:/Nordic/toolchains/v2.1.3/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: D:/Nordic/v2.2.0/zephyr/.cache
-- Zephyr version: 3.2.99 (D:/Nordic/v2.2.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")

Parents Reply Children
  • Yep, I have he same thing.

    Also, where are the corresponding toolchain paths?

    Just where you would expect it (C:\ncs\toolchains). You can also see the tool chain path in my previous screen shot. Everything is at the default path. I have no reason to put there anywhere else.

    Also, it would be easier if you share a support information too.

    I don't understand the question.

  • Here you can generate the support Information and send the log generated:

    -Priyanka

  • Here's the support info.

    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 https://devzone.nordicsemi.com/.
    
    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 10 Pro for Workstations",
        "osKernel": "10.0.19042",
        "vscode": "1.77.3",
        "electron": "19.1.11",
        "node": "v16.14.2"
      },
      "system": {
        "date": "2023-04-27T15:09:02.982Z",
        "vscodeRoot": "c:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:00:16",
        "osUptime": "43:26:38",
        "cpu": {
          "model": "Intel(R) Xeon(R) W-2123 CPU @ 3.60GHz",
          "speed": "3600 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.73 GB",
          "free": "5.17 GB"
        }
      },
      "workspace": {
        "name": "orbis (Workspace)",
        "workspaceFile": "c:\\720-0068-00\\trunk\\design_files\\F9160\\APP\\orbis.code-workspace",
        "folders": [
          "c:\\720-0068-00\\trunk\\design_files\\F9160\\APP"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2023.4.179",
            "path": "c:\\Users\\howard.rosenorn\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.4.179-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2023.4.15",
            "path": "c:\\Users\\howard.rosenorn\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.4.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2023.4.61",
            "path": "c:\\Users\\howard.rosenorn\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.4.61",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2023.4.17",
            "path": "c:\\Users\\howard.rosenorn\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.4.17",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": "1.10.0",
          "ms-vscode.cpptools": "1.14.5",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
          "ms-vscode.js-debug": "1.77.2",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.vscode-js-profile-table": "1.0.3",
          "cschlosser.doxdocgen": "1.4.0",
          "dbaeumer.vscode-eslint": "2.4.0",
          "jeff-hykin.better-cpp-syntax": "1.17.2",
          "mcu-debug.debug-tracker-vscode": "0.0.15",
          "mcu-debug.memory-view": "0.0.20",
          "mcu-debug.rtos-views": "0.0.6",
          "ms-python.isort": "2022.8.0",
          "ms-python.python": "2023.6.1",
          "ms-python.vscode-pylance": "2023.4.40",
          "ms-toolsai.jupyter": "2023.3.1201040234",
          "ms-toolsai.jupyter-keymap": "1.1.0",
          "ms-toolsai.jupyter-renderers": "1.0.15",
          "ms-toolsai.vscode-jupyter-cell-tags": "0.1.8",
          "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
          "ms-vscode-remote.remote-wsl": "0.77.0",
          "ms-vscode.cpptools-extension-pack": "1.3.0",
          "ms-vscode.cpptools-themes": "2.0.0",
          "redhat.java": "1.18.0",
          "ritwickdey.LiveServer": "5.7.9",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "VisualStudioExptTeam.intellicode-api-usage-examples": "0.2.7",
          "VisualStudioExptTeam.vscodeintellicode": "1.2.30",
          "vscjava.vscode-java-debug": "0.50.0",
          "vscjava.vscode-java-dependency": "0.22.0",
          "vscjava.vscode-java-pack": "0.25.11",
          "vscjava.vscode-java-test": "0.38.2",
          "vscjava.vscode-maven": "0.41.0"
        }
      },
      "tools": {
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.15.2",
        "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.80c",
        "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.16.0",
        "nrfutil": "Not found",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\python.exe": "3.8.2",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\gperf.exe": "3.1",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\gn.exe": "2082",
        "c:\\ncs\\toolchains\\v2.3.0\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "gdbPath": "c:\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
      },
      "sdks": [],
      "toolchains": [],
      "connectedDevices": [
        {
          "serialNumber": "504403659"
        }
      ],
      "deviceProvider": "nrfjprog",
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "c:\\ncs\\v2.3.0",
          "toolchain": {
            "path": "c:\\ncs\\toolchains\\v2.3.0"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig",
            "executeInDefaultShell": false
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": false,
          "taskBindings": {},
          "debugging": {
            "backend": "nRF Debug",
            "flash": true,
            "bindings": {}
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfjprog"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character",
          "scrollBack": 10000
        },
        "marus25.cortex-debug": {
          "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,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "west",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\howard.rosenorn",
          "HOMEDRIVE": "Z:",
          "HOMEPATH": "\\",
          "Path": "c:\\ncs\\toolchains\\v2.3.0\\mingw64\\bin;c:\\ncs\\toolchains\\v2.3.0\\mingw64\\libexec\\git-core;c:\\ncs\\toolchains\\v2.3.0\\opt\\bin;c:\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.3.0\\arm-zephyr-eabi\\bin;c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Scripts;C:\\Python27\\Lib\\site-packages\\PyQt4;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Interactive Intelligence\\ININ Trace Initialization\\;C:\\Program Files (x86)\\Interactive Intelligence\\ICUserApps\\;C:\\Program Files\\Interactive Intelligence\\ICUserApps\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Python27;C:\\Python27\\DLLs;C:\\Python27\\Scripts;C:\\Python27\\gnuplot\\binary;C:\\Program Files (x86)\\pythonxy\\SciTE-3.5.1-4;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\CMake\\bin;C:\\Python27\\Lib\\site-packages\\vtk;C:\\Python27\\Lib\\site-packages\\osgeo;C:\\Program Files (x86)\\pythonxy\\console;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\howard.rosenorn\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\apache-maven-3.6.1\\apache-maven\\src\\bin;C:\\Users\\howard.rosenorn\\AppData\\Roaming\\npm;C:\\apache-ant\\bin;",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "c:\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk",
          "PYTHONPATH": "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin;c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Lib;c:\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\ncs\\toolchains\\v2.3.0\\opt\\bin"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\howard.rosenorn",
          "HOMEDRIVE": "Z:",
          "HOMEPATH": "\\",
          "Path": "C:\\Python27\\Lib\\site-packages\\PyQt4;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Interactive Intelligence\\ININ Trace Initialization\\;C:\\Program Files (x86)\\Interactive Intelligence\\ICUserApps\\;C:\\Program Files\\Interactive Intelligence\\ICUserApps\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Python27;C:\\Python27\\DLLs;C:\\Python27\\Scripts;C:\\Python27\\gnuplot\\binary;C:\\Program Files (x86)\\pythonxy\\SciTE-3.5.1-4;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\CMake\\bin;C:\\Python27\\Lib\\site-packages\\vtk;C:\\Python27\\Lib\\site-packages\\osgeo;C:\\Program Files (x86)\\pythonxy\\console;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\howard.rosenorn\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\apache-maven-3.6.1\\apache-maven\\src\\bin;C:\\Users\\howard.rosenorn\\AppData\\Roaming\\npm;C:\\apache-ant\\bin;",
          "PATH": "C:\\Python27\\Lib\\site-packages\\PyQt4;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Interactive Intelligence\\ININ Trace Initialization\\;C:\\Program Files (x86)\\Interactive Intelligence\\ICUserApps\\;C:\\Program Files\\Interactive Intelligence\\ICUserApps\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Python27;C:\\Python27\\DLLs;C:\\Python27\\Scripts;C:\\Python27\\gnuplot\\binary;C:\\Program Files (x86)\\pythonxy\\SciTE-3.5.1-4;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\CMake\\bin;C:\\Python27\\Lib\\site-packages\\vtk;C:\\Python27\\Lib\\site-packages\\osgeo;C:\\Program Files (x86)\\pythonxy\\console;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Python\\Launcher\\;C:\\Users\\howard.rosenorn\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\howard.rosenorn\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\apache-maven-3.6.1\\apache-maven\\src\\bin;C:\\Users\\howard.rosenorn\\AppData\\Roaming\\npm;C:\\apache-ant\\bin;"
        },
        "toolchainPath": "c:\\ncs\\toolchains\\v2.3.0",
        "toolchainBinPath": "c:\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
        "toolchainVersion": "2.3.0"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

  • I would suggest you to keep your workspace path within c:/ncs similar to what your sdk and toolchain path is.

    -Priyanka

  • That's not a workable solution. Your tools shouldn't dictate where my workspace is and has been fine up until that last two updates. Why else does would nRF Connect for VS Code give me the options to select the SDK and toolchain?

Related