This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF connect with VS code integration problem

HI All

Im having endless trouble with nRf Connect and Vs code. @Ovind was kind enough to assist from the first time I failed to get this working, but it was short lived and I dont understand why im having these issues. I may be missing something.

VS studio not building samples - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)  - Spent a week, uninstalling, re-installing, it then started working (manage to build and flash about 15 times)

Suddenly after creating a new application, the "application window" disappeared as well as the "connected devices". No matter how many times I added new examples it would not go further after  "create new application from example". The example files can be seen under the explorer but no application window would open for me to add a  build.

After a few uninstall's and re-install's   the "application" window and "connected device " returned after "create new application from example". This time however only Build worked but not the Flash. Error was Ninja: Nothing to do. It would just stop after the build.

I though this can now only be a corrupt windows installation or windows itself. I decided to do a clean windows install on my laptop from scratch not keeping any user files or programs. I redownloaded Vscode, nRF Connect as well as toolchain v1.8,.v1.9, .v1.9.1.  I installed all the extensions (through nRF_Conenct) and open Vs_studio through nRF Connect. 

When I run the Generate support information I can see the "tools" have not been installed.

What am I doing wrong. I reloaded windows twice and installed all the above from scratch at least 5 times to no avail.

Thank you 

{
  "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Pro",
    "osKernel": "10.0.19044",
    "vscode": "1.65.0",
    "electron": "13.5.2",
    "node": "v14.16.0"
  },
  "system": {
    "date": "2022-03-07T08:47:46.976Z",
    "vscodeRoot": "c:\\Users\\meltb\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:21:34",
    "osUptime": "22:57:25",
    "cpu": {
      "model": "Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz",
      "speed": "1800 MHz",
      "count": 4
    },
    "memory": {
      "total": "7.89 GB",
      "free": "1.53 GB"
    }
  },
  "workspace": {
    "name": null,
    "workspaceFile": null,
    "folders": []
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2022.1.192",
        "path": "c:\\Users\\meltb\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2022.1.192",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2022.1.30",
        "path": "c:\\Users\\meltb\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.1.30",
        "isActive": true
      },
      "nordic-semiconductor.devicetree": null,
      "nordic-semiconductor.kconfig": null
    },
    "external": {
      "marus25.cortex-debug": "1.2.2",
      "ms-vscode.cpptools": "1.8.4",
      "ms-vscode-remote.remote-wsl-recommender": "0.0.14",
      "ms-vscode.js-debug": "1.65.0",
      "ms-vscode.js-debug-companion": "1.0.15",
      "ms-vscode.references-view": "0.0.85",
      "ms-vscode.vscode-js-profile-table": "0.0.18",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "twxs.cmake": "0.0.17"
    }
  },
  "tools": {
    "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.62a",
    "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.15.4",
    "cmake": "Not found",
    "west": "Not found",
    "C:\\Users\\meltb\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe": null,
    "ninja": "Not found",
    "gperf": "Not found",
    "dtc": "Not found",
    "gnuarmemb": "Not found",
    "gn": "Not found",
    "git": "Not found"
  },
  "connectedDevices": [
    {
      "id": "683015900"
    }
  ],
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "",
      "toolchain": {
        "path": ""
      },
      "ozonePath": "",
      "applications": [],
      "jlink": {
        "rtosPlugin": ""
      },
      "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": "C:\\Users\\meltb\\ncs\\v1.9.1\\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,
      "showDevDebugOutput": "none"
    }
  },
  "environment": {
    "westExe": "west",
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "HOME": "C:\\Users\\meltb",
      "HOMEDRIVE": "C:",
      "HOMEPATH": "\\Users\\meltb"
    }
  },
  "terminal": {
    "shell": null,
    "defaultProfile": null
  }
}


  • correct.  When I press the Flash button, it builds first then its suppose to flash straight after but it stops at "build successful"

    The flash button and the Build button behaves exactly the same 

  • Hi,

    There is an issue caused by the VS Code update. If you have updated your VS code recently, you may experience problems with action buttons.
    For now, you have two options. You can either use nrfjprog or you can press CTRL+SHIFT+P in VS Code, type <flash> and choose <nRF Connect: Erase and Flash to Board>.

    Best regards,
    Dejan

  • Thank you that works for me. Im sure it will be fixed in a future release.

Related