Skip to content

fix(autoresearch): Teensy --lpuart passes pin check but fails UnknownDriver #3352

Closed

Description

@zackees

Parent meta: #3353

Context

While bringing up Teensy 4.1 AutoResearch LPUART as part of the comprehensive Teensy LED driver bring-up, the wiring path was validated but the driver test failed because the firmware does not expose LPUART as an available channel driver.

This was run through the AutoResearch harness only; no manual compile, direct fbuild invocation, or manual serial was used.

Repro

Hardware:

  • Teensy 4.1 on COM20
  • Physical jumper/solder pair: GPIO 8 -> GPIO 9
  • GPIO 8 is LPUART-TX capable per kLPUARTTxPins[]

Command:

bash autoresearch teensy41 --lpuart --tx-pin 8 --rx-pin 9 --timeout 2m

Observed successful pin validation:

Using CLI-specified pins: TX=8, RX=9
GPIO CONNECTIVITY PRE-TEST
Testing connection: TX (GPIO 8) -> RX (GPIO 9)
GPIO PRE-TEST PASSED
TX (GPIO 8) and RX (GPIO 9) are connected
PINS tx=8 rx=9

Observed failure after wiring validation:

Calling setPins()...
Test failed
TEST setPins lanes=? leds=0 FAIL ?ms

Calling runSingleTest()...
{driver:LPUART,laneSizes:[100],pattern:MSB_LSB_A,iterations:1,timing:WS2812B-V5}
Error: UnknownDriver

The firmware boot banner reported drivers:4, but runSingleTest rejected LPUART during its mState->drivers_available lookup.

Likely Cause

The current Teensy 4.x channel init path appears to register FlexIO, ObjectFLED, and SPI, but not LPUART:

  • src/platforms/arm/teensy/teensy4_common/init_channel_driver_mxrt1062.cpp.hpp
  • src/platforms/arm/teensy/teensy4_common/drivers/_build.cpp.hpp

The LPUART directory and peripheral interface exist, but there is no engine-side _build.cpp.hpp included from the Teensy drivers unity build, and no LPUART registration in initChannelDrivers().

Expected Behavior

One of these should be true:

  • bash autoresearch teensy41 --lpuart --tx-pin 8 --rx-pin 9 --timeout 2m runs the LPUART driver and validates captured output, or
  • AutoResearch should not advertise/select --lpuart on Teensy until the driver is actually registered, and should produce a clear preflight message pointing to the implementation issue.

Acceptance Criteria

  • AutoResearch LPUART with explicit --tx-pin 8 --rx-pin 9 no longer fails with UnknownDriver after GPIO pre-test passes.
  • drivers/status output includes LPUART when --lpuart is selectable.
  • bash autoresearch teensy41 --all --tx-pin 8 --rx-pin 9 --timeout 2m either exercises LPUART successfully or skips it with an intentional, documented capability check.
  • Add or update a focused test so the Python AutoResearch driver list cannot drift ahead of the firmware's registered Teensy channel drivers again.

Related Issues

Activity

  1. zackees commented on Jun 24, 2026

    @zackees
    MemberAuthor

    Resolved for the AutoResearch matrix by #3357.

    Outcome:

    The actual LPUART engine/peripheral work remains tracked by #3157. This issue was about the bad AutoResearch behavior where a non-real driver could be selected and then fail later as UnknownDriver.

  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