Unable to build sample application on Windows

Hi,

I installed nRF Connect SDK (1.9.1) using Toolchain Manager v0.10.3, and nRF Connect for Desktop v3.11.0. Before that I also installed NRF command line tools 10.15.4.

My OS is Windows 10.

I installed VS Code 1.67.0 and all extensions that the Toolchain Manager recommended. The extensions were installed from within the Toolchain manager.

All this is a new install. I never used the Nordic SDK before.

I installed the SDK in c:\nordic\ncs

In VSCode, I performed the quick setup:

After that I created a Freestanding application from a sample. The application location is c:\nordic\myapps and the application name is lpuart-test. The application was created Ok. 

But when I tried to create build configuration and build it, the build step fails with this error:

> Executing task: nRF Connect: Generate config nrf52833dongle_nrf52833 for c:\nordic\myapps\lpuart-test <

Building lpuart-test
west build --build-dir c:\nordic\myapps\lpuart-test\build c:\nordic\myapps\lpuart-test --pristine --board nrf52833dongle_nrf52833 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="c:/nordic/myapps/lpuart-test"

usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')
The terminal process terminated with exit code: 2.

 

This seems to be exactly the same problem as mentioned here (for OS X):

devzone.nordicsemi.com/.../can-t-build-example-application-in-visual-studio-code-osx

That post mentions about invoking "west init". I tried to invoke west, but it complains the Python is not found.

What do I need to do in order to resolve the above? I just want to build one the provided sample applications.

Thank you,

D.

