nRF Connect Extension for VSCode does not respect workspace setting "nrf-connect.toolchain.path":"PATH"

Windows 11
VSCode 1.93.1
nRF Connect for VS Code Extension Pack v2024.9.5


I'm already working with multiple Zephyr development projects (not only Nordic modules) so I already have all Zephyr requirements set up and host tools installed etc. After reading the nRF Connect SDK documentation in particular this page docs.nordicsemi.com/.../installing.html my understanding was that I could use the tools already installed in my host system in conjunction with the nRF Connect Extension for VSCode. Following Nordiç's nomenclature I have a workspace project (not free-standing) so I expected to be able to use the VSCode extension seamlessly provided that:

- VSCode is configured with "nrf-connect.toolchain.path": "PATH" (in my case that is in .vscode/settings.json)

- git >= 2.37, Python >= 3.9, CMake >= 3.20, Ninja >= 1.10 and DTC >= 1.5 are in the host system PATH

- Zephyr SDK 0.16.5.-1 is available and ZEPHYR_SDK_INSTALL_DIR env var is correctly set in the host system

- I provide a python virtual env properly configured (which I do) and from which I can invoke West to update the workspace and build successfully (which I also do)

- I ensure the python environment is activated on VSCode

Yet to my surprise, after setting `"nrf-connect.toolchain.path": "PATH"` the extension still selects the latest toolchain it can find (in my case 2.7.0) and loads the environment.json of the toolchain to alter the PATH, ZEPHYR_SDK_INSTALL_DIR, ZEPHYR_TOOLCHAIN_VARIANT, ZEPHYR_BASE and PYTHONPATH env vars. This is in direct contradiction with the documentation. In particular, because the toolchain prepends to the PATH, all toolchain tools effectively override my host system tools which defeats the purpose of having `"nrf-connect.toolchain.path": "PATH"` as an option.

If I remove the nRF toolchain (which is not convenient but acceptable) then rRF Connect Extension does not fully work in the sense that it reports a toolchain could not be found and does not to display the APPLICATIONS and ACTIONS panels anymore. Curiously, it still overrides some env vars for example ZEPHYR_BASE is set to "${workspaceFolder}/zephyr" even when I have it pre-defined in the host system to point to the correct place (which for example in one of my projects is ${workspaceFolder}/.external/zephyr). Also trying to set it in "nrf-connect.west.env" has no effect. Honestly I see multiple problems here:

1) "nrf-connect.toolchain.path" should behave as implied by the documentation, so when set to PATH the nRF Connect Extension MUST NOT try to load a toolchain at all and instead indicate in the "WEALCOME" panel and in the notification icon that the toolchain is "Host system", "User env" or any such. In this case it is the user's reponsability to set up the environment correctly. If the user cannot do that they should not have used the PATH option in the first place.

2) Env vars set in "nrf-connect.west.env" MUST be applied LAST so they can override ANY env var even those set by nRF Connect after loading the toolchain environments.json. That is the whole point of having a workspace setting for env vars after all - that is to empower the user to make adjustments because they have more information and know better about theirs projects needs then the extension (or the developer of the extension) ever could. Again, if the user does not know why or how to set up env vars they should leave the setting alone. What you should not do is surprise a user who changes the setting by overriding it and make it look like the setting ignores some vars but not others.

3) If there is no toolchain installed nRF Connect MUST NOT change ANY env var. Do not try to guess the ZEPHYR_BASE or the PYTHONPATH or whatever. You are simply going to get it wrong. Stop trying to outsmart your users. Don't obfuscate; educate.


Note that the issue does not prevent me from building the project manually. If I open a Windows CMD terminal or a VSCode CMD terminal I can build all right using west build. It is just that it renders the nRF Connect extension useless. My only option to use the extension currently seems to be to bite the bullet, set "nrf-connect.toolchain.path": "${nrf-connect.toolchain:2.7.0}" and work around known bugs in those outdated tools.

Honestly, Nordic is not doing anyone a favor by imposing outdated tools to developers. Specially when they are all easily available in multiple package forms and channels.


More information that may help you see the issue:

----------------------------------------------------
.vscode/settings.json
----------------------------------------------------

{
  "files.associations": {
    "*.cmake.in": "cmake",
    "*.py.in": "python",
    "*.h.in": "c",
    "*.h": "c",
    "*.hpp": "cpp",
    "*.hpp.in": "cpp",
    "*.hxx": "cpp",
    "*.hxx.in": "cpp",
    "*.cpp": "cpp",
    "*.cxx": "cpp",
    "config": "ini"
  },
  // Disable terminal session persistence to avoid problems with environment configuration changes not applied after
  // re-opening the project
  "terminal.integrated.persistentSessionReviveProcess": "never",
  "terminal.integrated.enablePersistentSessions": false,
  // Automatically activate the Python environment in all terminals if one is found in the project root. This option
  // should default to true but we have it explicitly set to clear any doubts. If VSCode does not seem to pick up the
  // correct Python environment you may have to enter Ctrl+Shift+P and run 'Python: Select Interpreter' at least once to
  // select the correct Python interpreter and VSCode should get it right from there on even if you erase the venv and
  // re-create.
  // See https://code.visualstudio.com/docs/python/environments#_working-with-python-interpreters
  "python.terminal.activateEnvironment": true,
  // Disable C/C++ Extension buttons meant for native builds. They do not integrate well with nRF Connect or the Zephyr
  // development environment and only contribute to confuse the developer.
  "C_Cpp.debugShortcut": false,
  "debug.showInStatusBar": "never",
  // These are environment variables set when a new nRF Connect terminal instance is created. This is the same
  // environment the extension uses to execute commands and invoke West.
  "nrf-connect.west.env": {
    "$base": "terminal",
    "PROMPT": "(nRF Connect) $P$G",
    "PS1": "(nRF Connect) \\u@\\h:\\w\\$"
  },
  // This is needed even though Zephyr implicitly adds all module folders as board roots including our 'iris' module
  // in firmware/zephyr. Otherwise, the nRF Connect Extension does not display our custom boards in the 'Edit
  // Configuration' dialog most likely because it scans the board root(s) it knows about instead of relying on West
  // to list the boards available.
  "nrf-connect.boardRoots": [
    "firmware/zephyr"
  ],
  // This is the list of applications that appear in the nRF Connect panel under the APPLICATIONS section.
  "nrf-connect.applications": [
    "${workspaceFolder}/firmware/zephyr/apps/empty",
    "${workspaceFolder}/.external/zephyr/samples/basic/blinky",
    "${workspaceFolder}/.external/zephyr/samples/hello_world"
  ],
  // Using PATH to use the host system environment so we can rely on our own tools (and our own python environment)
  // instead of the old executables shipped by the nRF Toolchain. Nordic is not doing anyone favor by imposing
  // particularly old versions for commonly available tools such as git, python, CMake and Ninja. And for the
  // Zephyr-SDK, unpacking a tarball in a folder and setting the ZEPHYR_SDK_INSTALL_DIR env var is trivial enough.
  // See https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/settings.html#nrf-connecttoolchainpath
  // NOTE: This setting does not support macro expansion.
  // See https://devzone.nordicsemi.com/f/nordic-q-a/110507/issue-with-toolchain-selection-in-nrf-connect-vs-code
  // NOTE: We still need to have at least one nRF Toolchain installed to safisty the nRF Connect Extension
  "nrf-connect.toolchain.path": "PATH"
}

----------------------------------------------------
Windows CMD terminal env:
----------------------------------------------------
Microsoft Windows [Version 10.0.22631.4169]
(c) Microsoft Corporation. All rights reserved.

C:\Users\nicolas>set
ALLUSERSPROFILE=C:\ProgramData
ANDROID_NDK=C:\Portable\Toolchains\android-ndk-r26c
APPDATA=C:\Users\nicolas\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=133721716689131479
CLion=C:\Program Files\JetBrains\CLion\bin
CMAKE_GENERATOR=Ninja Multi-Config
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICOLAS-M15
ComSpec=C:\Windows\system32\cmd.exe
DOTNET_CLI_TELEMETRY_OPTOUT=1
DriverData=C:\Windows\System32\Drivers\DriverData
EFC_9384=1
GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
HOME=C:\Users\nicolas
HOMEDRIVE=C:
HOMEPATH=\Users\nicolas
LOCALAPPDATA=C:\Users\nicolas\AppData\Local
LOGONSERVER=\\NICOLAS-M15
NUMBER_OF_PROCESSORS=16
OneDrive=C:\Users\nicolas\OneDrive
OS=Windows_NT
Path=C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Python\Scripts\;C:\Python\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\doxygen\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Graphviz\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Cppcheck;C:\Users\nicolas\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\JetBrains\CLion\bin;C:\Users\nicolas\.dotnet\tools
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
POWERSHELL_TELEMETRY_OPTOUT=1
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=a502
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\nicolas\AppData\Local\Temp
TMP=C:\Users\nicolas\AppData\Local\Temp
USERDOMAIN=NICOLAS-M15
USERDOMAIN_ROAMINGPROFILE=NICOLAS-M15
USERNAME=nicolas
USERPROFILE=C:\Users\nicolas
windir=C:\Windows
ZEPHYR_SDK_INSTALL_DIR=C:\Portable\Toolchains\Zephyr
ZES_ENABLE_SYSMAN=1


----------------------------------------------------
VSCode CMD terminal env:
----------------------------------------------------
Microsoft Windows [Version 10.0.22631.4169]
(c) Microsoft Corporation. All rights reserved.

(.venv) C:\Dev\IRIS>set
ALLUSERSPROFILE=C:\ProgramData
ANDROID_NDK=C:\Portable\Toolchains\android-ndk-r26c
APPDATA=C:\Users\nicolas\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=133721716689131479
CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_24648_ENUMUZWAYZESBMCJ
CLion=C:\Program Files\JetBrains\CLion\bin
CMAKE_GENERATOR=Ninja Multi-Config
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICOLAS-M15
ComSpec=C:\Windows\system32\cmd.exe
DOTNET_CLI_TELEMETRY_OPTOUT=1
DriverData=C:\Windows\System32\Drivers\DriverData
EFC_9384=1
GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
HOME=C:\Users\nicolas
HOMEDRIVE=C:
HOMEPATH=\Users\nicolas
LOCALAPPDATA=C:\Users\nicolas\AppData\Local
LOGONSERVER=\\NICOLAS-M15
NUMBER_OF_PROCESSORS=16
OneDrive=C:\Users\nicolas\OneDrive
ORIGINAL_XDG_CURRENT_DESKTOP=undefined
OS=Windows_NT
Path=C:\Dev\IRIS\.venv\Scripts;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Python\Scripts\;C:\Python\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\doxygen\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Graphviz\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Cppcheck;C:\Users\nicolas\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\JetBrains\CLion\bin;C:\Users\nicolas\.dotnet\tools
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
POWERSHELL_TELEMETRY_OPTOUT=1
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=a502
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=(.venv) $P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\nicolas\AppData\Local\Temp
TMP=C:\Users\nicolas\AppData\Local\Temp
USERDOMAIN=NICOLAS-M15
USERDOMAIN_ROAMINGPROFILE=NICOLAS-M15
USERPROFILE=C:\Users\nicolas
windir=C:\Windows
ZEPHYR_BASE=C:\Dev\IRIS\.external\zephyr
ZEPHYR_SDK_INSTALL_DIR=C:\Portable\Toolchains\Zephyr
ZES_ENABLE_SYSMAN=1
TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.93.1
LANG=en_US.UTF-8
COLORTERM=truecolor
GIT_ASKPASS=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh
VSCODE_GIT_ASKPASS_NODE=C:\Program Files\Microsoft VS Code\Code.exe
VSCODE_GIT_ASKPASS_EXTRA_ARGS=
VSCODE_GIT_ASKPASS_MAIN=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js
VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-71a6b58bff-sock
ELECTRON_RUN_AS_NODE=1
VSCODE_ENV_REPLACE=ELECTRON_RUN_AS_NODE=1:PROMPT=(.venv) $P$G:VIRTUAL_ENV=C\x3a\Dev\IRIS\.venv:VIRTUAL_ENV_PROMPT=(.venv) :_OLD_VIRTUAL_PROMPT=$P$G
VSCODE_ENV_PREPEND=PATH=C\x3a\Dev\IRIS\.venv\Scripts;
VIRTUAL_ENV=C:\Dev\IRIS\.venv
VIRTUAL_ENV_PROMPT=(.venv)
_OLD_VIRTUAL_PROMPT=$P$G


