Skip to content

test(rp2350): enable RP2xxx driver validation - #3901

Merged
zackees merged 1 commit into
masterfrom
feat/rp2350-driver-bringup
Aug 19, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2350-driver-bringup

Conversation

@zackees

@zackees zackees commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • extend RP fixed-SPI loopback and public-API validation to RP2350/RP2350W
  • add indexed RP UART selection with correct UART0/UART1 runtime affinity and typed PL011 metadata
  • normalize deferred driver names after USB board auto-detection and document RP PIO/SPI/UART workflows

Validation

  • uv run pytest --tb=short ci/tests/test_autoresearch_phases.py ci/tests/test_rp2350w_board_config.py (186 passed)
  • bash test bus_info
  • bash test channel_engine_rp_uart
  • bash test channel_engine_rp_spi
  • bash test channel_engine_rp_pio
  • bash lint
  • bash compile rp2350w --examples AutoResearch (30.4% flash, 31.3% RAM)
  • /clud-review clean

Hardware status

The recorded RP2350 endpoint is currently a phantom Windows COM17 device and no RPI-RP2 BOOTSEL volume is present, so live bridge-pin discovery and HIL remain intentionally unclaimed.

Refs #3899

Summary by CodeRabbit

  • New Features

    • Added RP2040 and RP2350 support for selecting UART 0 or 1.
    • Added PIO engine selection, including dual-PIO configurations.
    • Added fixed-pin SPI DMA loopback and public API validation for RP2350.
    • Added clearer platform-specific handling and status reporting for RP UART and SPI testing.
  • Documentation

    • Expanded command-line help and examples for RP2350 FlexIO/PIO, UART, and SPI workflows.
    • Updated hardware references to cover the broader RP2xxx family.

Extend RP2350(W) AutoResearch coverage for fixed SPI, indexed UART and PIO driver selection, including deferred USB board detection. Preserve UART instance affinity and expose typed PL011 device metadata.\n\nRefs #3899
@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e3744fe1-f5e1-4e4b-9fa3-7832a67bf434

📥 Commits

Reviewing files that changed from the base of the PR and between c13e736 and 89030ec.

📒 Files selected for processing (15)
  • agents/docs/hardware-autoresearch.md
  • autoresearch
  • ci/autoresearch/args.py
  • ci/autoresearch/phases.py
  • ci/autoresearch/test_rp_spi_loopback.py
  • ci/autoresearch/test_rp_spi_public_api.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_rp2350w_board_config.py
  • examples/AutoResearch/AutoResearchRemoteRunParallelTest.cpp
  • examples/AutoResearch/AutoResearchRemoteSystemMethods.cpp
  • examples/AutoResearch/AutoResearchTest.cpp
  • src/fl/channels/README.md
  • src/fl/channels/bus.h
  • src/fl/channels/bus_info.h
  • tests/fl/channels/bus_info.cpp

📝 Walkthrough

Walkthrough

The change adds RP2350 AutoResearch options and examples, selects concrete RP UART0/UART1 drivers, adds RP UART device metadata, broadens SPI validation to RP2xxx aliases, and adds coverage for CLI parsing, driver normalization, board contracts, and subprocess execution.

Changes

RP2xxx AutoResearch support

Layer / File(s) Summary
RP UART bus identity
src/fl/channels/bus.h, src/fl/channels/bus_info.h, tests/fl/channels/bus_info.cpp
RP2040/RP2350 UART instances now expose UART0 and UART1 names with PL011 metadata. Tests verify instance identity, availability, and device information.
AutoResearch driver selection
ci/autoresearch/args.py, ci/autoresearch/phases.py, ci/tests/test_autoresearch_phases.py, autoresearch, agents/docs/hardware-autoresearch.md
The CLI accepts --rp-uart-index. Phase processing resolves RP UART and PIO names after board detection. Help text and RP2350 examples document the new options.
AutoResearch UART examples
examples/AutoResearch/*, ci/tests/test_rp2350w_board_config.py
AutoResearch capture, device reporting, and parallel execution support UART0 and UART1 while preserving bus-instance affinity.
RP SPI validation flows
ci/autoresearch/phases.py, ci/autoresearch/test_rp_spi_*, ci/tests/test_autoresearch_phases.py, src/fl/channels/README.md
SPI loopback and public API validation now accept RP2040/RP2350 aliases and use bounded subprocess execution. Terminology and help text now refer to RP2xxx hardware.

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

Possibly related issues

Possibly related PRs

Sequence Diagram(s)

sequenceDiagram
  participant Operator
  participant AutoResearchCLI
  participant Args
  participant PhaseRunner
  participant RPBoard
  participant ValidationProcess

  Operator->>AutoResearchCLI: select RP UART, PIO, or SPI mode
  AutoResearchCLI->>Args: parse hardware options
  Args->>PhaseRunner: pass selected indices and validation mode
  PhaseRunner->>RPBoard: resolve board environment
  RPBoard-->>PhaseRunner: provide RP2040/RP2350 identity
  PhaseRunner->>ValidationProcess: run UART or SPI validation with remaining timeout
  ValidationProcess-->>PhaseRunner: return validation status
Loading
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rp2350-driver-bringup

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.

@zackees
zackees merged commit dd19c06 into master Aug 19, 2026
10 of 17 checks passed
@zackees
zackees deleted the feat/rp2350-driver-bringup branch August 19, 2026 02:45
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 19, 2026
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