Skip to content

meta(rp2040): Pico 1 AutoResearch bring-up (superseded by #3648) #3626

Closed

Description

@zackees

Context

Bring up an attached, as-received Raspberry Pi Pico 1 (RP2040) through the productized AutoResearch path. The current scope is USB deployment, serial transport, JSON-RPC confirmation, and varied pin-free runtime tests. GPIO, PIO, and LED pin validation are deferred because the headers are not soldered.

Attached-board evidence

The Amazon-purchased board currently enumerates on Windows as:

USB VID:PID: 2E8A:0003
Volume: RPI-RP2 (FAT, healthy)
INFO_UF2.TXT: UF2 Bootloader v3.0
Model: Raspberry Pi RP2
Board-ID: RPI-RP2

fbuild port scan does not list it because it has no COM port in ROM USB boot; the scan currently reports the other attached serial devices only.

A safe compile probe deliberately used nonexistent COM99, so it could not modify the attached Pico:

bash autoresearch rp2040 --simd --upload-port COM99 --timeout 20s --skip-lint --quiet

The firmware compiled, then fbuild 2.4.0 failed at deployment:

deploy failed: deployer for RaspberryPi not yet implemented

Current fbuild main has the same dispatch gap: RP2040 build support exists, but Platform::RaspberryPi has no deployer and the build emits BIN/ELF rather than UF2.

Correct stock-board boot premise

This board was not assumed to have been manually placed into a special, non-default state. RP2040 boot ROM validates the flash second stage and, when no valid image is found, automatically enters USB device boot after about 0.5 seconds. A factory-blank or invalid-flash Pico can therefore appear as RPI-RP2 without pressing BOOTSEL. See the RP2040 datasheet section 2.8.1, page 130:

https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf

The same document is mirrored in FastLED/datasheets at raspberrypi/mcu/RP2040/datasheet.pdf.

Current hardware status (2026-07-15)

The attached Pico automatically enters ROM USB without a physical BOOTSEL press. A merged fbuild RAM-only UF2 diagnostic (#1072) succeeds repeatedly through the same cable, motherboard port, Windows MSC path, ROM UF2 parser, and reboot path, while every flash-target UF2 stalls only when the ROM begins external-QSPI erase/program. This isolates a board-level QSPI fault on serial E0C9125B0D9B, not a BOOTSEL, hub, PlatformIO/Arduino parity, or host-deployer gap.

A known-good replacement Pico 1 now enumerates as runtime CDC COM12 (2E8A:000A, serial 5303284720C4641C). Touchless fbuild reset/deploy, JSON-RPC smoke, SIMD, IEEE-754, watchdog recovery, and ten consecutive deploy-to-RPC cycles pass. The original as-received board (E0C9125B0D9B) remains isolated as an external-QSPI hardware failure. The no-preexisting-COM first-deploy phase remains open because the user-requested PlatformIO A/B flashed the replacement before its first fbuild run. Phase 6 (#3631) remains the separately deferred soldered-header follow-up.

Proposal

Complete the bring-up in ordered phases. Every phase is tracked by a sub-issue and must preserve the canonical ownership boundary: FastLED calls fbuild deploy; FastLED does not invoke picotool, copy UF2 files, or use raw pyserial itself.

  1. Zero-touch stock-board deployment in fbuild

    • Reuse the established Arduino-Pico and maxgerhardt/platform-raspberrypi deployment behavior.
    • Deploy to an as-received RPI-RP2 device without a COM port, BOOTSEL interaction, driver installation, or manual UF2 copy.
    • Support automatic later reflashes through the framework-standard 1200-bps CDC reset.
  2. AutoResearch first-deploy orchestration

    • Allow bash autoresearch rp2040 to begin without a pre-existing serial port.
    • Consume fbuild's post-deploy port instead of retaining a stale port identity.
  3. Reusable pin-free JSON-RPC smoke mode

    • Add --rpc-smoke (or an equally idiomatic name) that skips GPIO discovery and validates discovery, request/response correlation, payloads, and basic runtime RPCs.
  4. Varied pin-free runtime coverage

    • Validate SIMD and IEEE-754 suites on the attached Pico through existing AutoResearch modes. Coroutine support is not a board-bring-up prerequisite; LPC845 compiled those bindings out and RP2040 currently uses the generic Arduino null backend.
  5. Watchdog recovery and deployment soak

    • Prove deliberate hang ? watchdog reset ? serial reacquisition ? RPC recovery.
    • Complete ten consecutive deployment-to-RPC cycles without stale-port or wrong-device failures.
  6. Deferred pin/LED bring-up

    • After headers are soldered, validate GPIO discovery, loopback, PIO timing, and the public FastLED LED API.

Acceptance criteria

  • Phases 1-5 are attached as sub-issues and completed in dependency order for the current pin-free bring-up. Phase 6 (test(rp2040): GPIO, PIO, and LED loopback bring-up after headers are soldered #3631) remains attached as the explicitly deferred soldered-header follow-up.

  • The first decisive deployment test uses the as-received Pico connected normally over USB, with no BOOTSEL press, manual replug, selected COM port, vendor-driver installation, or manual file copy.

  • The canonical command succeeds from that state:

    bash autoresearch rp2040 --rpc-smoke --timeout 120s
  • rp2040 remains the idiomatic FastLED alias for the rpipico board/framework target.

  • Phases 1-5 require no soldered headers or GPIO wiring.

  • Each hardware closeout records the exact command, VID:PID/board identity, old and new port state, and decisive deploy/RPC output.

  • Compilation alone is not accepted as deployment or runtime validation.

  • No raw flash or serial workaround is added under FastLED.

Related issues

Activity

  1. zackees commented on Jul 14, 2026

    @zackees
    MemberAuthor

    Milestones completed: fbuild stock RP2040 deploy merged (#1041/#1042/#1043/#1044), FastLED no-port/RPC smoke/structured-help/negative-probe fixes merged (#3633/#3634/#3635/#3636/#3637), and pin-free runtime suites plus 10-cycle deploy soak pass on the attached Pico. Watchdog recovery remains hardware-blocked; GPIO/PIO/LED bring-up stays deferred until headers are soldered.

  2. zackees commented on Jul 14, 2026

    @zackees
    MemberAuthor

    CORRECTION: earlier claimed Pico runtime and soak evidence was invalid because COM11 was a CP210x 10C4:EA60 device, not RP2040 CDC. Strict 2E8A:000A matching is now implemented; all hardware acceptance remains open until genuine Pico evidence is captured.

  3. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Merged-main verification after FastLED #3646 and fbuild #1073:

    UV_NO_SYNC=1 bash autoresearch rp2040 --rpc-smoke --timeout 120s --skip-lint

    The command supplied no --upload-port; AutoResearch invoked fbuild with no -p, fbuild touchlessly reset/deployed the genuine Pico, wrote G:\NEW.UF2, returned COM12, and the full smoke set passed with correct structured -32601 handling. Runtime identity remains 2E8A:000A, serial 5303284720C4641C.

    Completed/closed current pin-free phases:

    Still open, without overstating evidence:

    No fbuild release was minted because the explicit first-deploy gate remains open.

  4. changed the title [-]meta(rp2040): Pico 1 AutoResearch bring-up — stock deploy, pin-free RPC, and runtime validation[/-] [+]meta(rp2040): Pico 1 AutoResearch bring-up (superseded by #3648)[/+] on Jul 15, 2026
  5. zackees commented on Jul 15, 2026

    @zackees
    MemberAuthor

    Superseded by #3648. Its former transport and runtime sub-issues now belong to #3648: FastLED/fbuild#1040, #3627, #3628, #3629, #3630, and #3631. Continue remaining RP2040 work and postmortem closeout in #3648.

  6. moved this from Triage to Done in FastLED Trackeron Jul 15, 2026
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