GDB error when trying to launch debugger

Hi,

I'm developing using vscode and Nordic pluggin, Windows 10 OS. When I try to launch debugger, I get the following message:

"Unable to start debugging. Unexpected GDB output from command "-target-select-extended-remote 127.0.0.1:63241". Remote communication error. Target disconnected.: No such file or directory."

The launch configuration is the default:

	"launch": {
		"version": "0.2.0",
		"configurations": [
			{
				"type": "nrf-connect",
				"request": "launch",
				"name": "Launch build",
				"config": "${workspaceFolder}/build",
				"runToEntryPoint": "main"
			}
		]
	}

How can I make it run?

Thanks in advance,

Pedro.

Parents Reply
  • Hi Marte,

    Do you know what Nordic related tools you have updated between when debugging was working and not, and when? For example nRF Connect for Desktop, JLink or similar. 

    I'm not sure when it stopped working. I did a project about 8 months ago and worked. In middle has been updated nRF Connect for Desktop, nRF Command Line Tools and nordic vscode pluggin.

    Please try rebooting your computer. If this does not fix it, you can try the following:

    • Quit VS Code
    • Disconnect all JLink devices
    • Remove JLink installations and repeat the installation process
    • Reboot the computer

    I did all this and updated to last J-Link software version (7.88b). SEGGER - The Embedded Experts - Downloads - J-Link / J-Trace

    Now debbuger still does not work, but I have a different error:

    "Unable to start debugging. GDB exited unexpectedly with exit code -3 (0xFFFFFFFD)"

    Normal flashing works.

    Any idea?

Children
Related