----------------------------------------------------
VSCode nRF Connect terminal env
when no toolchain is installed
and settings.json contains "nrf-connect.toolchain.path": "PATH"
----------------------------------------------------
Microsoft Windows [Version 10.0.22631.4169]
(c) Microsoft Corporation. All rights reserved.

(.venv) C:\Dev\IRIS>set
ALLUSERSPROFILE=C:\ProgramData
ANDROID_NDK=C:\Portable\Toolchains\android-ndk-r26c
APPDATA=C:\Users\nicolas\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=133721716689131479
CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_24648_ENUMUZWAYZESBMCJ
CLion=C:\Program Files\JetBrains\CLion\bin
CMAKE_GENERATOR=Ninja Multi-Config
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICOLAS-M15
ComSpec=C:\Windows\system32\cmd.exe
DOTNET_CLI_TELEMETRY_OPTOUT=1
DriverData=C:\Windows\System32\Drivers\DriverData
EFC_9384=1
GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
HOME=C:\Users\nicolas
HOMEDRIVE=C:
HOMEPATH=\Users\nicolas
LOCALAPPDATA=C:\Users\nicolas\AppData\Local
LOGONSERVER=\\NICOLAS-M15
NUMBER_OF_PROCESSORS=16
OneDrive=C:\Users\nicolas\OneDrive
ORIGINAL_XDG_CURRENT_DESKTOP=undefined
OS=Windows_NT
Path=C:\Dev\IRIS\.venv\Scripts;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Python\Scripts\;C:\Python\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\doxygen\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Graphviz\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Cppcheck;C:\Users\nicolas\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\JetBrains\CLion\bin;C:\Users\nicolas\.dotnet\tools
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
POWERSHELL_TELEMETRY_OPTOUT=1
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=a502
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=(.venv) $P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\nicolas\AppData\Local\Temp
TMP=C:\Users\nicolas\AppData\Local\Temp
USERDOMAIN=NICOLAS-M15
USERDOMAIN_ROAMINGPROFILE=NICOLAS-M15
USERNAME=nicolas
USERPROFILE=C:\Users\nicolas
windir=C:\Windows
ZEPHYR_BASE=c:\Dev\IRIS\zephyr
ZEPHYR_SDK_INSTALL_DIR=C:\Portable\Toolchains\Zephyr
ZES_ENABLE_SYSMAN=1
CMAKE_EXPORT_COMPILE_COMMANDS=ON
ELECTRON_NO_ATTACH_CONSOLE=1
VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess
VSCODE_CLI=1
VSCODE_CODE_CACHE_PATH=C:\Users\nicolas\AppData\Roaming\Code\CachedData\38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
VSCODE_CRASH_REPORTER_PROCESS_TYPE=extensionHost
VSCODE_CWD=C:\Dev\IRIS
VSCODE_HANDLES_UNCAUGHT_ERRORS=true
VSCODE_IPC_HOOK=\\.\pipe\477de023-1.93.1-main-sock
VSCODE_L10N_BUNDLE_LOCATION=
VSCODE_NLS_CONFIG={"userLocale":"en-us","osLocale":"en-us","resolvedLanguage":"en","defaultMessagesFile":"C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\nls.messages.json","locale":"en-us","availableLanguages":{}}
VSCODE_PID=24648
PS1=(nRF Connect) \u@\h:\w\$
TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.93.1
LANG=en_US.UTF-8
COLORTERM=truecolor
GIT_ASKPASS=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh
VSCODE_GIT_ASKPASS_NODE=C:\Program Files\Microsoft VS Code\Code.exe
VSCODE_GIT_ASKPASS_EXTRA_ARGS=
VSCODE_GIT_ASKPASS_MAIN=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js
VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-71a6b58bff-sock
ELECTRON_RUN_AS_NODE=1
VSCODE_ENV_REPLACE=ELECTRON_RUN_AS_NODE=1:PROMPT=(.venv) $P$G:VIRTUAL_ENV=C\x3a\Dev\IRIS\.venv:VIRTUAL_ENV_PROMPT=(.venv) :_OLD_VIRTUAL_PROMPT=$P$G
VSCODE_ENV_PREPEND=PATH=C\x3a\Dev\IRIS\.venv\Scripts;
VIRTUAL_ENV=C:\Dev\IRIS\.venv
VIRTUAL_ENV_PROMPT=(.venv)
_OLD_VIRTUAL_PROMPT=$P$G


