Skip to content

test(esp32): validate native USB console ownership and reconnect behavior on hardware #4893

Closed
4 of 4 issues completed

Description

@zackees

Context

#4887 replaces Arduino console dispatch with native UART, hardware USB Serial/JTAG, and a native CDC-only TinyUSB owner. UART has physical AutoResearch/RMT and contention evidence. S2/S3/P4 native CDC SDK builds pass, but compilation and UART tests do not establish physical USB enumeration, RX/TX, reconnect, or upload recovery.

Board profiles disable Arduino USB startup because HWCDC has a competing ISR/RX queue and Arduino TinyUSB callbacks can consume input. This ownership migration needs hardware evidence before claiming parity or merging platform-sensitive changes.

Proposal

Run the existing AutoResearch/fbuild workflow over the actual selected USB transport, recording board identity, connector/route, core/SDK versions and globally applied startup flags. Cover native TinyUSB on S2/S3/P4 where the route is available, and representative hardware USB Serial/JTAG routes selected by the migrated profiles. Do not assume another connector or UART RPC validates USB.

Acceptance criteria

  • Establish reproducible baseline/negative evidence for a concrete failure or ownership conflict before any corresponding repair, then show GREEN on the same route; do not invent a failing test if the initial hardware audit passes unchanged.
  • Validate enumeration, repeated bidirectional RPC, binary writes, long lines, sustained traffic, disconnect/reconnect and reset/re-enumeration under RMT/LED activity.
  • Verify startup/core flags disable competing Arduino owners and there is a single stack/ISR/RX consumer.
  • Check bounded write/flush behavior without a host, heap integrity, repeated lifecycle/resource behavior and boot recovery.
  • Verify fbuild-managed deploy/recovery on each supported route, documenting BOOT/ROM requirements. Keep USB identities from existing board registry/metadata.
  • Publish per-board results and precise unsupported/unavailable routes; do not close with SDK compilation alone.
  • Make focused repairs and regression tests for findings; use existing AutoResearch and existing CI commands, with no new GHA or one-off example sketches.

Decisions

  • Native CDC is currently CDC-only; composite USB and Arduino software upload/reset handshake are not silently claimed as supported.
  • Hardware availability may block individual matrix entries; record those honestly rather than substitute UART evidence.
  • This tracks the explicit remaining validation gate on fix(esp32): remove Arduino console retention with native SDK backends #4887, not a second console implementation.

Tracked under #4888.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions