ESP32 S2 Mini - How to use USB as Serial
(CDC?)?
#10843
Closed
euphi
started this conversation in
Question - Community Help
Replies: 2 comments
-
try:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
TBH, I thought I also tried this. However, it seems i did not - because your solution works fine. Many thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The ESP32 S2 Mini Boards seem to not support the
Serial
device by USB. When I compile with latest released framework (3.20017.0 / older versions not tried) the device does not show up as USB device at all (there is also no "unknown" USB device) (It only switches to USB mode if resetted to "Boot" mode)How can I use the CDC mode in a way that is available as
Serial
? Manually creating aCDCSerial
object in main.cpp does not help, because some libraries directly access Serial for debug (e.g. ESP Async WebServer).If I enable the build flag
-DARDUINO_USB_CDC_ON_BOOT=1
, I get compiler errors thatSerial
is not defined at all?I somehow assume that the ESP-IDF underlying the Arduino framework is not configured to support CDC by default? Is there a way to change it?
platformio.ini
Installed versions:
Beta Was this translation helpful? Give feedback.
All reactions