Seeing Unsuccessfully trying to debug an UNO R4 Wifi I was reminded that I had never tried debugging using the R4 WiFi
I have followed the instructions in https://docs.arduino.cc/tutorials/uno-r4-wifi/debugger/ and the board is connected directly to the PC and I can upload sketches and use the Serial monitor. The programmer is set to ARM CMIS-DAP compatible as per the instructions
However, when clicking the "Start Debugging" icon, after a short time with the "Getting debug info..." being displayed the debugger fails to start with the message
"OpenOCD GDB Server Quit Unexpectedly. See gdb-server output for more details".
The full gdb-server output is as follows
Waiting for gdb server to start...[2025-02-14T08:40:50.352Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\\Users\\micro\\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\\micro\\Documents\\Arduino\\___dummy_save" -f "C:/Users/micro/AppData/Local/Programs/arduino-ide/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f interface/cmsis-dap.cfg -f "C:\\Users\\micro\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.3.2/debugger/select_swd.cfg" -f "C:\\Users\\micro\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.3.2/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
Error: unable to open CMSIS-DAP device 0x2341:0x1002
Error: unable to find a matching CMSIS-DAP device
[2025-02-14T08:40:50.475Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...
I anm using Windows 11, my IDE version is 2.3.4 and the Uno R4 boards package is 1.3.2
Any ideas as to the problem and how I can move forward with this to diagnose what is causing the problem and how to fix it ?