-
Notifications
You must be signed in to change notification settings - Fork 7.6k
esp32-S2 usb cdc works only after serial monitor is opened #10474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@SuGlider Please help with triage, thanks |
I'm not sure how to test the issue. I can help by describing how the S2 USB is supposed to work:
Please describe the steps you have followed when you see the issue. I can replicate them here and check what is going on. |
Not sure if this is the issue, but the USB CDC port only shows up (is enumerated by the OS) when CDC is enabled and DFU is disabled. If this is the case, in order to download a new firmware into the S2 Mini, it is necessary to put it into download mode, by holding BOOT and pulsing EN/RESET. |
Yes, indeed something has changed from 3.0.7 to 3.1.0-RC1. @me-no-dev -- would you know about any change that would result in blocking CDC when DFU is enabled? |
@SuGlider 3.0.7 and RC2 should have the exact same TinyUSB setup |
I have this this same problem. Using core 2.0.17, with CDC on boot enabled, I put the ESP32 in boot mode, upload a simple blink sketch, and then power cycle the device. I can then upload as much as I want over USB in this case. When I update to 3.0.7, and try to upload with the same process, after I power cycle the device upload fails every time. |
please try with actual Arduino core 3.1.3 and 3.2.0-rc2. |
I tried with both 3.1.3 and 3.2.0-rc2.
|
It may be a problem related to A work around for the Wemos S2 mini is to hold |
Is there a
|
No, there is no /dev/ttyUSB0, only ACM. Running
While after uploading the simple sketch from arduino ide:
So I guess the issue is within the image flashed by arduino-esp |
Thanks for the detailed report. What is the I see that Arduino runs some Virtual Env Python version. Would it be the same as in IDF? It may be necessary to update the tools in |
My virtualenv (espenv) uses Python 3.12.4 and esptool 4.8.1, arduino uses the same version of esptool |
Board
Wemos S2 mini
Device Description
Just the board connected with usbc connected to pc
Hardware Configuration
Nothing
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino ide v2
Operating System
Arch Linux
Flash frequency
Lolin s2 default
PSRAM enabled
yes
Upload speed
Lolin s2 default
Description
I'm using the Lolin s2 mini board in arduino ide, with usb cdc enabled .
After uploading this program while in dfu mode, If i try to re-upload it in cdc mode it fails with an error.
While if I first open the serial monitor and wait for it to receive some messages, and then try to upload it works.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: