OpenOCD: GDB Server Quit Unexpectedly - no error message

Hi ptillisch,

Thanks for helping.

I tried the BareMinimum sketch and it is the same. Gdb-server output:

Waiting for gdb server to start...[2025-10-19T13:41:18.034Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\Users\roman\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\Users\roman\AppData\Local\Temp\.arduinoIDE-unsaved2025919-41144-10alq48.mq4v\BareMinimum" -f "C:/Users/roman/AppData/Local/Programs/Arduino IDE/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f interface/cmsis-dap.cfg -f "C:\Users\roman\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.5.1/debugger/select_swd.cfg" -f "C:\Users\roman\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.5.1/debugger/R7FA4M1AB.cfg"
Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:45)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
CDRTOSConfigure
swd
adapter speed: 1000 kHz

Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
[2025-10-19T13:41:18.117Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

I have seen the same error described, and @ziriax got it working:

Unfortunately I do not really follow him on using latest version of openocd.exe - is openocd an integrated module in Arduino IDE that could be replaced, or or is he running it as another standalone application?


The printouts I cant see when running w/o debugger are like:

Serial.println("Communication with WiFi module failed!");

Luckily I just discovered the Tools/Serial Monitor - and the printouts were there.