Repository navigation
feat(rp2350w): add board and transport foundation - #3834
Conversation
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
📝 WalkthroughWalkthroughRP2040 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. ChangesRP2xxx board support
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
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (7)
ci/autoresearch/phases.pyci/boards.pyci/tests/test_autoresearch_phases.pyci/tests/test_rp2350w_board_config.pyci/util/port_utils.pyexamples/AutoResearch/AutoResearch.inoexamples/AutoResearch/AutoResearchPlatform.h
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
Summary
rp2350w -> rpipico2wArduino-Pico board profile while preservingrp2350 -> rpipico2Validation
uv run --no-sync fbuild --version->fbuild 2.5.6uv run pytest ci/tests/test_rp2350w_board_config.py ci/tests/test_autoresearch_phases.py -q-> 143 passedbash lint-> passedbash test --cpp-> 279/279 unit tests passed; 83/83 examples passed in the required debug rerunbash compile rp2350w --examples AutoResearch->Raspberry Pi Pico 2 W / RP2350, build succeeded/clud-review-> no critical/high findingsRefs #3832
Summary by CodeRabbit
New Features
Bug Fixes
Tests