You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
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.
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.
Activity
zackees commentedon Jul 15, 2026
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.
zackees commentedon Jul 15, 2026
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.
zackees commentedon Jul 15, 2026
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.
zackees commentedon Jul 15, 2026
Final Phase 5 evidence is now merged in #3675 (
779998c8a811a849e099965a8f2688a4debeac4a).RP Pico identity: COM12, Pico SDK CDC, USB
2E8A:000A, serial5303284720C4641C. Physical jumper: GPIO11 (PIO/SPI1 TX) -> GPIO8 (PIO/SPI1 RX).Validated through
bash autoresearchwith a clean fbuild deployment: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.