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:

How can I make it run?

Thanks in advance,

Pedro.

Parents
  • Hi Pedro,

    Are you trying to debug a DK or a custom board? Is the device directly connected to the computer with an USB cable, or are you using an external debugger?

    Please provide support information from the VS Code extension:

    1. Open the command palette (Ctrl + Shift + P or View > Command Palette).
    2. Write "nRF Connect: Generate support information" and press enter.
    3. Copy the entire support information output.
    4. Upload it here using Insert > Code or upload a .txt file with Insert > Image/video/file.

    Make sure to remove confidential information you do not want to be shared in a public case.

    Best regards,
    Marte

  • Hi Marte,

    Thanks for your help. I've attached the generated support information.

    support information.zip

  • Hi Marte,

    I followed your instructions but unfortunately got same error

  • Hi,

    Thank you for testing.

    The developers have some further questions as well.

    • Do you have any other issues communicating with the device, or is it only when trying to debug you are seeing an issue?
    • Is the device connected to the computer through an USB hub?
    • Can you confirm that no other processes are trying to communicate with the device? E.g. if nRF Connect for Desktop or similar is running in the background.

    Best regards,
    Marte

  • Hi Marte,

    Do you have any other issues communicating with the device, or is it only when trying to debug you are seeing an issue?

    It's only when trying to debug. I can flash the device without problems.

    Is the device connected to the computer through an USB hub?

    I've tried though an USB hub and directly to PC.

    Can you confirm that no other processes are trying to communicate with the device? E.g. if nRF Connect for Desktop or similar is running in the background.

    Just vscode is open.

    Thanks for your support!

    Kind regards,

    Pedro.

  • This didn't solve my problem either.

  • Hi Marte! Any update?

Reply Children