Using usb_jtag_debug_unit driver on esp32-s3-devkitm-1
Posted: Sun May 14, 2023 1:59 pm
Hello,
I have received an esp32-s3-devkitm-1 board and tried flushing and debugging the blink example on it.
I have followed many threads on the subject and replaced the driver in many options and almost to all available driver.
But all solution could not solve it for me.
Then I realized that ESP-IDF tools provide an inf file in which device Hardware ID (VID_303A&PID_1001&MI_02) is different from the Hardware ID as it recognized by windows (USB\VID_303A&PID_4001&MI_00)
The result is that the device is never recognized as usb_jtag_debug_unit and therefore the wrong driver is loaded, and openOCD can not find it.
I tried changing only the setting at esp_usb_jtag.cfg so it will search for PID 4001 instead of 1001 but bellow is what openOCD printed out:
Info : only one transport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x4001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Warn : Transport "jtag" was already selected
Warn : Interface already configured, ignoring
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x4001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
adapter speed: 40000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : esp_usb_jtag: serial (123456)
Error: esp_usb_jtag: error finding/claiming JTAG interface on device!
Does any one encounter that problem? do you have any solution to it?
Thanks in advance
I have received an esp32-s3-devkitm-1 board and tried flushing and debugging the blink example on it.
I have followed many threads on the subject and replaced the driver in many options and almost to all available driver.
But all solution could not solve it for me.
Then I realized that ESP-IDF tools provide an inf file in which device Hardware ID (VID_303A&PID_1001&MI_02) is different from the Hardware ID as it recognized by windows (USB\VID_303A&PID_4001&MI_00)
The result is that the device is never recognized as usb_jtag_debug_unit and therefore the wrong driver is loaded, and openOCD can not find it.
I tried changing only the setting at esp_usb_jtag.cfg so it will search for PID 4001 instead of 1001 but bellow is what openOCD printed out:
Info : only one transport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x4001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
Warn : Transport "jtag" was already selected
Warn : Interface already configured, ignoring
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x4001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
adapter speed: 40000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : esp_usb_jtag: serial (123456)
Error: esp_usb_jtag: error finding/claiming JTAG interface on device!
Does any one encounter that problem? do you have any solution to it?
Thanks in advance