Skip to content

feat(rp2040): phase 5 — PIO clockless TX #3658

Closed

Description

@zackees

Parent and phase

Implementation Phase 5 of #3648. Depends on Phase 4 (first full RX byte-match evidence).

Scope

Implement ChannelEngineRpPio behind Bus::FLEX_IO, 0/1 from ChipsetTimingConfig. Start single-lane, then add only compatible 2/4/8-lane consecutive-pin batches. Allocate programs, state machines, DMA, and pins through Phase 0's owner; prove the final bit left the pin with a terminal marker/IRQ or equivalent; and enforce reset/latch timing.

Acceptance criteria

  • Host tests cover queue lifecycle, timing compatibility batching, terminal/wire-idle completion, reset generation, program removal, boundaries, and resource cleanup.
  • Incompatible timing groups serialize rather than sharing an unsafe batch.
  • A proven existing path is retained until this replacement clears the wire ladder.

Attached-board gate

Use the Phase 3 RX oracle and same-session known-good control. PIO TX must exact-byte match WS2812, WS2812B, and one other representable timing, including last-bit/reset measurements, then repeat and exercise supported PIO0/PIO1 concurrency. Coordinate parallel resource ownership with #3620.

Activity

  1. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Merged single-lane PIO channel-TX foundation in #3666 (2001c8b). It proves DMA-to-terminal-PIO-to-latch lifecycle and releases PIO/DMA/GPIO/program ownership. This issue remains open for compatible 2/4/8-lane batching and the attached-board RX-oracle evidence.

  2. moved this from Triage to Done in FastLED Trackeron Jul 15, 2026
  3. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Merged compatible 2/4/8 lane batching in #3667 (ec99646), following the single-lane foundation #3666. Software acceptance coverage is now on master; the issue remains open for its required attached-board RX-oracle and PIO0/PIO1 concurrency proof after #3631 hardware bring-up.

  4. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    HIL update (2026-07-15): COM12 was confirmed as RP2040 (2E8A:000A), and fbuild deployment plus the GPIO11 -> GPIO8 connectivity pre-test passed. PR #3674 is merged: it maps --flex-io on RP targets to the concrete PIO1 RPC driver name, leaving PIO0 available for the RX oracle.\n\nThe remaining Phase 5 blocker is real waveform capture: PIO1 TX completes without a recorded peripheral error, but PIO RX reports a saturated first high duration and no decodable bytes for a 100-LED WS2812B-V5 frame. This remains open; no PIO HIL acceptance is claimed. The receiver program/start sequence is being investigated separately from the merged dispatch fix.

  5. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Final Phase 5 evidence is now merged in #3675 (779998c8a811a849e099965a8f2688a4debeac4a).

    RP Pico identity: COM12, Pico SDK CDC, USB 2E8A:000A, serial 5303284720C4641C. Physical jumper: GPIO11 (PIO/SPI1 TX) -> GPIO8 (PIO/SPI1 RX).

    Validated through bash autoresearch with a clean fbuild deployment:

    • PIO0 exact-byte WS2812B loopback: 1, 25, and 100 LEDs; all four patterns passed at every size.
    • PIO1 exact-byte WS2812B loopback: 1, 25, and 100 LEDs; all four patterns passed at every size.
    • PIO0 + PIO1 concurrent resource/show-and-wait test: passed (separate TX pins GPIO11/GPIO12; RX exact-byte validation remains the one-jumper sequential oracle).

    The shipped fix makes RX capture deterministic for short frames and serializes PIO program/state-machine/DMA/capture-buffer ownership across the Phase 5 TX/RX paths. Local validation: uv run pytest ci/tests/test_autoresearch_phases.py --tb=short (98 passed), bash test rx --debug.

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