ESP32-C6 DEVKITC-1 V1.2 issue OpenOCD is not running

mhws700
Posts: 11
Joined: Fri Jan 17, 2025 11:23 pm

ESP32-C6 DEVKITC-1 V1.2 issue OpenOCD is not running

Postby mhws700 » Fri Mar 07, 2025 3:43 pm

Code: Untitled.txt Select all

Trying to flash my first hello_world example to an ESP32-C6 DEVKITC-1 V1.2 using ESP-IDF extension on VSCode a dialog box pos up with "OpenOCD is not running, do you want to launch it?". Pressing Yes results in 

C:\workspace\.espressif\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\bin\openocd.exe


Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

C:\workspace\.espressif\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\bin\openocd.exe


[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html

debug_level: 2

Info : only one transport option; autosele
cting 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000

Info : Hardware thread awareness
created
Info : Hardware
thread awareness created
WARNING: ESP flash support is disabled!

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

❌ Error: esp_usb_jtag: could not find or open device!

❌ C:\workspace\.espressif\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\share\openocd\scripts/target/esp_common.cfg:9: Error:
at file "C:\workspace\.espressif\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\share\openocd\scripts/target/esp_common.cfg", line 9
Error: [esp32c6.hp.cpu0] Unsupported DTM version: -1
Error: [esp32c6.hp.cpu0] Could not identify target type.
Error: [esp32c6.lp.cpu] Unsupported DTM version: -1
Error: [esp32c6.lp.cpu] Could not identify target type.

For assistance with OpenOCD errors, please refer to our Troubleshooting FAQ: https://github.com/espressif/openocd-esp32/wiki/Troubleshooting-FAQ
OpenOCD Exit with non-zero error code 1
[Stopped] : OpenOCD Server
[/OpenOCD]

Can't perform JTag flash, because OpenOCD server is not running!


I of course read all the FAQ but I don't understand them, so that I appreciate any concrete hint how to fix this.

User avatar
klaatu2
Posts: 36
Joined: Wed Feb 08, 2023 11:32 pm
Location: TEXAS

Re: ESP32-C6 DEVKITC-1 V1.2 issue OpenOCD is not running

Postby klaatu2 » Mon Mar 10, 2025 8:11 pm

I believe this is because you have selected JTAG, when you should select UART in ESP-IDF/VSC.
ESP-IDF_toolbar.jpg
ESP-IDF_toolbar.jpg (10.58 KiB) Viewed 10450 times

mhws700
Posts: 11
Joined: Fri Jan 17, 2025 11:23 pm

Re: ESP32-C6 DEVKITC-1 V1.2 issue OpenOCD is not running

Postby mhws700 » Fri Mar 14, 2025 10:42 pm

Thanks @klaatu2. Changing to UART really helped to enable flashing via UART. But my issue was that I simply used the wrong USB connector. Switching the cable to the other one I am now able to flash via JTAG and also debug.

Who is online

Users browsing this forum: ChatGPT-User and 4 guests