Skip to content

[meta][burndown] Teensy 4 autoresearch — every driver byte-level RX validated, no wrapper-skip #3219

Closed

Description

@zackees

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:

  1. bash autoresearch teensy40 --<driver-flag> --upload-port COM<N> reports PASS with no wrapper-skip and no synthetic-PASS substitution — i.e. runSingleTest actually runs the multi-pattern runMultiTest loop end-to-end and the RX side decodes the captured waveform byte-for-byte against the TX expectation.
  2. 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).
  3. No is_teensy4 and driver == "<X>" skip block exists for that driver in either ci/autoresearch/phases.py or examples/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 CVAL2 reads with the diagnostic hooks already in rx_flexpwm_channel.cpp.hpp. If the FIFO is merging adjacent edges, the raw CVAL2 reads will show the merge directly.
    • Test deepened FLEXPWM_SMCAPTCTRLA_CFAWM watermark (currently 0 = 1 entry → DMA fires on every capture; try 2 then 3).
    • 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.

Driver-by-driver byte-level matrix (gated on root blocker)

SPI-class chipsets (independent — investigation feature gates)

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 on rx_flexio_channel.cpp.hpp documenting the architectural dead-end. Useful — keep.
  • PR #3215 — chore(lint): cleared 6 stop-hook lint violations. Useful — keep.
  • PR #3216 — feat(flexpwm-rx): enabled FL_DEBUG by default for the Phase 4 raw-capture dumps + fixed a latent volatile void* → uintptr_t compile bug hidden by FL_DEBUG being 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)

When the burndown completes, this meta closes and the 7 sub-issues either close alongside or stay as historical reference.

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