Skip to content

Fix RP2350W UART diagnostics and validation - #3907

Merged
zackees merged 1 commit into
masterfrom
fix/3899-rp2350-hil
Aug 19, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3899-rp2350-hil

Conversation

@zackees

@zackees zackees commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • update RP2350/RP2350W Arduino-Pico board URLs and pin the released fbuild 2.5.17
  • fix RP UART default receive sizing and preserve specific startup errors
  • expose and validate typed RP UART startup diagnostics in AutoResearch
  • add RP2350W board and UART regression coverage plus hardware workflow documentation

Validation

  • uv run pytest ci/tests/test_autoresearch_phases.py ci/tests/test_rp2350w_board_config.py -q (193 passed)
  • targeted RP UART C++ test (1 passed)
  • bash test --cpp --clean (279 unit tests and 84 examples passed)
  • bash lint (passed; existing warn-only findings)
  • /clud-review (clean)

Hardware evidence

  • electrically identified the attached feedback bridge as GPIO0 <-> GPIO1 in both directions
  • validated PIO0, PIO1, and PIO2 loopback on the RP2350W
  • UART0 remains the only fixed UART mapping compatible with that bridge
  • final UART0 rerun is currently blocked because Windows no longer enumerates the board (USB descriptor failure/code 43); fbuild correctly refuses the stale COM18 endpoint

Refs #3899

Summary by CodeRabbit

  • New Features

    • Added detailed UART test diagnostics, including startup status, encoded data size, actual baud rate, and error messages.
    • AutoResearch now displays diagnostic details for both successful and failed UART tests.
    • Improved support for default PIO capture on RP2040/RP2350 platforms.
  • Bug Fixes

    • UART transmission failures now report specific, actionable error details.
    • Improved handling of UART configuration, encoding, baud-rate, and startup failures.
  • Tests

    • Added coverage for UART diagnostic validation, failure reporting, and PIO capture configuration.

@zackees
zackees merged commit 9e5fa8a into master Aug 19, 2026
10 of 18 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 19, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 19, 2026
@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: 95ede697-87d1-4bf8-8324-1a1b15786337

📥 Commits

Reviewing files that changed from the base of the PR and between e652336 and 3875be1.

📒 Files selected for processing (11)
  • agents/docs/hardware-autoresearch.md
  • ci/autoresearch/phases.py
  • ci/boards.py
  • ci/tests/test_autoresearch_phases.py
  • ci/tests/test_rp2350w_board_config.py
  • examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp
  • examples/AutoResearch/AutoResearchTest.cpp
  • pyproject.toml
  • src/platforms/arm/rp/rpcommon/channel_engine_rp_uart.cpp.hpp
  • src/platforms/arm/rp/rpcommon/channel_engine_rp_uart.h
  • tests/platforms/arm/rp/rpcommon/channel_engine_rp_uart.cpp

📝 Walkthrough

Walkthrough

RP UART transmission diagnostics now flow through runSingleTest responses. AutoResearch validates and displays them. RP Pico framework versions, PIO capture handling, tests, documentation, and the fbuild pin were also updated.

Changes

RP AutoResearch support

Layer / File(s) Summary
RP UART diagnostic state
src/platforms/arm/rp/rpcommon/channel_engine_rp_uart.*, tests/platforms/arm/rp/rpcommon/channel_engine_rp_uart.cpp
ChannelEngineRpUart records start status, encoded size, actual baud, and persistent errors. Tests cover successful starts, DMA failures, and configuration failures.
RPC diagnostic responses
examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp, ci/autoresearch/phases.py, ci/tests/test_autoresearch_phases.py, agents/docs/hardware-autoresearch.md
UART0 and UART1 responses include typed diagnostics. AutoResearch validates required fields and displays them for successful and failed tests.
RP platform and capture configuration
ci/boards.py, examples/AutoResearch/AutoResearchTest.cpp, ci/tests/test_rp2350w_board_config.py, pyproject.toml
RP Pico boards use Arduino-Pico 5.7.0. Platform-default PIO capture uses RP-specific sizing. The fbuild pin moves to 2.5.17, with updated configuration tests.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant AutoResearch
  participant runSingleTest
  participant ChannelEngineRpUart
  AutoResearch->>runSingleTest: request UART test
  runSingleTest->>ChannelEngineRpUart: execute transmission
  ChannelEngineRpUart-->>runSingleTest: return status, size, baud, and error
  runSingleTest-->>AutoResearch: return diagnostic bundle
  AutoResearch->>AutoResearch: validate and display diagnostics
Loading

Possibly related issues

Possibly related PRs

✨ 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 fix/3899-rp2350-hil

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 deleted the fix/3899-rp2350-hil branch August 21, 2026 19:16
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