Hi,
I have a device based on ESP32S3. I'm able to see a COM port when the device is connected to a PC via USB even without having any code inside it or even with firmware that doesn't contain any USB functionalities.
So I'm able to flash the code directly via that COM port using the flash download tool.
But when I'm enabling USB MSC and CDC functionalities the COM port is getting changed and now I'm unable to program the device via the available COM port.
I have tried this: Deleted the USB MSC and CDC tasks once I'm done using them. But now I'm getting a notification from my PC saying the USB device is not recognized.
NOTE:
1. The device had different PID and VID for the firmware that has USB functionalities like MSC and CDC compared to the firmware without having USB functionalities or even without any firmware.
Thanks & Regards,
Kowshik.
Flashing through USB in ESP32S3
-
- Posts: 101
- Joined: Tue Mar 22, 2022 5:23 am
Re: Flashing through USB in ESP32S3
What's the operating system of the computer that you're using?
-
- Posts: 9745
- Joined: Thu Nov 26, 2015 4:08 am
Re: Flashing through USB in ESP32S3
The -S3 has both an USB-serial-JTAG device as well as a 'general-purpose' USB-OTG peripheral. The device you see on bootup is the USB-serial-JTAG unit; it does not need software to work and as such you can program the ESP32S3 directly from the factory. When you enable USB-MSC/CDC, you switch to the USB-OTG peripheral; while that can also be used to get back into flashing mode, it needs software support to do so. Perhaps the issue is there. Note that (unless you burn efuses) you can always go back into download mode (which uses USB-serial-JTAG) by grounding IO0 on reset.
-
- Posts: 20
- Joined: Wed Mar 02, 2022 2:39 pm
Re: Flashing through USB in ESP32S3
Thanks for the reply, it gives a lot of clarification.
Other than the trail I mentioned earlier, I have tried going to the download mode using software but was unable to do so.
I tried returning to download mode by setting the GPIO0 pin low from the software itself and performing a software reset.
Still, I'm unable to see the COM port.
Could you please help me with this? Is there any other way to go to the download mode using the software?
Other than the trail I mentioned earlier, I have tried going to the download mode using software but was unable to do so.
I tried returning to download mode by setting the GPIO0 pin low from the software itself and performing a software reset.
Still, I'm unable to see the COM port.
Could you please help me with this? Is there any other way to go to the download mode using the software?
-
- Posts: 9745
- Joined: Thu Nov 26, 2015 4:08 am
Re: Flashing through USB in ESP32S3
Ah, in software... yeah, setting GPIO that way won't work. I think setting the RTC_CNTL_FORCE_DOWNLOAD_BOOT bit in the RTC_CNTL_OPTION1_REG register and rebooting may get you there, but I'm not sure if the USB stack is in any usable state after that.
Who is online
Users browsing this forum: No registered users and 110 guests