arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.32k stars 394 forks source link

Arduino V2 IDE failed to launch Open OCD GDB server. #2172

Closed post2pa closed 1 year ago

post2pa commented 1 year ago

Describe the problem

Using IDE v2 and a simple example sketch, on trying to enter debug mode the following messages arise:

Waiting for gdb server to start...[2023-08-17T17:08:46.386Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\\openOCD\\OpenOCD-20230712-0.12.0\\bin" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\\Arduino_v2\\Sketchbooks\\oled\\ssd1306_128x32_i2c\\ssd1306_128x64_i2c" -f "C:/Arduinov2.1.1/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f "C:\\Users\\post2\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\samd\\1.8.13/variants/arduino_zero/openocd_scripts/arduino_zero.cfg"

and:

Failed to launch OpenOCD GDB Server. error spawn C:\openOCD\OpenOCD-20230712-0.12.0\bin ENOENT

This is a fresh install of Arduino IDE and OpenOCD.

The target board is an Arduino Zero (with embedded EDBG) and using the "programming usb" connected to my Windows PC.

The example sketch uploads and executes no problem.

Please can anyone suggest a solution, thank you.

To reproduce

Just compile, upload, enter debug...

Expected behavior

enter debug mode automatically.

Arduino IDE version

2.1.1

Operating system

Windows

Operating system version

Windows 11 Pro 64 Bit

Additional context

Forum discussion:

https://forum.arduino.cc/t/arduino-ide-v2-1-1-fails-to-launch-openocd-gdb-server/1153609/3

Issue checklist

kittaakos commented 1 year ago

Thanks for your interest in this project. This issue tracker is for bugs and feature requests and does not provide support. Please use the forum instead: https://forum.arduino.cc/c/software/ide-2-x/93/; it's more appropriate.

I tried the debugger with my Arduino Zero board on Windows, and it works as expected when I follow the guide.

post2pa commented 1 year ago

Thank you for your reply, much appreciated. Regards, Paul.

From: Akos Kitta @.> Sent: Thursday, August 17, 2023 11:48 PM To: arduino/arduino-ide @.> Cc: post2pa @.>; Author @.> Subject: Re: [arduino/arduino-ide] Arduino V2 IDE failed to launch Open OCD GDB server. (Issue #2172)

Thanks for your interest in this project. This issue tracker is for bugs and feature requests and does not provide support. Please use the forum instead: https://forum.arduino.cc/c/software/ide-2-x/93/; it's more appropriate.

I tried the debugger with my Arduino Zero board on Windows, and it works as expected when I follow the guidehttps://docs.arduino.cc/tutorials/zero/debugging-with-zero.

- Reply to this email directly, view it on GitHubhttps://github.com/arduino/arduino-ide/issues/2172#issuecomment-1683433860, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEPDHDMNFOBTAIBMBBHTHQTXV4F2BANCNFSM6AAAAAA3UMUZDE. You are receiving this because you authored the thread.Message ID: @.**@.>>