----------------------------------------------------
VSCode nRF Connect terminal env
when toolchain 2.7.0 is installed
and settings.json contains "nrf-connect.toolchain.path": "PATH"
----------------------------------------------------
Microsoft Windows [Version 10.0.22631.4169]
(c) Microsoft Corporation. All rights reserved.

(.venv) C:\Dev\IRIS>set
ALLUSERSPROFILE=C:\ProgramData
ANDROID_NDK=C:\Portable\Toolchains\android-ndk-r26c
APPDATA=C:\Users\nicolas\AppData\Roaming
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=133721716689131479
CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_24140_CRGEZGINSDNQTNIA
CLion=C:\Program Files\JetBrains\CLion\bin
CMAKE_GENERATOR=Ninja Multi-Config
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICOLAS-M15
ComSpec=C:\Windows\system32\cmd.exe
DOTNET_CLI_TELEMETRY_OPTOUT=1
DriverData=C:\Windows\System32\Drivers\DriverData
EFC_9384=1
GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
HOME=C:\Users\nicolas
HOMEDRIVE=C:
HOMEPATH=\Users\nicolas
LOCALAPPDATA=C:\Users\nicolas\AppData\Local
LOGONSERVER=\\NICOLAS-M15
NUMBER_OF_PROCESSORS=16
OneDrive=C:\Users\nicolas\OneDrive
ORIGINAL_XDG_CURRENT_DESKTOP=undefined
OS=Windows_NT
Path=C:\Dev\IRIS\.venv\Scripts;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:\Users\nicolas\.vscode\extensions\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\platform\nrfutil\lib\nrfutil-toolchain-manager;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Python\Scripts\;C:\Python\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\doxygen\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Graphviz\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\;C:\Program Files\Cppcheck;C:\Users\nicolas\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\JetBrains\CLion\bin;C:\Users\nicolas\.dotnet\tools
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
POWERSHELL_TELEMETRY_OPTOUT=1
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=a502
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\nicolas\AppData\Local\Temp
TMP=C:\Users\nicolas\AppData\Local\Temp
USERDOMAIN=NICOLAS-M15
USERDOMAIN_ROAMINGPROFILE=NICOLAS-M15
USERNAME=nicolas
USERPROFILE=C:\Users\nicolas
windir=C:\Windows
ZEPHYR_SDK_INSTALL_DIR=C:\ncs\toolchains\ce3b5ff664\opt\zephyr-sdk
ZES_ENABLE_SYSMAN=1
CMAKE_EXPORT_COMPILE_COMMANDS=ON
VSCODE_AMD_ENTRYPOINT=vs/workbench/api/node/extensionHostProcess
VSCODE_CODE_CACHE_PATH=C:\Users\nicolas\AppData\Roaming\Code\CachedData\38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
VSCODE_CRASH_REPORTER_PROCESS_TYPE=extensionHost
VSCODE_CWD=C:\Program Files\Microsoft VS Code
VSCODE_HANDLES_UNCAUGHT_ERRORS=true
VSCODE_IPC_HOOK=\\.\pipe\477de023-1.93.1-main-sock
VSCODE_L10N_BUNDLE_LOCATION=
VSCODE_NLS_CONFIG={"userLocale":"en-us","osLocale":"en-us","resolvedLanguage":"en","defaultMessagesFile":"C:\\Program Files\\Microsoft VS Code\\resources\\app\\out\\nls.messages.json","locale":"en-us","availableLanguages":{}}
VSCODE_PID=24140
PROMPT=(.venv) $P$G
PS1=(nRF Connect) \u@\h:\w\$
PYTHONPATH=C:\ncs\toolchains\ce3b5ff664\opt\bin;C:\ncs\toolchains\ce3b5ff664\opt\bin\Lib;C:\ncs\toolchains\ce3b5ff664\opt\bin\Lib\site-packages
ZEPHYR_TOOLCHAIN_VARIANT=zephyr
ZEPHYR_BASE=c:\Dev\IRIS\.external\zephyr
TERM_PROGRAM=vscode
TERM_PROGRAM_VERSION=1.93.1
LANG=en_US.UTF-8
COLORTERM=truecolor
GIT_ASKPASS=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh
VSCODE_GIT_ASKPASS_NODE=C:\Program Files\Microsoft VS Code\Code.exe
VSCODE_GIT_ASKPASS_EXTRA_ARGS=
VSCODE_GIT_ASKPASS_MAIN=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js
VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-71a6b58bff-sock
ELECTRON_RUN_AS_NODE=1
VSCODE_ENV_REPLACE=ELECTRON_RUN_AS_NODE=1:PROMPT=(.venv) $P$G:VIRTUAL_ENV=C\x3a\Dev\IRIS\.venv:VIRTUAL_ENV_PROMPT=(.venv) :_OLD_VIRTUAL_PROMPT=$P$G
VSCODE_ENV_PREPEND=PATH=C\x3a\Dev\IRIS\.venv\Scripts;
VIRTUAL_ENV=C:\Dev\IRIS\.venv
VIRTUAL_ENV_PROMPT=(.venv)
_OLD_VIRTUAL_PROMPT=$P$G

