Repository navigation
Description
Burndown — every Teensy 4 driver byte-level RX validated, no wrapper-skip
Consolidates the 7 issues reopened on 2026-06-18 after the agent's premature closure attempt (which used a wrapper-skip pattern to print PASS instead of actually validating drivers on the wire). This issue replaces those 7 as the single tracking surface so the burndown stays measurable from one place.
Definition of done
Each driver row below transitions from [ ] to [x] ONLY when:
bash autoresearch teensy40 --<driver-flag> --upload-port COM<N>reportsPASSwith no wrapper-skip and no synthetic-PASS substitution — i.e.runSingleTestactually runs the multi-patternrunMultiTestloop end-to-end and the RX side decodes the captured waveform byte-for-byte against the TX expectation.- The captured edge-time histogram matches the chipset datasheet (WS2812B-V5: T0H ≈ 225 ns, T1H ≈ 580 ns, T0L ≈ 1000 ns, T1L ≈ 645 ns, ±50 ns).
- No
is_teensy4 and driver == "<X>"skip block exists for that driver in eitherci/autoresearch/phases.pyorexamples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp.
The meta is done when every checkbox below is ticked AND the entire wrapper-skip block introduced by #3064 + #3217 has been deleted.
Root blocker
- Phase 4 — FlexPWM-RX bimodal-edge fix. PLATFORM_DEFAULT RX on Teensy 4 is FlexPWM, which currently captures bimodal pulse widths (940/640 ns HIGH, 286/586 ns LOW from a real WS281x frame) instead of clean ~250/~700 ns HIGH and ~1000/~600 ns LOW. Every other row below is gated on this fix because they all use PLATFORM_DEFAULT RX as the validation backend.
- Reproduce the bimodal capture on the dev-bench with
bash autoresearch teensy40 --object-fled --verbose(the[FlexPWM RAW]/[FlexPWM DMA]/[FlexPWM DECODE]dumps are on by default after PR feat(flexpwm-rx): enable Phase 4 raw-capture dumps by default (#3066) #3216). - Dump raw
CVAL2reads with the diagnostic hooks already inrx_flexpwm_channel.cpp.hpp. If the FIFO is merging adjacent edges, the rawCVAL2reads will show the merge directly. - Test deepened
FLEXPWM_SMCAPTCTRLA_CFAWMwatermark (currently0= 1 entry → DMA fires on every capture; try2then3). - If DMA is dropping requests, instrument the eDMA channel's error / minor-loop counters.
- Land the fix as a focused PR with byte-level OBJECT_FLED validation in the test plan.
- Reproduce the bimodal capture on the dev-bench with
Driver-by-driver byte-level matrix (gated on root blocker)
- OBJECT_FLED via
runSingleTest— has a separate hardware-verified path viaflexioObjectFledTestRPC today, but the genericrunSingleTestmatrix entry must also validate end-to-end before the OBJECT_FLED wrapper-skip block from PR fix(autoresearch): wrapper-skip OBJECT_FLED on Teensy 4 with synthetic PASS (closes #3059) #3064 + feat(autoresearch): green the Teensy 4 --all matrix via extended wrapper-skip (#3066) #3217 can be deleted. - FLEX_IO — TX runs end-to-end at boot today; needs (a) the Phase 4 fix landed, (b) #3181 ISR-chunked wave8 streaming refactor, then (c)
bash autoresearch teensy40 --flex-ioreports byte-level PASS. - LPUART — same gate, with extra steps:
- #3157 — finish the engine layer (encoder, engine, bus_traits, registration, host test) against the mock peripheral that shipped in feat(lpuart): scaffold Teensy 4 LPUART peripheral interface + host mock (refs #3023) #3032.
- #3182 — ISR-chunked wave8 streaming mode.
-
lpuart_peripheral_real.{h,cpp.hpp}— the real iMXRT register driver. Hardware-deferred until a Teensy is on the desk with bench wiring. -
bash autoresearch teensy40 --lpuartbyte-level PASS.
- BIT_BANG — fallback driver; needs
bash autoresearch teensy40to dispatch it via therunSingleTestpath and byte-decode the captured waveform end-to-end.
SPI-class chipsets (independent — investigation feature gates)
- #3175 — feat(flexio): parallel synchronized SPI driver for APA102/SK9822 on Teensy 4. Needs design + bench bring-up. Not gated on Phase 4 because SPI uses a separate clocked-line capture path.
- #3176 — feat(objectfled): investigate SPI/clocked-LED support for APA102/SK9822. Investigation only — outcome may merge into feat(flexio): parallel synchronized SPI driver for APA102/SK9822 on Teensy 4 (refs #3023, #3157) #3175 or stay separate.
FlexIO RX — not in scope of this burndown
rx_flexio_channel.cpp.hpp is documented as a researched dead-end per the #3066 iter-9 cross-check — iMXRT FlexIO silicon can't snapshot a peer timer's count, and SMOD=1+TIMOD=3 collides shift-and-store on the same compare event per NXP's own docs. PR #3214's top-of-file warning block locks that out. If FlexIO RX ever comes back as a candidate, it goes in a separate issue, not this burndown.
Anti-goals
- Do not extend the wrapper-skip further. PR feat(autoresearch): green the Teensy 4 --all matrix via extended wrapper-skip (#3066) #3217 already extended it from OBJECT_FLED-only to FLEX_IO / LPUART / BIT_BANG / non-Teensy drivers. Any "make the matrix go green" PR that adds more substitutions instead of fixing Phase 4 should be rejected.
- Do not close this issue based on autoresearch printing PASS unless every checkbox above is ticked, the wrapper-skip block has been deleted, and the RX backend is doing real byte-level decode.
- Do not split this back into per-driver tracking until Phase 4 is done. The whole point of this meta is that the dependency chain runs through one root blocker.
What's already shipped (2026-06-18, session that prompted this burndown)
- PR #3214 —
docs(flexio-rx): top-of-file warning block onrx_flexio_channel.cpp.hppdocumenting the architectural dead-end. Useful — keep. - PR #3215 —
chore(lint): cleared 6 stop-hook lint violations. Useful — keep. - PR #3216 —
feat(flexpwm-rx): enabledFL_DEBUGby default for the Phase 4 raw-capture dumps + fixed a latentvolatile void*→uintptr_tcompile bug hidden byFL_DEBUGbeing off. Useful — this is the foundation for the next bench session's Phase 4 work. - PR #3217 —
feat(autoresearch): extended the wrapper-skip. Mixed — the wrapper ergonomics fix is real (the wrapper used to hang for 10 minutes), but the matrix-green claim was a cheat and is the reason this burndown exists. Revert candidate once Phase 4 lands.
Supersedes (reopened on 2026-06-18 after premature closure)
- [meta] Teensy 4 channels-API driver coverage + verification fixtures (supersedes #2764, #3006) #3023 — meta (folded into this issue).
- [INVALIDATED — see body] Teensy 4 FlexIO RX bringup ledger (FL_WARN-overload-confounded; needs fresh investigation) #3066 — loop ledger (folded into this issue).
- feat(lpuart): finish Teensy 4 LPUART engine + encoder + bus_traits + canHandle() host test (split from #3122 B1 / refs #3023) #3157 — LPUART engine (kept as sub-issue, referenced from LPUART row above).
- feat(flexio): parallel synchronized SPI driver for APA102/SK9822 on Teensy 4 (refs #3023, #3157) #3175 — FlexIO SPI driver (kept as sub-issue).
- feat(objectfled): investigate SPI/clocked-LED support for APA102/SK9822 (refs #3023, #3157) #3176 — ObjectFLED SPI investigation (kept as sub-issue).
- feat(flexio): convert Teensy 4 FlexIO driver from inline-wait to ISR-chunked wave8 streaming (refs #3177, #3023) #3181 — FlexIO ISR-chunked streaming (kept as sub-issue).
- feat(lpuart): add ISR-chunked wave8 streaming mode (refs #3177, #3157, #3023) #3182 — LPUART ISR-chunked streaming (kept as sub-issue).
When the burndown completes, this meta closes and the 7 sub-issues either close alongside or stay as historical reference.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(teensy): restore FlexPWM RX byte capture
perf(serial): split daemon WS handler into reader/writer/inbound (closes
chore(deps): bump fbuild 2.2.28 -> 2.3.0 for daemon serial WS batching (
fix(teensy4/flexio-rx): honest TIMEOUT on empty-buffer SUCCESS + coll…
perf(autoresearch): collapse per-byte + per-edge FL_WARN dumps (fbuil…
fix(teensy4/autoresearch): honest FlexPWM RX + wrapper deadline + wat…
fix(teensy): restore FlexPWM RX byte capture (#3222)