Repository navigation
Description
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 2mObserved:
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
- AutoResearch
setPins/ RX recreation rejects dummy or unsupported RX backends. -
GPIO 9no longer reaches ObjectFLED/FlexIO/LPUART driver tests as if it were a valid capture pin. - [research] Teensy LED driver bring-up research log #3353 is updated to replace
GPIO 8 -> GPIO 9with a validated LED-capture pair after hardware is rewired and proven. - ObjectFLED is rerun with the corrected pair and the result is recorded under [research] Teensy LED driver bring-up research log #3353.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 24, 2026
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.