Repository navigation
Description
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 8is LPUART-TX capable perkLPUARTTxPins[]
Command:
bash autoresearch teensy41 --lpuart --tx-pin 8 --rx-pin 9 --timeout 2mObserved 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.hppsrc/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 2mruns the LPUART driver and validates captured output, or- AutoResearch should not advertise/select
--lpuarton 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 9no longer fails withUnknownDriverafter GPIO pre-test passes. -
drivers/status output includesLPUARTwhen--lpuartis selectable. -
bash autoresearch teensy41 --all --tx-pin 8 --rx-pin 9 --timeout 2meither 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
- Parent meta: [research] Teensy LED driver bring-up research log #3353
- feat(lpuart): finish Teensy 4 LPUART engine + encoder + bus_traits + canHandle() host test (split from #3122 B1 / refs #3023) #3157 tracks the LPUART engine + bus traits + registration work.
- [meta] Teensy 4 channels-API driver coverage + verification fixtures (supersedes #2764, #3006) #3023 is the Teensy 4 channel driver coverage meta.
- [meta] Teensy 4 driver follow-ups post-#3341/#3342 rundown #3344 carries the post-fix(teensy4/autoresearch): honest FlexPWM RX + wrapper deadline + watchdog (closes #3219) #3341/perf(autoresearch): collapse per-byte + per-edge FL_WARN dumps (fbuild#755) #3342 Teensy driver follow-up list and already calls out unregistered LPUART as remaining work.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 24, 2026
Resolved for the AutoResearch matrix by #3357.
Outcome:
LPUARTis now treated as reserved/unimplemented, not as an active Teensy driver.--allno longer includesLPUART.--lpuartfast-fails before build/deploy/hardware with a clear message pointing to feat(lpuart): finish Teensy 4 LPUART engine + encoder + bus_traits + canHandle() host test (split from #3122 B1 / refs #3023) #3157.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.