Onboard debugger

@jorgetrujilloroman

I have a problem with using the debugger with my Uno R4 Wifi

I am using IDE 2.3.5 on Windows 11 and have firmware 0.6.0 installed using the firmware updater. The Blink example has been uploaded to the board and it works correctly. The sketch is flagged as "Optimise for Debugging" in the IDE and I am running the IDE as an Administrator and I have no breakpoints set

Clicking the "start Debugging" button causes this message to be shown in the Output window of the IDE
image

The gdb-server window has the following in it

Waiting for gdb server to start...[2025-06-24T09:14:34.698Z] 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\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2025524-23028-1m9nm1e.bcei\\Blink" -f "C:/Program Files/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.4.1/debugger/select_swd.cfg" -f "C:\\Users\\micro\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.4.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
Error: unable to open CMSIS-DAP device 0x2341:0x1002
Error: unable to find a matching CMSIS-DAP device

[2025-06-24T09:14:34.812Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

The problem seems to be centered around

Error: unable to open CMSIS-DAP device 0x2341:0x1002
Error: unable to find a matching CMSIS-DAP device

I have never been able to run the debugger, which is frustrating, although I have tried it with several versions of the IDE and firmware over a period of about a year

I was prompted to try again having seen your latest update to Arduino Uno R4 debugger "Quit Unexpectedly" but thought it best to start a new topic rather than hijacking that one as the problem seems to be slightly different

Any help that you can give would be appreciated. Let me know if you need more information