Page 1 of 1

Error occurred when using JTAG to burn the program to ESP32:libusb_handle_events() failed with LIBUSB_ERROR_IO

Posted: Fri Jan 05, 2024 3:17 am
by Sirius
Hi Team

The JTAG debugger I used was espressif's official ESP-PROG, the compilation software was VSCODE, and the connection confirmation was in accordance with TMS-TMS,TDI-TDI,TCK-TCK and TDO-TDO connections.

I am trying to use JTAG to burn the ESP32 program, but the following error occurs. How to solve this problem?
2024-01-05 111244.png
error
2024-01-05 111244.png (22.11 KiB) Viewed 21475 times
Thanks
Siruis

Re: Error occurred when using JTAG to burn the program to ESP32:libusb_handle_events() failed with LIBUSB_ERROR_IO

Posted: Fri Jan 05, 2024 11:09 am
by ESP_kondalkolipaka
Hello,

This error most likey caused by esp32 and JTAG adaptor connection problem.

Please check this
https://docs.espressif.com/projects/esp ... nstruction

Reference
https://github.com/espressif/openocd-esp32/issues/197

Re: Error occurred when using JTAG to burn the program to ESP32:libusb_handle_events() failed with LIBUSB_ERROR_IO

Posted: Tue Jan 09, 2024 1:25 am
by Sirius
ESP_kondalkolipaka wrote:
Fri Jan 05, 2024 11:09 am
Hello,

This error most likey caused by esp32 and JTAG adaptor connection problem.

Please check this
https://docs.espressif.com/projects/esp ... nstruction

Reference
https://github.com/espressif/openocd-esp32/issues/197
Thank you very much for your reply. I went through the steps again, but I still couldn't. I also went to understand the solution of GitHub. Our mistakes are not the same. I use the espressif's official circuit board, and his solution is not suitable for me.

I also found a forum response from 2019 that I think is the most similar error to mine.(https://esp32.com/viewtopic.php?f=13&t= ... 837#p49837)
I was using the WROOM module. The response said "WROOM module comes with AT command app" and the solution was to download the app in a different way. Does this mean ESP32 can't be downloaded using JTAG?

Re: Error occurred when using JTAG to burn the program to ESP32:libusb_handle_events() failed with LIBUSB_ERROR_IO

Posted: Wed Jan 10, 2024 5:00 am
by ESP_kondalkolipaka
Please check this.

https://docs.espressif.com/projects/esp ... lity-issue

Let me move this thread to esp-idf group so that you will get an expert advise from the hardware point of view.