Skip to content

ESP32-S3 native USB-CDC: log writes block when a host is attached but not draining #162

Description

@AsLY4

After any esptool session, the S3's native USB considers a terminal
attached. If nothing drains the port, the firmware's serial log writes
block: boot stretches from ~5 s to ~5 min and BLE command responses
starve — indistinguishable from a firmware wedge from the outside. Also:
the USB re-enumerates as a NEW tty node after deep sleep, silently
breaking loggers that hold the old node.

Proposal: a bounded/non-blocking CDC log path (drop instead of block
when the endpoint backs up), and a docs note recommending stable
/dev/serial/by-id paths plus keeping a reader attached in dev setups.
Full diagnosis notes available (we ran this to ground on a PaperS3).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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