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

Problem Running/Debugging from VS Code.

I'm trying to transition from Embedded Studio to VS Code. I have a sample application that I created in VS Code that builds without error, but when I start the debugger I get the error "Failed to launch undefined GDB Server: Error: spawn C:\Program Files (x86)\SEGGER\JLink ENOENT". I suspect it's missing the executable in the JLink path, but I don't know where this is called from. When I open the same application in Embedded Studio it works as expected.

Parents
  • Hi,

    Please upload the support information from VS Code. Open Command Palette (ctrl+shift+p or View > Command Palette) and write nRF Connect: Generate Support Information. The information will be generated in the output terminal. Copy it and upload it here with Insert > Code.

    Best regards,

    Marte

  • I executed nRF Connect: Generate Support Information and found that "cortex-debug.JLinkGDBServerPath": "C:\\Program Files (x86)\\SEGGER\\JLink" did not contain the executable. So, I then added JLinkGDBServer.exe to the path and now everything is working.

Reply Children
No Data
Related