Skip to content

Enabling both USB MSC and CDC causes unstable connection in CDC. #9138

@evansgl

Description

@evansgl

Board

ESP32-S2

Device Description

ESP32-S2 Saola

Hardware Configuration

Nothing

Version

v2.0.14

IDE Name

platformio

Operating System

MacOS

Flash frequency

40

PSRAM enabled

no

Upload speed

115200

Description

Enabling both USB MSC and CDC causes unstable connections in the CDC. The CDC after some times fails and the only way to recover it is to reboot the ESP.
When MSC is not enabled the CDC is super stable.

Maybe a larger stacksize of TinyUSB might help. (default is 4096)

Sketch

#if !ARDUINO_USB_MSC_ON_BOOT
FirmwareMSC MSC_Update;
#endif

void setup()
{
  Serial.begin(115200);
  //no need to begin MSC_Update. The CDC will become unstable after a while even without exposing the flash drive to OS.
}

Debug Message

-

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions