Repository navigation
Closed
19 / 1919 of 19 issues completedClosed
19 / 1919 of 19 issues completed
Copy link
Description
Purpose This is the consolidated, executable RP2040 burn-down. It absorbs the stock-board deployment, first-deploy, pin-free RPC/runtime, watchdog, and soldered-header work previously tracked by #3626, then continues directly into the RX-first channel-driver implementation from #3647. Commit-backed RP2040 and ESP32-WROOM postmortems are the final publication phases. #3626 is retained only as the historical source and is superseded by this tracker; its children are listed below and owned here. ## Ordered burn-down ### Transport and board bring-up preface - [x] FastLED/fbuild#1040 — zero-touch deployment to an as-received Pico via ROM UF2. - [x] FastLED/fbuild#1049 — deploy-parity and attached-board diagnostic acceptance for the same stock-first path (depends on #1040). - [x] FastLED/fbuild#1081 — hub-path BOOTSEL mass-storage diagnostics and direct-port A/B acceptance (depends on #1040 and #1049). - [x] #3627 — first deployment with no pre-existing COM port (depends on fbuild#1040). - [x] #3628 — reusable pin-free JSON-RPC smoke mode. - [x] #3629 — pin-free SIMD/IEEE-754 runtime coverage. - [x] #3630 — watchdog recovery and deploy-to-RPC soak. - [x] #3631 — GPIO, PIO, and LED loopback bring-up after headers are soldered. ### Driver implementation - [x] #3653 — Phase 0: shared resource contracts and singleton peripheral mocks (after the transport preface). - [x] #3654 — Phase 1: instantiate the real PIO RX backend (depends on #3653). - [x] #3655 — Phase 2: qualify PIO RX edge detection (depends on #3654). - [x] #3656 — Phase 3: production PIO RX with DMA (depends on #3655). - [x] #3657 — Phase 4: UART clockless TX and first full RX byte match (depends on #3656). - [x] #3658 — Phase 5: PIO clockless TX (depends on #3657). - [x] #3659 — Phase 6: fixed-function SPI0/SPI1 channel driver (depends on #3658). - [x] #3660 — Phase 7: SPI LED protocol conformance and public API (depends on #3659). - [x] #3661 — Phase 8: combined soak and driver closeout (depends on #3660). ### Final postmortem and publication - [x] #3649 — Phase 9: postmortem evidence model and source audit (depends on #3661). - [x] #3650 — Phase 10: RP2040/Pico postmortem (depends on #3649). - [x] #3651 — Phase 11: ESP32-WROOM postmortem (depends on #3649). - [x] #3652 — Phase 12: integrate the postmortems and publish reusable checklists (depends on #3649, #3650, and #3651). ## Additional gaps identified by source audit The RP2040 silicon inventory is covered for the current FastLED scope; Cortex-M0+ has no ARM DSP/SIMD extension or FPU, so the scalar SIMD fallback is intentional. The following software gaps remain and must be resolved before declaring the RP2040 driver work complete: - [x] #3698 - route/document the legacy/public SPI replacement path for RP2040. - [x] #3699 - remove the incorrect RP2040 multi-lane adapter registration; retain the dedicated MultiLaneDevice path. - [x] #3700 - close SPI protocol/public API acceptance and reconcile #3647/#3648 evidence. ## Required conduct for every implementation phase - Start with a focused RED host test, then use singleton peripheral mocks with observable configuration/transaction history and failure injection. - Use Pico SDK APIs; do not hand-write RP2040 register maps. - Use fbuild port scan, bash autoresearch, fbuild deployment, and the sanctioned JSON-RPC transport only. No PlatformIO, direct flash tools, or raw pyserial acceptance path. - Prove the physical GPIO/jumper and independently qualify RX before judging a TX driver. DMA completion alone is not wire-idle proof. - Record board identity, wiring, commands, merge SHA, resource/heap/stack evidence, and decisive RPC output. Preserve proven paths until replacements clear the full wire-evidence ladder. - Before raising any timeout, run a quiet-control audit of fl::print, Serial.print*, FL_PRINT, FL_WARN, AR_FL_WARN, equivalent macros, and JSON-RPC chatter. ## Closure ledger
- feat(autoresearch/rp2040): support first deployment with no pre-existing COM port #3627 closed after merged no-port orchestration and replacement-board CDC/RPC validation; the unavailable fresh-board condition is explicitly documented as waived.
- meta(rp2040): RX-first channel-driver bring-up — PIO capture, UART/PIO/SPI TX, and SPI LEDs #3647 closed as the superseded historical RX-first tracker; its implementation and postmortem children remain individually closed.
- fix(rp2040): route legacy public SPI output to hardware SPI #3698 closed by merged PR docs(rp2040): document public hardware SPI routing #3704.
- feat(rp2040): initialize multi-lane SpiHw2/4/8 channel controllers #3699 closed by merged PR fix(rp2040): keep multi-lane SPI out of channel adapter #3703.
- test(rp2040): close SPI protocol and public API acceptance gaps #3700 closed by merged PR test(spi): cover public SK9822 channel API #3705.
Parent completion Close this meta only when every listed child is closed with its stated evidence, and the final guide is linked from CLAUDE.md and agents/docs/hardware-autoresearch.md. ## Sources #3626 supplies the stock-board/fbuild/RPC transport history; #3647 supplies the driver design. FastLED/datasheets is first source for hardware facts; FastLED/boards owns production USB board identity data.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 19 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]docs(agents): add RP2040 and ESP32-WROOM bring-up postmortems[/-][+]meta(docs): RP2040 and ESP32-WROOM hardware bring-up postmortems[/+]13 remaining items
zackees commentedon Jul 15, 2026
Phase-6 hardware-gate update: the attached RP2040 has now passed fbuild/AutoResearch GPIO0↔GPIO1 loopback and JSON-RPC baseline. This proves the board/transport/oracle, but does not satisfy fixed-SPI because GPIO1 is not an SPI0/SPI1 MOSI/MISO option. #3659 records the exact next SPI0 wiring (GPIO3→GPIO0, SCK GPIO2) and SPI1 alternative (GPIO11→GPIO8, SCK GPIO10). PR #3670, now merged, updates FastLED to fbuild 2.5.2; fbuild evidence is on FastLED/fbuild#1049.
zackees commentedon Jul 15, 2026
[meta #3648] Phase 6 now has merged SPI0 hardware evidence: PR #3671 (7d30a32) added the fixed-SPI byte-loopback AutoResearch mode, and the post-merge COM12 run passed exact 32-byte SPI0 MOSI->MISO readback at 1/8/24 MHz plus PL022 wire-idle. #3659 remains open solely for the mirrored SPI1 physical loopback and its follow-up evidence.
zackees commentedon Jul 15, 2026
[meta #3648] child #3659 -> CLOSED. FastLED PR #3671 (merge 7d30a32) now has post-merge fbuild/AutoResearch evidence for both fixed SPI instances on the attached RP2040 Pico (COM12, USB 2E8A:000A): SPI0 GPIO3 MOSI -> GPIO0 MISO / GPIO2 SCK and SPI1 GPIO11 MOSI -> GPIO8 MISO / GPIO10 SCK. Both were byte-exact at 1, 8, and 24 MHz and proved PL022 wire idle. The Phase 5 and Phase 6 checklist entries are marked complete; FastLED/fbuild#1075 tracks the separate stale staged-build cache defect observed during this work.
zackees commentedon Jul 15, 2026
[meta #3648] child #3660 -> CLOSED. Merged #3672 + #3673 add the RP2040 SPI1 public FastLED.addLeds(..., Bus::SPI, 1)/show() loopback proof. On COM12, GPIO11->GPIO8 (GPIO10 SCK), APA102 and SK9822 passed black/RGB/white/walking and 257-LED 1,068-byte long frames at 8 MHz with byte-exact MISO and PL022 wire-idle. #3669 supplies the complementary host golden cases and brightness/BGR coverage.
zackees commentedon Jul 15, 2026
Meta status after Phases 0–12: #3631, #3653–#3661, and #3649–#3652 are closed with merged PRs #3675–#3680 and linked hardware/document evidence. The remaining blockers are intentionally external transport-preface gates #3627 and FastLED/fbuild#1040: a fresh, genuinely as-received Pico first-flashed by fbuild is still required. The original stock unit's external QSPI fault prevents app CDC, and the working replacement had already been flashed with PlatformIO before fbuild. Do not close #3648 until that physical stock-first evidence exists; no direct flasher or fabricated result will be used.
zackees commentedon Jul 15, 2026
[meta #3648] bookkeeping refreshed against GitHub state: #3631, #3661, and #3649-#3652 are closed and their checklist entries are now marked complete.
The only open children remain fbuild #1040 and FastLED #3627. The current fbuild-only port scan sees the working replacement Pico runtime (2E8A:000A, COM12, serial 5303284720C4641C), not the original stock first-flash target. The strict fresh-stock acceptance evidence therefore remains genuinely unproven; it is not being replaced by the already-running board control.
zackees commentedon Jul 15, 2026
[meta #3648] Audit refresh: added FastLED/fbuild#1049 to the transport preface because it remains an open, in-scope attached-board acceptance dependency of #1040. Static coverage for the false-QSPI diagnostic fix passed (
bash test -p fbuild-deploy -- volume_disappearance_timeout_is_actionable_without_diagnosing_qspi: 1 passed); fbuild #1079 corrected the stale test command. The currently visible RP2040 is still the previously programmed replacement runtime (2E8A:000A, serial5303284720C4641C), not a stockRPI-RP2target, so no physical gate was checked off.zackees commentedon Jul 16, 2026
Physical acceptance remains open. The latest fbuild-only attempt was corrected by daemon logs: it selected the existing runtime Pico COM12 / serial
5303284720C4641C, then observed BOOTSELG:after the 1200-bps reset, so it is not a stock first-deployment proof for a separate board. The false stale-port theory was documented and closed as invalid in FastLED/fbuild#1080. fbuild #1040 and #1049 remain the only outstanding fbuild gates; no QSPI fault is diagnosed.zackees commentedon Jul 16, 2026
Direct-motherboard RP2040 validation passed through fbuild: COM12 / serial
5303284720C4641Cperformed COM12 -> BOOTSELG:-> COM12 andRESULT: RPC smoke PASS. This rules out the earlier hub-only theory for the known working board, but it is a subsequent deploy, not independent as-received stock-ROM first-deployment proof. fbuild #1040/#1049 remain open only for that identity-specific stock gate; no QSPI failure is diagnosed.zackees commentedon Jul 16, 2026
Correction to the direct-port update: the user’s repeated physical A/B is that this board works directly on the motherboard but does not work through the USB hub. The hub path is therefore a causal condition, not ruled out. The unresolved mechanism is hub power/reset/enumeration or Windows removable-storage interaction, not a QSPI diagnosis. Direct motherboard deployment is the validated path; hub-connected stock-ROM acceptance remains unproven.
zackees commentedon Jul 16, 2026
[meta #3648] added FastLED/fbuild#1081 for the demonstrated RP2040 USB-hub versus direct-motherboard BOOTSEL deployment differential; it must close with fbuild-only diagnostics and same-board physical A/B evidence.
zackees commentedon Jul 16, 2026
[meta #3648] fbuild#1081 -> CLOSED via merged fbuild PR #1083 (hub-path deploy hardening: bounded UF2 retries gated on fresh ROM enumeration, managed-picotool fallback, CfgMgr32 USB topology diagnostics, tunable stage budgets). Physical A/B on the reference board (
2E8A:000A, serial5303284720C4641C, COM12) now shows 3/3 consecutive successful deploys over the previously-failing USB hub path, resolving the errors 1006/1392 signatures. Sibling issue fbuild#1082 was already closed by the same PR.Remaining open children, unchanged: fbuild#1040, fbuild#1049, and #3627. All three now have exactly one remaining unchecked acceptance item each, and it is the same physical constraint in every case: a genuinely as-received/never-flashed stock Pico 1 (or one whose blank/invalid flash naturally enumerates as ROM
RPI-RP2with no prior fbuild/application identity) is required to close the loop. No such board currently exists in inventory — the original stock unit (E0C9125B0D9B) has an isolated external-QSPI hardware fault, and the replacement board (2E8A:000A) was already flashed via PlatformIO before fbuild ever touched it, so every fbuild-only run on it is a subsequent deployment, not a first one. This is a hardware-procurement gap, not a code gap; no fabricated or substituted evidence will be used to close it.zackees commentedon Jul 16, 2026
Closeout
All enumerated children are closed and the remaining source-audit gaps were handled through merged PRs:
FASTLED_SPI_USES_CHANNEL_API/ChannelEngineRpSpi.SpiHw2/4/8registration from the single-channel adapter while preserving the concrete PIO+DMAMultiLaneDevicepath and transposition.SK9822addLedscompile coverage.Existing phase children #3628-#3631, #3649-#3652, and #3653-#3661 are closed with their prior merged implementation and validation evidence. Cross-repo fbuild children #1040, #1049, and #1081 are also closed.
Validation for the final SPI slices:
bash test tests/fl/channels/adapters/spi_channel_adapterpassed.bash test tests/fl/channels/spipassed.bash test tests/fl/chipsets/spi_frame_protocolpassed.bash test tests/fl/channels/bus_traitspassed, including default APA102 and SK9822 public API instantiation.The local RP2040 compile was attempted through
bash compile rp2040 --examples Blink; the shared fbuild daemon/zccache service disconnected/timed out before completion. Local full lint was attempted and was blocked by the missingx86_64-pc-windows-msvcRust target. Neither limitation is represented as a passing claim.The reusable bring-up guide is linked through
CLAUDE.mdandagents/docs/hardware-autoresearch.md, with the RP2040 postmortem inagents/docs/driver-bringup-postmortems.md.