Skip to content

3.7.4 breaks USB CDC handling #570

@aljazjelen

Description

@aljazjelen

Operating System

Windows 11

Arduino IDE version

framework-arduinoespressif32 @ 3.3.0

Board

esp32s3

ArduinoCore version

3

TinyUSB Library version

3.7.4

Sketch as ATTACHED TXT

usb_hid = new Adafruit_USBD_HID(desc_hid_report, sizeof(desc_hid_report), HID_ITF_PROTOCOL_NONE, 2, false); }

// Begin USB HID and Serial communication, handle device enumeration
void begin(){
    TinyUSBDevice.begin();                      //  Start USB stack
    usb_hid->begin();                           //  Start HID interface immediately after
    Serial.begin(115200);                           //  Serial init (optional)
    while (!Serial) delay(10);                  //  Wait for CDC if needed
    while (!TinyUSBDevice.mounted()) delay(10); //  Wait for mount

Compiled Log as ATTACHED TXT

log.txt

What happened ?

I want to use USB as CDC, so that I can send HID and use Serial. It works with 3.7.1. but not with newer versions (e.g. 3.7.4)
Havent had a chance to check if it works with e.g. 3.7.2

It seems like the device can send serial but does not receive it. That means, when you send data from PC over serial to ESP32, it does not see it. Or at least tinyusb stack doesnt. Does not matter if youenable DTR or not.

How to reproduce ?

  1. Use the snippet I provided
  2. Use tinyusb library v3.7.4
  3. Flash the esp32s3
  4. try to send message from PC
  5. esp32s3 reception part should be blocked

Debug Log as ATTACHED TXT

No response

Screenshots

No response

I have checked existing issues, pr, discussion and documentation

  • I confirm I have checked existing issues, pr, discussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions