Open Sonic803 opened 1 month ago
@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. Thanks.
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. S2 could have both CDC and DFU enabled and CDC would work fine in 3.0.7. With 3.1.0-RC1 and RC2 when CDC and DFU are enabled, CDC doesn't work and the host doesn't enumerate the USB port.
@me-no-dev -- would you know about any change that would result in blocking CDC when DFU is enabled?
These are the setting that I am using, even the Lolin s2 mini settings don't work.
Using the 3.0.7 version doesn't solve the issue.
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.
When I said this I meant that the first time I upload the firmware while in download mode (GPIO0 low while toggling reset).
What I actually do to replicate this issue:
@SuGlider 3.0.7 and RC2 should have the exact same TinyUSB setup
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