Debugging esp32-c6 devkitM-1

I am using Arduino IDE 2.3.4 with an esprissif ESP32-1C6 DevkitM-1.0. I downloaded the Zigbee_On_Off_Light.ino from the examples. I would like to use the USB JTAG debugger however when I try to debug I get this error..

For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'gdb port', not 'gdb_port'
DEPRECATED! use 'tcl port' not 'tcl_port'
CDRTOSConfigure
Info : only one transport option; autoselecting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Info : Listening on port 50001 for tcl connections
Info : Listening on port 50002 for telnet connections
Error: esp_usb_jtag: could not find or open device!
C:/Users/lesd7/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20241016/bin/../share/openocd/scripts/target/esp_common.cfg:9: Error: 
at file "C:/Users/lesd7/AppData/Local/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20241016/bin/../share/openocd/scripts/target/esp_common.cfg", line 9
Error: [esp32c6] Unsupported DTM version: -1
Error: [esp32c6] Could not identify target type.
[2025-01-23T22:25:17.262Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed
GDB server session ended. This terminal will be reused, waiting for next session to start...

Can anyone tell me what I'm doing wrong?

How should the TOOLS menu be set up?

Board: ESP32C6 Dev Module
JTAG Adapter: Integrated USB JTAG
Partition Scheme: Default 4M with spiffs
Flash size 4MB (32MB)
Zigbee mode: Zigbee ED

I moved your topic to an appropriate forum category @texles.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi texles!
Welcome!
Can you post a photo of your device. I mean no picture from the net but from your real PCB.
I had ones problems with this or a similar device and want to check ...

Hi fisco.. here are pics of the development board back and front


Ok.
It’s exactly the same board, with which I was fighting long, not understanding, why I cannot program the ESP.
It was found as new serial port and the red LED indicated, that it was powered, but no connection established, when it should be programmed. At the end I discovered, that this jumper connection visible on your first picture was in fact not closed. When I replaced it, the ESP was finally powered and everything worked like expected.
In your case it’s looking ok, but check, if there is really a conducting connection between the two contacts. Without, the ESP has no power, even if the rest of the board simulates some “life”.

Hi @texles.

You must connect the USB cable to the socket on the board that is marked "USB" when using the Arduino IDE integrated sketch debugger.

I see from the picture you shared that you have the cable connected to the socked marked "UART". It is expected that the debugger will fail to initialize with the error you encountered when the USB cable is connected to that socket.

So connect the USB cable to the correct socket and then try again.