Parents
  • I just found a 4th problem:

    4) Passing -DNCS_TOOLCHAIN_VERSION=NONE to West has no effect at all on a multi-image sysbuild project because the sysbuild CMake instance does not relay the value of NCS_TOOLCHAIN_VERSION to the application CMake instance (or any other variable for that matter, only CMAKE_BUILD_TYPE and CMAKE_VERBOSE_MAKEFILE are effectively relayed) any other variable will be stored in a temporary sysbuild cache file that is loaded by the application CMake into a dummy target called sysbuild_cache using custom target properties so any variable value stored in it can only be retrieved using the zephyr_get function (as  in `zephyr_get(NFS_TOOLCHAIN_VERSION SYSBUILD GLOBAL)` which the NcsConfig.cmake in nrf/share/ncs-package/cmake is not doing.

    In fact the check in that file for for NCS_TOOLCHAIN_VERSION is probably wrong too. Most likely you wanted to test it as `if(NOT "${NCS_TOOLCHAIN_VERSION}" STREQUAL "")` instead of `if(NCS_TOOLCHAIN_VERSION)` so that  when NCS_TOOLCHAIN_VERSION=NONE then `NCS_TOOLCHAIN_MINIMUM_REQUIRED` gets set to NONE as well and the call to 
    `find_package(NcsToolchain` can be bypassed

     

  • Hi Nicolas,

    Would it be possible to attach the Support Information here?

    Ctrl+Shift+P -> Generate Support Information

    -Piyanka

  • This is what I got:

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.22631",
        "vscode": "1.94.0",
        "electron": "30.5.1",
        "node": "v20.16.0"
      },
      "system": {
        "date": "2024-10-04T16:20:06.141Z",
        "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:45:35",
        "osUptime": "234:54:11",
        "cpu": "Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz"
      },
      "workspace": {
        "name": "IRIS",
        "workspaceFile": null,
        "folders": [
          "c:\\Dev\\IRIS"
        ]
      },
      "sdks": [
        {
          "version": "v2.7.0",
          "path": "c:\\Dev\\IRIS"
        }
      ],
      "apps": [
        {
          "workspace": "c:\\Dev\\IRIS",
          "uri": "c:\\Dev\\IRIS\\.external\\zephyr\\samples\\basic\\blinky",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\Dev\\IRIS",
          "uri": "c:\\Dev\\IRIS\\firmware\\zephyr\\apps\\empty",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\Dev\\IRIS",
          "uri": "c:\\Dev\\IRIS\\.external\\zephyr\\samples\\hello_world",
          "buildConfigurations": []
        }
      ],
      "topdir": "c:\\Dev\\IRIS",
      "workspaceState": "workspace-ready",
      "toolchains": [
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        }
      ],
      "activeToolchain": {
        "type": "installation",
        "path": "c:\\ncs\\toolchains\\ce3b5ff664",
        "version": "2.7.0",
        "displayName": "nRF Connect SDK Toolchain v2.7.0"
      },
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5-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.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gn.exe": "2172",
        "C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.5.0",
          "binPath": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\nicolas",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\nicolas",
          "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:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Python\\Scripts\\;C:\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Cppcheck;C:\\Users\\nicolas\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files\\JetBrains\\CLion\\bin;C:\\Users\\nicolas\\.dotnet\\tools",
          "ZEPHYR_BASE": "c:\\Dev\\IRIS\\.external\\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\\nicolas",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\nicolas",
          "Path": "C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Python\\Scripts\\;C:\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Cppcheck;C:\\Users\\nicolas\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files\\JetBrains\\CLion\\bin;C:\\Users\\nicolas\\.dotnet\\tools",
          "PATH": "C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Python\\Scripts\\;C:\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Cppcheck;C:\\Users\\nicolas\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files\\JetBrains\\CLion\\bin;C:\\Users\\nicolas\\.dotnet\\tools",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\Portable\\Toolchains\\Zephyr"
        }
      },
      "terminal": {
        "defaultProfile": "Command Prompt"
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${workspaceFolder}/.external",
          "toolchain": {
            "path": "PATH"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/firmware/zephyr/apps/empty",
            "${workspaceFolder}/.external/zephyr/samples/basic/blinky",
            "${workspaceFolder}/.external/zephyr/samples/hello_world"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal",
              "PROMPT": "(nRF Connect) $P$G",
              "PS1": "(nRF Connect) \\u@\\h\\:\\w\\$"
            }
          },
          "boardRoots": [
            "firmware/zephyr"
          ],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfutil",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.9.87",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.9.26",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.9.26",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.9.20",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.9.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.21.6",
          "ms-vscode.js-debug": "1.94.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "EditorConfig.EditorConfig": "0.16.4",
          "josetr.cmake-language-support-vscode": "0.0.9",
          "ms-dotnettools.vscode-dotnet-runtime": "2.1.7",
          "ms-python.debugpy": "2024.10.0",
          "ms-python.python": "2024.16.0",
          "ms-vscode-remote.remote-wsl": "0.88.4",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "vscode-icons-team.vscode-icons": "12.9.0"
        }
      }
    }
    
    

Reply
  • This is what I got:

    {
      "platform": {
        "os": "win32",
        "osVersion": "Windows 11 Pro",
        "osKernel": "10.0.22631",
        "vscode": "1.94.0",
        "electron": "30.5.1",
        "node": "v20.16.0"
      },
      "system": {
        "date": "2024-10-04T16:20:06.141Z",
        "vscodeRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "00:45:35",
        "osUptime": "234:54:11",
        "cpu": "Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz"
      },
      "workspace": {
        "name": "IRIS",
        "workspaceFile": null,
        "folders": [
          "c:\\Dev\\IRIS"
        ]
      },
      "sdks": [
        {
          "version": "v2.7.0",
          "path": "c:\\Dev\\IRIS"
        }
      ],
      "apps": [
        {
          "workspace": "c:\\Dev\\IRIS",
          "uri": "c:\\Dev\\IRIS\\.external\\zephyr\\samples\\basic\\blinky",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\Dev\\IRIS",
          "uri": "c:\\Dev\\IRIS\\firmware\\zephyr\\apps\\empty",
          "buildConfigurations": []
        },
        {
          "workspace": "c:\\Dev\\IRIS",
          "uri": "c:\\Dev\\IRIS\\.external\\zephyr\\samples\\hello_world",
          "buildConfigurations": []
        }
      ],
      "topdir": "c:\\Dev\\IRIS",
      "workspaceState": "workspace-ready",
      "toolchains": [
        {
          "version": "2.7.0",
          "path": "c:\\ncs\\toolchains\\ce3b5ff664"
        }
      ],
      "activeToolchain": {
        "type": "installation",
        "path": "c:\\ncs\\toolchains\\ce3b5ff664",
        "version": "2.7.0",
        "displayName": "nRF Connect SDK Toolchain v2.7.0"
      },
      "connectedDevices": [],
      "deviceProvider": "nrfutil",
      "tools": {
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.16.5-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.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\cmake": "3.21.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\Scripts\\west.exe": "1.2.0",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\python.exe": "3.9.13",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\ninja.exe": "1.10.2",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gperf.exe": "3.1",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\dtc.exe": "1.4.7",
        "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\bin\\gn.exe": "2172",
        "C:\\ncs\\toolchains\\ce3b5ff664\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
        "arm-gdbPath": "c:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe",
        "riscv-gdbPath": "C:\\ncs\\toolchains\\ce3b5ff664\\opt\\zephyr-sdk\\riscv64-zephyr-elf\\bin\\riscv64-zephyr-elf-gdb.exe"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.5.0",
          "binPath": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.4",
          "binPath": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\bin\\nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "HOME": "C:\\Users\\nicolas",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\nicolas",
          "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:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64\\platform\\nrfutil\\lib\\nrfutil-toolchain-manager;C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Python\\Scripts\\;C:\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Cppcheck;C:\\Users\\nicolas\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files\\JetBrains\\CLion\\bin;C:\\Users\\nicolas\\.dotnet\\tools",
          "ZEPHYR_BASE": "c:\\Dev\\IRIS\\.external\\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\\nicolas",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\nicolas",
          "Path": "C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Python\\Scripts\\;C:\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Cppcheck;C:\\Users\\nicolas\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files\\JetBrains\\CLion\\bin;C:\\Users\\nicolas\\.dotnet\\tools",
          "PATH": "C:\\Program Files (x86)\\VMware\\VMware Workstation\\bin\\;C:\\Python\\Scripts\\;C:\\Python\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\doxygen\\bin;C:\\Program Files\\CMake\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\dotnet\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Program Files\\Cppcheck;C:\\Users\\nicolas\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files\\JetBrains\\CLion\\bin;C:\\Users\\nicolas\\.dotnet\\tools",
          "ZEPHYR_SDK_INSTALL_DIR": "C:\\Portable\\Toolchains\\Zephyr"
        }
      },
      "terminal": {
        "defaultProfile": "Command Prompt"
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${workspaceFolder}/.external",
          "toolchain": {
            "path": "PATH"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}/firmware/zephyr/apps/empty",
            "${workspaceFolder}/.external/zephyr/samples/basic/blinky",
            "${workspaceFolder}/.external/zephyr/samples/hello_world"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal",
              "PROMPT": "(nRF Connect) $P$G",
              "PS1": "(nRF Connect) \\u@\\h\\:\\w\\$"
            }
          },
          "boardRoots": [
            "firmware/zephyr"
          ],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {},
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "nrfutil",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": false,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.9.87",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2024.9.87-win32-x64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.9.14",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2024.9.14",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.9.26",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2024.9.26",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.9.20",
            "path": "c:\\Users\\nicolas\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2024.9.20",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.21.6",
          "ms-vscode.js-debug": "1.94.0",
          "ms-vscode.js-debug-companion": "1.1.3",
          "ms-vscode.vscode-js-profile-table": "1.0.10",
          "EditorConfig.EditorConfig": "0.16.4",
          "josetr.cmake-language-support-vscode": "0.0.9",
          "ms-dotnettools.vscode-dotnet-runtime": "2.1.7",
          "ms-python.debugpy": "2024.10.0",
          "ms-python.python": "2024.16.0",
          "ms-vscode-remote.remote-wsl": "0.88.4",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "vscode-icons-team.vscode-icons": "12.9.0"
        }
      }
    }
    
    

Children
No Data
Related