JTAG error with ESP32-S3-DevKitC
Posted: Mon Aug 07, 2023 9:24 pm
I purchased a new ESP32-S3-DevKitC with the hope of developing using the internal JTAG. I have previously had success with the ESP-WROVER-KIT, but I was looking for something smaller, without an LCD, etc. I am using a Windows 10 platform, Visual Studio Code plug-in, and esp-idf tools v 5.1. I can build code and upload over a serial port, but I cannot upload or debug with the intneral JTAG. OpenOCD gives the output below. It appears to have a problem with "esp_common.cfg, line 4. Is this actually an error with the config file or does this indicate the USB device is not detected? I am using the USB marked "USB" on the DevKitC.
esp_common.cfg contents:
Code: Select all
[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20230419 (2023-04-18-22:02)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
[OpenOCD]
debug_level: 2
C:\Users\rpaul\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin\openocd.exe
[OpenOCD]
Info : only one transport option; autoselecting 'jtag'
[OpenOCD]
Info : esp_usb_jtag: VID set
[OpenOCD]
to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
[OpenOCD]
Warn : Transport "jtag" was already selected
[OpenOCD]
Info : Listening on port 6666 for tcl connections
[OpenOCD]
Info : Listening on port 4444 for telnet connections
[OpenOCD]
❌ Error: esp_usb_jtag: could not find or open device!
[OpenOCD]
❌ C:\Users\rpaul\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230419/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:4: Error:
at file "C:\Users\rpaul\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230419/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 4
[OpenOCD]
[Stopped] : OpenOCD Server
Code: Select all
# SPDX-License-Identifier: GPL-2.0-or-later
#
catch {[source [find target/esp_version.cfg]]}
set _OPENOCD_VER [ version ]
if { [info exists EXPECTED_VER] && [string first $EXPECTED_VER $_OPENOCD_VER] == -1 } {
echo "WARNING!!! OpenOCD binary version ($_OPENOCD_VER) doesn't match the .cfg file version ($EXPECTED_VER)"
}
# Common ESP chips definitions
if { [info exists ESP_RTOS] } {
set _RTOS "$ESP_RTOS"
} else {
set _RTOS "FreeRTOS"
}