Parents
  • Hello D. 

    This is a strange behavior.  

    That post mentions about invoking "west init". I tried to invoke west, but it complains the Python is not found.

    Did you try this within the Command Prompt or Git bash from the Toolchain Manager dropdown menu? 

    Kind regards,
    Øyvind

  • A small correction, open Command prompt or git bash from the Toolchain Manager and try running 

    ncsmgr init-ncs
  • I tried it - from the Toolchain Manager, I opened Bash window and then I executed ncsmgr init-ncs:

    NCS repositories are not yet cloned here. To do so run the following command:

    ncsmgr init-ncs

    501@c-DF0V MINGW64 /c/nordic/ncs/v1.9.1
    $ ncsmgr init-ncs
    Checking out NCS v1.9.1 ...FATAL ERROR: already initialized in C:\nordic\ncs\v1.9.1, aborting.
    Note:
    In your environment, ZEPHYR_BASE is set to:
    C:/nordic/ncs/v1.9.1/zephyr

    This forces west to search for a workspace there.
    Try unsetting ZEPHYR_BASE and re-running this command.
    HEAD is now at 126fad0e2 manifest: update manifest file with 1.9.1 tags
    /C/nordic/ncs/v1.9.1
    done
    Updating repos ...
    done
    usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...

    It is says that the NCS repositories are not cloned yet, but after I tried to run init-ncs it says that is is already initialized?!

  • Thanks for testing. Could you please try to run the following command in the VS Code Command Palette: nrf Connect: Generate Support Information and provide the information here as a .txt file or using Insert --> Code.

  • Hello Øyvind,

    Here is the support information from:

    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 Enterprise",
        "osKernel": "10.0.18363",
        "vscode": "1.67.1",
        "electron": "17.4.1",
        "node": "v16.13.0"
      },
      "system": {
        "date": "2022-05-11T15:33:44.843Z",
        "vscodeRoot": "c:\\Users\\501\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "01:56:53",
        "osUptime": "52:43:42",
        "cpu": {
          "model": "Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz",
          "speed": "2712 MHz",
          "count": 6
        },
        "memory": {
          "total": "31.61 GB",
          "free": "14.89 GB"
        }
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1652214473107",
        "folders": [
          "c:\\nordic\\myapps\\lpuart-test"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.4.219",
            "path": "c:\\Users\\501\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.4.219",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.4.61",
            "path": "c:\\Users\\501\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.4.61",
            "isActive": true
          },
          "nordic-semiconductor.devicetree": null,
          "nordic-semiconductor.kconfig": null
        },
        "external": {
          "marus25.cortex-debug": "1.4.4",
          "ms-vscode.cpptools": "1.9.8",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.15",
          "ms-vscode.js-debug": "1.67.2",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.references-view": "0.0.89",
          "ms-vscode.vscode-js-profile-table": "1.0.1",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "C:\\Program Files (x86)\\SEGGER\\JLink_V758b\\JLink.exe": "7.58b",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.4",
        "nrfutil": "Not found",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gn.exe": "1977",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [],
      "toolchains": [
        {
          "version": "1.9.1",
          "path": "c:\\nordic\\ncs\\v1.9.1\\toolchain"
        }
      ],
      "connectedDevices": [],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "c:\\nordic\\ncs\\v1.9.1",
          "toolchain": {
            "path": "${nrf-connect.toolchain:1.9.1}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": false
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "nordic-semiconductor.devicetree": {
          "modules": [
            "${zephyrBase}",
            "${zephyrBase}/../nrf",
            "."
          ],
          "zephyr": "",
          "ctxFile": "",
          "defaultBoard": ""
        },
        "nordic-semiconductor.kconfig": {
          "root": "",
          "env": {},
          "cfiles": true,
          "disable": false,
          "zephyr": {
            "base": ""
          },
          "python": "",
          "liveValue": true
        },
        "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,
          "flattenAnonymous": false,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\501",
          "HOMEDRIVE": "H:",
          "HOMEPATH": "\\",
          "Path": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\mingw64\\bin;c:\\nordic\\ncs\\v1.9.1\\toolchain\\mingw64\\libexec\\git-core;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Users\\501\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\501\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\501\\.dotnet\\tools;C:\\Users\\501\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "c:\\nordic\\ncs\\v1.9.1\\zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt",
          "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
          "PYTHONPATH": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin"
        },
        "toolchainPath": "c:\\nordic\\ncs\\v1.9.1\\toolchain",
        "toolchainBinPath": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin",
        "toolchainVersion": "1.9.1"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

Reply
  • Hello Øyvind,

    Here is the support information from:

    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 Enterprise",
        "osKernel": "10.0.18363",
        "vscode": "1.67.1",
        "electron": "17.4.1",
        "node": "v16.13.0"
      },
      "system": {
        "date": "2022-05-11T15:33:44.843Z",
        "vscodeRoot": "c:\\Users\\501\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "01:56:53",
        "osUptime": "52:43:42",
        "cpu": {
          "model": "Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz",
          "speed": "2712 MHz",
          "count": 6
        },
        "memory": {
          "total": "31.61 GB",
          "free": "14.89 GB"
        }
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1652214473107",
        "folders": [
          "c:\\nordic\\myapps\\lpuart-test"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.4.219",
            "path": "c:\\Users\\501\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.4.219",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.4.61",
            "path": "c:\\Users\\501\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.4.61",
            "isActive": true
          },
          "nordic-semiconductor.devicetree": null,
          "nordic-semiconductor.kconfig": null
        },
        "external": {
          "marus25.cortex-debug": "1.4.4",
          "ms-vscode.cpptools": "1.9.8",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.15",
          "ms-vscode.js-debug": "1.67.2",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.references-view": "0.0.89",
          "ms-vscode.vscode-js-profile-table": "1.0.1",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "C:\\Program Files (x86)\\SEGGER\\JLink_V758b\\JLink.exe": "7.58b",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.4",
        "nrfutil": "Not found",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gn.exe": "1977",
        "c:\\nordic\\ncs\\v1.9.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [],
      "toolchains": [
        {
          "version": "1.9.1",
          "path": "c:\\nordic\\ncs\\v1.9.1\\toolchain"
        }
      ],
      "connectedDevices": [],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "c:\\nordic\\ncs\\v1.9.1",
          "toolchain": {
            "path": "${nrf-connect.toolchain:1.9.1}"
          },
          "ozonePath": "",
          "applications": [
            "${workspaceFolder}"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "welcome": {
            "showOnStartup": true
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": false
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "nordic-semiconductor.devicetree": {
          "modules": [
            "${zephyrBase}",
            "${zephyrBase}/../nrf",
            "."
          ],
          "zephyr": "",
          "ctxFile": "",
          "defaultBoard": ""
        },
        "nordic-semiconductor.kconfig": {
          "root": "",
          "env": {},
          "cfiles": true,
          "disable": false,
          "zephyr": {
            "base": ""
          },
          "python": "",
          "liveValue": true
        },
        "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,
          "flattenAnonymous": false,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\501",
          "HOMEDRIVE": "H:",
          "HOMEPATH": "\\",
          "Path": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\mingw64\\bin;c:\\nordic\\ncs\\v1.9.1\\toolchain\\mingw64\\libexec\\git-core;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\Users\\501\\.dnx\\bin;C:\\Program Files\\Microsoft DNX\\Dnvm\\;C;C:\\Program Files\\dotnet\\;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\501\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\501\\.dotnet\\tools;C:\\Users\\501\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
          "ZEPHYR_BASE": "c:\\nordic\\ncs\\v1.9.1\\zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt",
          "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
          "PYTHONPATH": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib;c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin"
        },
        "toolchainPath": "c:\\nordic\\ncs\\v1.9.1\\toolchain",
        "toolchainBinPath": "c:\\nordic\\ncs\\v1.9.1\\toolchain\\opt\\bin",
        "toolchainVersion": "1.9.1"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

Children
  • Thanks for providing this information. I'm not able to see any reason for why this should fail. Do you have any anti-virus running or similar? Is this a corporate computer with any limits on your user? Asking to verify that nothing is blocked. 

    Comparing to my output, there isn't many differences that I can see in regards to the environment. 

    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 Enterprise",
        "osKernel": "10.0.19044",
        "vscode": "1.67.1",
        "electron": "17.4.1",
        "node": "v16.13.0"
      },
      "system": {
        "date": "2022-05-11T15:43:56.952Z",
        "vscodeRoot": "c:\\Users\\username\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "01:53:29",
        "osUptime": "55:26:55",
        "cpu": {
          "model": "Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz",
          "speed": "2112 MHz",
          "count": 4
        },
        "memory": {
          "total": "15.88 GB",
          "free": "4.35 GB"
        }
      },
      "workspace": {
        "name": "Untitled (Workspace)",
        "workspaceFile": "1652272110960",
        "folders": [
          "c:\\NordicSemi\\v1.9.1",
          "c:\\Temp\\Projects\\lpuart",
          "c:\\Temp\\Projects\\application_update",
          "c:\\Temp\\Projects\\at_client"
        ]
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2022.4.219",
            "path": "c:\\Users\\username\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.4.219",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2022.4.61",
            "path": "c:\\Users\\username\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.4.61",
            "isActive": true
          },
          "nordic-semiconductor.devicetree": null,
          "nordic-semiconductor.kconfig": null
        },
        "external": {
          "marus25.cortex-debug": "1.4.4",
          "ms-vscode.cpptools": "1.9.8",
          "ms-vscode-remote.remote-wsl-recommender": "0.0.15",
          "ms-vscode.js-debug": "1.67.2",
          "ms-vscode.js-debug-companion": "1.0.18",
          "ms-vscode.references-view": "0.0.89",
          "ms-vscode.vscode-js-profile-table": "1.0.1",
          "eamodio.gitlens": "12.0.6",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      },
      "tools": {
        "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.58b",
        "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.0",
        "C:\\Python39\\Scripts\\nrfutil.exe": null,
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9-2019-q4-major",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\gn.exe": "1977",
        "c:\\NordicSemi\\v1.9.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1"
      },
      "sdks": [
        {
          "version": "1.9.99-dev1",
          "path": "c:\\NordicSemi\\NCS"
        },
        {
          "version": "1.7.0",
          "path": "c:\\NordicSemi\\v1.7.0"
        },
        {
          "version": "1.7.1",
          "path": "c:\\NordicSemi\\v1.7.1"
        },
        {
          "version": "1.5.0",
          "path": "c:\\NordicSemi\\v1.5.0"
        },
        {
          "version": "1.9.0",
          "path": "c:\\NordicSemi\\v1.9.0"
        },
        {
          "version": "1.9.1",
          "path": "c:\\NordicSemi\\v1.9.1"
        }
      ],
      "toolchains": [
        {
          "version": "1.7.0",
          "path": "c:\\NordicSemi\\v1.7.0\\toolchain"
        },
        {
          "version": "1.7.1",
          "path": "c:\\NordicSemi\\v1.7.1\\toolchain"
        },
        {
          "version": "1.5.0",
          "path": "c:\\NordicSemi\\v1.5.0\\toolchain"
        },
        {
          "version": "1.9.0",
          "path": "c:\\NordicSemi\\v1.9.0\\toolchain"
        },
        {
          "version": "1.9.1",
          "path": "c:\\NordicSemi\\v1.9.1\\toolchain"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "960008922"
        }
      ],
      "deviceProviders": [
        "nrfjprog"
      ],
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "${nrf-connect.sdk:1.9.1}",
          "toolchain": {
            "path": "${nrf-connect.toolchain:1.9.1}"
          },
          "ozonePath": "",
          "applications": [
            "c:\\Temp\\Projects\\hello_matter",
            "c:\\Temp\\Projects\\lpuart",
            "c:\\Temp\\Projects\\application_update",
            "c:\\Temp\\Projects\\at_client"
          ],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "welcome": {
            "showOnStartup": false
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "enableTelemetry": true
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        },
        "nordic-semiconductor.devicetree": {
          "modules": [
            "${zephyrBase}",
            "${zephyrBase}/../nrf",
            "."
          ],
          "zephyr": "",
          "ctxFile": "",
          "defaultBoard": ""
        },
        "nordic-semiconductor.kconfig": {
          "root": "",
          "env": {},
          "cfiles": true,
          "disable": false,
          "zephyr": {
            "base": ""
          },
          "python": "",
          "liveValue": true
        },
        "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,
          "flattenAnonymous": false,
          "registerUseNaturalFormat": true,
          "variableUseNaturalFormat": true,
          "dbgServerLogfile": null,
          "showRTOS": false,
          "showDevDebugOutput": "none"
        }
      },
      "environment": {
        "westExe": "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe",
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "C:\\Users\\username",
          "HOMEDRIVE": "C:",
          "HOMEPATH": "\\Users\\username",
          "Path": "c:\\NordicSemi\\v1.9.1\\toolchain\\mingw64\\bin;c:\\NordicSemi\\v1.9.1\\toolchain\\mingw64\\libexec\\git-core;c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin;c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\Scripts;C:\\Python39\\Scripts\\;C:\\Python39\\;c:\\Program Files\\CMake\\bin\\;c:\\bin;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\\Git\\cmd;C:\\Program Files\\Mosquitto;C:\\Program Files\\CMake\\bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Work\\30 Support\\06 Software\\nrfutil.exe;C:\\Program Files\\PuTTY\\;C:\\Program Files\\dotnet\\;C:\\gnuarmemb\\bin;C:\\Cmder\\bin;C:\\Cmder\\vendor\\bin;C:\\Cmder\\vendor\\conemu-maximus5\\ConEmu\\Scripts;C:\\Cmder\\vendor\\conemu-maximus5;C:\\Cmder\\vendor\\conemu-maximus5\\ConEmu;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;c:\\Program Files\\CMake\\bin\\;c:\\bin;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\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\CMake\\bin;C:\\Go\\bin;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\username\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\username\\zephyrrc.cmd;C:\\Users\\username\\go\\bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Cmder;C:\\Program Files\\Mosquitto;C:\\Program Files (x86)\\SEGGER\\JLink;C:\\Users\\username\\AppData\\Local\\Microsoft\\WindowsApps;C:\\NordicSemi\\GN\\gn;C:\\Users\\username\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Work\\30 Support\\06 Software\\nrfutil.exe",
          "ZEPHYR_BASE": "c:\\NordicSemi\\v1.9.1\\zephyr",
          "GNUARMEMB_TOOLCHAIN_PATH": "c:\\NordicSemi\\v1.9.1\\toolchain\\opt",
          "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
          "PYTHONPATH": "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin;c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\Lib;c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin\\Lib\\site-packages",
          "Python3_ROOT": "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin"
        },
        "toolchainPath": "c:\\NordicSemi\\v1.9.1\\toolchain",
        "toolchainBinPath": "c:\\NordicSemi\\v1.9.1\\toolchain\\opt\\bin",
        "toolchainVersion": "1.9.1"
      },
      "terminal": {
        "shell": null,
        "defaultProfile": null
      }
    }
    
    

  • Yes, the machine is a company PC and it does have anti-virus running. I have admin rights. During the installation, everything seemed to install Ok - no errors, no admin escalation requests.

    I see that in your configuration there are few differences compared to mine:

    - under workspace -> folders, it looks like the SDK is listed there, while in mine it is not

    - your sdks element is populated mine is empty

    - your configuration has (what looks like env. variable) "${nrf-connect.sdk} while mine does not have such variable

    - in my configuration HOMEDRIVE is set to H: - but I do not have this drive available at the moment

    I do not know if any of these maybe the issue.

    I use this machine for all my development work, and I have not had any issues.

Related