Skip to content

ESP32-S3: AutoResearch RX loopback capture stops at 200 edges, failing RMT and SPI decode #4903

Closed

Description

@zackees

Context

Found while validating the USB console under LED activity for #4893. On a physical ESP32-S3 (Arduino 3.3.11 / IDF 5.5.5, GPIO1 → GPIO2 jumper, loopbackMode: JUMPER WIRE, rxBackend: PLATFORM_DEFAULT, 96,100 B decode buffer), every AutoResearch loopback decode fails: the RX capture always ends after 200 edges (13 of 300 bytes for 100 LEDs).

bash autoresearch esp32s3 --rmt  →  TEST RMT lanes=1 leds=100 FAIL class=decode_mismatch
bash autoresearch esp32s3 --spi  →  TEST SPI lanes=1 leds=100 FAIL class=decode_mismatch
patterns[]: rawEdgesAfterWait=200, capturedBytes=13, decodeBytes=13, mismatchedLeds=96, captureFailed=false

The captured edges are valid WS2812 timings (H575 L650 / H225 L1000), so the TX drivers and the wiring work; capture just stops early. 200 edges is exactly the 100-symbol size used by the GPIO baseline capture (gpioBaseline symbols:100), which suggests the RX channel stays sized for the baseline and is not resized for the LED test.

Scope

Acceptance criteria

  • RED: the S3 --rmt decode failure above. GREEN: bash autoresearch esp32s3 --rmt and --spi pass on the same jumper.
  • Identify why the capture is limited to 200 edges (RX channel sizing versus the baseline, symbol memory, or wait/stop logic), and fix it without shrinking the test.
  • Keep the C6 passing.

Related: #4669 (P4 LCD_RGB capture truncating at 256 edges; possibly the same class of bug).

Activity

  1. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Additional loopback-decode evidence from the same session. ESP32-C6, GPIO0 → GPIO1 jumper, USB Serial/JTAG, runSingleTest {driver: RMT, laneSizes: [100], pattern: MSB_LSB_A, timing: WS2812B-V5} repeated six times on one boot:

    • iterations: 1: runs 0–3 pass; runs 4–5 fail (every pattern passed: false), and minFree drops from 123,360 to 112,016.
    • iterations: 3: all six runs fail.

    Heap is stable across runs (131,084 / 131,072 oscillation), so this is not a leak; the decode degrades over repeated or multi-iteration captures. The single-shot canonical bash autoresearch esp32c6 --rmt passes, which is why CI-style runs don't show it. The S3 under the same loop fails every run (the 200-edge cap above), with heap steady at 34,280 B.

  2. added a commit that references this issue on Oct 23, 2026
  3. moved this from Triage to Done in FastLED Trackeron Oct 23, 2026
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions