How to reinit ESP32S3 USB Serial/JTAG Controller
Posted: Tue Sep 12, 2023 9:44 am
Hello,
I'm currently writing a program for the ESP32-S3 with esp-idf, in which the ESP32-S3 will switch between different USB modes such as USB CDC and USB HID through a display. After the program completes, the ESP32-S3's USB interface needs to return to its default JTAG/serial mode, just like when it's powered on, so that users can reprogram it as needed. I don't want to press the boot and reset buttons to enter bootloader mode because the ESP32-S3 automatically enters bootloader mode if USB is not initialized in the code.
So, how can I revert the USB interface to the default JTAG/serial mode without having to reset the device? Thank you all very much.
I'm currently writing a program for the ESP32-S3 with esp-idf, in which the ESP32-S3 will switch between different USB modes such as USB CDC and USB HID through a display. After the program completes, the ESP32-S3's USB interface needs to return to its default JTAG/serial mode, just like when it's powered on, so that users can reprogram it as needed. I don't want to press the boot and reset buttons to enter bootloader mode because the ESP32-S3 automatically enters bootloader mode if USB is not initialized in the code.
So, how can I revert the USB interface to the default JTAG/serial mode without having to reset the device? Thank you all very much.