Skip to content

feat(rp2350w): add board and transport foundation - #3834

Merged
zackees merged 1 commit into
masterfrom
feat/rp2350w-foundation
Aug 2, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2350w-foundation

Conversation

@zackees

@zackees zackees commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add the canonical rp2350w -> rpipico2w Arduino-Pico board profile while preserving rp2350 -> rpipico2
  • make RP2xxx staging/deploy aliases canonical, poll for post-flash CDC publication, and retain the DUT USB serial identity through watchdog re-enumeration
  • use board-exact Pico/Pico 2/Pico 2 W application USB identities so COM17 cannot be confused with the attached ESP32-C6 or another RP generation
  • admit RP2350/Pico 2 W to AutoResearch and report its live platform identity
  • cover PIO alias routing, strict port selection, fbuild environment consistency, and transport behavior

Validation

  • uv run --no-sync fbuild --version -> fbuild 2.5.6
  • uv run pytest ci/tests/test_rp2350w_board_config.py ci/tests/test_autoresearch_phases.py -q -> 143 passed
  • bash lint -> passed
  • bash test --cpp -> 279/279 unit tests passed; 83/83 examples passed in the required debug rerun
  • bash compile rp2350w --examples AutoResearch -> Raspberry Pi Pico 2 W / RP2350, build succeeded
  • /clud-review -> no critical/high findings

Refs #3832

Summary by CodeRabbit

  • New Features

    • Added support for Raspberry Pi Pico 2 and Pico 2 W boards.
    • Added RP2350 and RP2350 W support to the AutoResearch example.
    • Improved automatic board and USB port detection, including serial-number matching.
    • Added support for port reacquisition after deployment and watchdog recovery.
    • Added clear platform names for Pico 2 and Pico 2 W builds.
  • Bug Fixes

    • Prevented incorrect matching between RP2040 and RP2350 USB identities.
    • Improved handling of board aliases and environment-specific deployment flows.
  • Tests

    • Expanded coverage for RP2xxx boards, detection, deployment, watchdog recovery, and platform configuration.

Add the canonical Pico 2 W target, board-exact USB selection, RP2xxx transport aliases, post-deploy CDC polling, and device-stable watchdog recovery.\n\nRefs #3832
@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

RP2040 and RP2350 environments now support board aliases, board-specific USB detection, post-deploy CDC discovery, RPC smoke payloads, and serial-aware watchdog recovery. Pico 2 W board metadata and AutoResearch platform identification are also added.

Changes

RP2xxx board support

Layer / File(s) Summary
Environment contracts and board profiles
ci/autoresearch/phases.py, ci/boards.py, ci/tests/test_rp2350w_board_config.py, examples/AutoResearch/*
RP2xxx aliases resolve to canonical environments. Pico 2 W metadata, board filtering, platform documentation, and chip naming are added.
USB identity and port selection
ci/util/port_utils.py, ci/tests/test_autoresearch_phases.py
RP2040, RP2350, and RP2350 W use distinct USB fingerprints. Port detection supports optional serial-number matching and validates the new identities.
Deployment and recovery flows
ci/autoresearch/phases.py, ci/tests/test_autoresearch_phases.py
RPC smoke and watchdog soak support RP2xxx environments. Post-deploy polling finds application CDC ports, and watchdog recovery reacquires the original device by serial number.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related issues

Possibly related PRs

Sequence Diagram(s)

sequenceDiagram
  participant AutoResearchPhases
  participant Fbuild
  participant PortUtils
  participant RP2xxxCDC
  AutoResearchPhases->>Fbuild: Deploy canonical RP2xxx environment
  Fbuild-->>AutoResearchPhases: Return application port or no port
  AutoResearchPhases->>PortUtils: Poll for matching environment
  PortUtils->>RP2xxxCDC: Inspect VID:PID and serial number
  RP2xxxCDC-->>PortUtils: Return matching CDC port
  PortUtils-->>AutoResearchPhases: Update application port
  AutoResearchPhases->>PortUtils: Reacquire port after watchdog reset by serial
  PortUtils-->>AutoResearchPhases: Return replacement CDC port
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: RP2350W board support and transport functionality.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rp2350w-foundation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ci/util/port_utils.py`:
- Around line 67-76: Update the "rpipicow" USB fingerprint in the board mapping
to use PID 0xF00A with VID 0x2E8A, while leaving the non-W "rp2040" and other
board fingerprints unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 7f0888a6-354f-472c-85b8-1a9258523bc1

📥 Commits

Reviewing files that changed from the base of the PR and between 4c3ab5f and eff5999.

📒 Files selected for processing (7)
  • ci/autoresearch/phases.py
  • ci/boards.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_rp2350w_board_config.py
  • ci/util/port_utils.py
  • examples/AutoResearch/AutoResearch.ino
  • examples/AutoResearch/AutoResearchPlatform.h

Comment thread ci/util/port_utils.py Resolved
@zackees
zackees merged commit f6ed66d into master Aug 2, 2026
13 of 15 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 2, 2026
pull Bot pushed a commit to manmuqingshan/FastLED that referenced this pull request Aug 2, 2026
Use Arduino-Pico 4.5.3's board-exact 2E8A:F00A application identity for rpipicow and cover selection when non-W Pico is also attached.\n\nFollow-up to FastLED#3834.\nRefs FastLED#3832
@zackees
zackees deleted the feat/rp2350w-foundation branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant