-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: esp_usb_jtag: could not find or open device (ESP32-S3-DevKitC-1) (OCD-631) #219
Comments
Running
Debug output with log level 4: Privileges seem to be alright. I set the udev rules and can access the board, e.g. through
Thank you! I appreciate any help. |
Sorry, this still very much feels like a permission problem. Note that being able to access /dev/ttyACM0 does not mean that the USB permissions are set correctly, as generally Linux distros give this device the permissions belonging to a serial port, not the USB device it stems from. If you want to make sure this is not a permission problem, you can try running OpenOCD as root (note that normally you should never do this! but for a check it should be OK); if that does work, your issue is likely permissions. |
Hey, thanks for the quick reply! |
Ah, I think I see something... that PID/VID does not match the USB serial-JTAG converter, and that serial number also doesn't make sense. Could it be that you have firmware in the ESP32S3 that uses the USB OTG peripheral? If so, that takes over the USB port, and you can't do JTAG debugging using that. |
Ahh that's a cool idea! |
Wow, this did indeed fix the issue! I don't know what was on the esp before but now its working.
Thanks a lot for your help! |
Nice :) Btw, the <some hex serial number> is the base MAC address of the ESP32S3. |
Hi, I have a same problem. |
`PS F:\JLPro\Mars_Plan\Procedure\LED_M2\JATG\blink> openocd -f board/esp32s3-builtin.cfg Assertion failed! Program: D:\Espressif\tools\openocd-esp32\v0.11.0-esp32-20220411\openocd-esp32\bin\openocd.exe Expression: jtag_trst == 0` windos 10 Have the same problem |
@niliha @Spritetm How did you update your app to prevent it from enabling USB-OTG? Is it an update via menuconfig or something? |
For me, just put esp32s3 to download mode by press boot button, press reset, release boot button to enter jtag mode. |
Development Kit
ESP32-S3-DevKitC-1
Module or chip used
ESP32-S3-WROOM-1
Debug Adapter
builtin
OpenOCD version
v0.11.0-esp32-20211220
Operating System
Linux, Fedora Workstation 35
Using an IDE ?
no
OpenOCD command line
openocd -f board/esp32s3-builtin.cfg
JTAG Clock Speed
default
ESP-IDF version
v4.4
Problem Description
openocd -f board/esp32s3-builtin.cfg
Error: esp_usb_jtag: could not find or open device!
Debug Logs
Expected behavior
openocd connects to the board.
Screenshots
No response
The text was updated successfully, but these errors were encountered: