Skip to content

fix(autoresearch): reject unsupported Teensy RX pins before driver tests #3355

Closed

Description

@zackees

Parent meta: #3353

Context

During comprehensive Teensy LED driver bring-up, the fixed GPIO 8 -> GPIO 9 pair passed GPIO continuity but failed real LED capture for ObjectFLED. The failure is not byte corruption from ObjectFLED output; RX decoded zero bytes.

Repro

Command:

bash autoresearch teensy41 --object-fled --tx-pin 8 --rx-pin 9 --strip-sizes 1 --timeout 2m

Observed:

GPIO PRE-TEST PASSED
TX (GPIO 8) and RX (GPIO 9) are connected

setPins response: success true, txPin 8, rxPin 9, rxChannelRecreated true

OBJECT_FLED - 1 lane(s), 1 LEDs
Captured bytes: 0/3
Capture status: RX produced no decodable bytes
Byte corruption: 3/3 bytes (100.0%)

Root Cause Evidence

The Teensy FlexPWM RX supported pin table does not include GPIO 9:

src/platforms/arm/teensy/teensy4_common/rx_flexpwm_channel.cpp.hpp

Supported pins in the table include:

  • 2, 4, 5, 6, 8, 22, 23, 29
  • Teensy 4.1 bottom/extra pins: 36, 49, 53, 54

GPIO 9 can pass a basic GPIO read/write continuity test, but it is not a valid FlexPWM input-capture RX pin. FastLED.addRx() currently returns a non-null RxChannel wrapping a dummy backend, so AutoResearch setPins reports success and the real failure appears later as zero captured bytes.

Expected Behavior

AutoResearch should reject unsupported RX pins before running driver tests.

A fixed run should fail early with a clear message such as:

RX pin 9 is not supported by the Teensy FlexPWM RX backend

or the meta should move to a valid fixed harness pair such as an LPUART/FlexIO-capable TX pin wired to a FlexPWM-capable RX pin.

Candidate Fixed Harness Pair

For the current fixed-pair approach, use a TX pin that is valid for FlexIO and LPUART plus an RX pin that is valid for FlexPWM capture. GPIO 8 is valid for FlexIO/LPUART TX and GPIO 22 is FlexPWM RX-capable, so GPIO 8 -> GPIO 22 is a candidate pair to validate.

Acceptance Criteria

Activity

  1. zackees commented on Jun 24, 2026

    @zackees
    MemberAuthor

    Local fix verified: AutoResearch now rejects the dummy RX backend created for unsupported GPIO 9 before running ObjectFLED. Re-run command: \�ash autoresearch teensy41 --object-fled --tx-pin 8 --rx-pin 9 --strip-sizes 1 --timeout 2m. Result: \setPins\ fails with \RxChannelCreationFailed, session sends only 1 RPC request, and
    unSingleTest\ is not attempted. This confirms the original ObjectFLED 0-byte capture was an invalid RX harness pair, not ObjectFLED byte corruption.

  2. moved this from Triage to Done in FastLED Trackeron Jun 24, 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