esp32-c3-DevKitM-1 USB JTAG Debugging
Posted: Fri Jan 31, 2025 12:18 am
Greetings,
I have a ESP32-C3-DevKitM-1 for which I am trying to enable USB JTAG debugging. I have implemented all the configuration tweaks that appear required (per extensive documentation searches) but have not yet achieved success. Interestingly, I have also seen many other posts related to this issue and none of them indicated success either. <discouraged...>.
The failure is that the built-in USB Serial/Jtag connection only enumerates as a serial port (which *does* work for downloading) but no JTAG device enumerates and (as expected without enumeration) OpenOCD fails with:
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: esp_usb_jtag: could not find or open device!
It also reports:
Error: [esp32c3] Unsupported DTM version: -1
Error: [esp32c3] Could not identify target type.
but since I'm not enumerating and the device can't be found, I doubt that this output is significant.
My configuration:
Windows 11, Visual Studio Code, ESP-IDF v5.3.1
ESP32-C3-DevKitM-1, Chip revision ECO3
Windows JTAG driver installed per: ...esp32c3/api-guides/jtag-debugging/configure-builtin-jtag.html
R1 moved to R2, R4 moved to R3, R21,R22 *not* removed but J3 pins 2,3 not connected
GPIO 10 grounded during reset, boot configuration entered via the hold-boot-button, press-release reset button procedure.
Note that I would like to check the "as-shipped" fuse configuration for the ESP32-C3-DevKitM-1 but while execution of espefuse.py (via the VSCode "Get efuse Summary" command) does not generate errors it also does not write the text file in the location (C:\Users\steve\AppData\Local\Temp\espefusejsondump.tmp) it claims to so I have been unable to confirm my efuse configuration.
What am I missing? All help appreciated.
Thanks,
Steve.
I have a ESP32-C3-DevKitM-1 for which I am trying to enable USB JTAG debugging. I have implemented all the configuration tweaks that appear required (per extensive documentation searches) but have not yet achieved success. Interestingly, I have also seen many other posts related to this issue and none of them indicated success either. <discouraged...>.
The failure is that the built-in USB Serial/Jtag connection only enumerates as a serial port (which *does* work for downloading) but no JTAG device enumerates and (as expected without enumeration) OpenOCD fails with:
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: esp_usb_jtag: could not find or open device!
It also reports:
Error: [esp32c3] Unsupported DTM version: -1
Error: [esp32c3] Could not identify target type.
but since I'm not enumerating and the device can't be found, I doubt that this output is significant.
My configuration:
Windows 11, Visual Studio Code, ESP-IDF v5.3.1
ESP32-C3-DevKitM-1, Chip revision ECO3
Windows JTAG driver installed per: ...esp32c3/api-guides/jtag-debugging/configure-builtin-jtag.html
R1 moved to R2, R4 moved to R3, R21,R22 *not* removed but J3 pins 2,3 not connected
GPIO 10 grounded during reset, boot configuration entered via the hold-boot-button, press-release reset button procedure.
Note that I would like to check the "as-shipped" fuse configuration for the ESP32-C3-DevKitM-1 but while execution of espefuse.py (via the VSCode "Get efuse Summary" command) does not generate errors it also does not write the text file in the location (C:\Users\steve\AppData\Local\Temp\espefusejsondump.tmp) it claims to so I have been unable to confirm my efuse configuration.
What am I missing? All help appreciated.
Thanks,
Steve.