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
  • We are having the same issue, but only with our J-link Compact Plus - our J-link Pro works fine.

    I have tried numerous things - what might have worked is to include the localhost address above changing it to:

    "serverAddress": "127.0.0.1:2331",

    And the speed I changed to 4000 instead. And I opened up the ports 2331-2333 on localhost in Windows 11 for everything, but it seems to be redundant because another J-link server rule was already there opening up all ports.

    It seems to me that this is some kind of race-condition between opening up the J-link server through VSC and then connecting to it. Hence, VSC opens up J-link server, but before J-link server/programmer is ready, VSC tries to connect and hence the error of "no such file". Is it possible to somehow include a delay after opening op the J-link server when using the launch.json?

    Or to just connect to an already running J-link server instance instead of opening up a new instance automatically?

    EDIT: I forgot to say that I disabled IPv6 on the network interfaces. Have not checked if this actually did anything.

Children
No Data
Related