esp32c6 jtag usb lost when using uart usb as com port
Posted: Tue May 14, 2024 7:12 pm
I am using the esp-ide v5.2.1 with Visual Studio Code (version 1.89) on a windows 10 pro (22H2) machine I have compiled examples like "hello world" and "blink" as well as several more useful examples, which seem to work fine. When I want to debug, using the built in jtag usb port, I start the openocd using the ESP-IDF CMD console with the following command:
This seems to work ok when the USB/JTAG/serial debug unit is displayed in the Device Manager under the Universal Serial Bus devices. (Actually there are two entries in that category with the same description displayed.)
However, if I need to make a change and flash the code back to the device, using the uart device (which the device manager shows as Silicon Labs CP210x USB to UART Bridge (COM13)) it causes the JTAG port to be lost and a different entry in the device manager shows up under Universal serial Bus controllers as:
Unknown USB Device (Device Descriptor Request Failed
The same occurs if I use the monitor. The only way to restore the correct display (and be able to use the JTAG usb again) is to unplug the jtag usb cable and re-plug it. I have tried installing different drivers based on the comments I have seen related to the problem but the current drivers seem to work the best. I have read the documentation related to the serial ports on the esp32c6:
"https://docs.espressif.com/projects/esp ... al%20ports"
but I have unable to find a solution to this problem.
Is this a bug in the esp32c6 or is there a workaround I can use to fix the problem? It is especially problematic when I need to have the monitor (or an external terminal) in use while debugging the code.
I would appreciate any help. Thanks.
- >openocd -c "set ESP_RTOS none" -f board/esp32c6-builtin.cfg
However, if I need to make a change and flash the code back to the device, using the uart device (which the device manager shows as Silicon Labs CP210x USB to UART Bridge (COM13)) it causes the JTAG port to be lost and a different entry in the device manager shows up under Universal serial Bus controllers as:
Unknown USB Device (Device Descriptor Request Failed
The same occurs if I use the monitor. The only way to restore the correct display (and be able to use the JTAG usb again) is to unplug the jtag usb cable and re-plug it. I have tried installing different drivers based on the comments I have seen related to the problem but the current drivers seem to work the best. I have read the documentation related to the serial ports on the esp32c6:
"https://docs.espressif.com/projects/esp ... al%20ports"
but I have unable to find a solution to this problem.
Is this a bug in the esp32c6 or is there a workaround I can use to fix the problem? It is especially problematic when I need to have the monitor (or an external terminal) in use while debugging the code.
I would appreciate any help. Thanks.