Skip to content

test(rp2040): cover long SPI API frames - #3673

Merged
zackees merged 1 commit into
masterfrom
feat/rp2040-spi-public-api-long-chain
Jul 15, 2026
Merged

zackees merged 1 commit into
masterfrom
feat/rp2040-spi-public-api-long-chain

Conversation

@zackees

@zackees zackees commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #3672 for #3660.\n\nExtends the fbuild/AutoResearch public API loopback to 257 LEDs (1,068 bytes), preserving APA102/SK9822 all-ones end-frame validation on SPI1.\n\nHIL: COM12 Pico GPIO11 MOSI -> GPIO8 MISO, GPIO10 SCK; APA102 and SK9822 both passed black, RGB primaries, white, and walking pixel at 8 MHz with PL022 wire idle.

Summary by CodeRabbit

  • Bug Fixes

    • Improved SPI loopback validation for larger LED data frames.
    • Updated framing checks to accurately detect valid and malformed transmissions.
    • Continued validation of idle-line behavior and response handling.
  • Tests

    • Expanded coverage for APA102/SK9822-compatible frames with increased LED counts and payload sizes.

@zackees
zackees merged commit 073ac0e into master Jul 15, 2026
5 of 8 checks passed
@zackees
zackees deleted the feat/rp2040-spi-public-api-long-chain branch July 15, 2026 18:15
@coderabbitai

coderabbitai Bot commented Jul 15, 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

Run ID: 0f911527-bd77-427e-9a1e-32eec0949e27

📥 Commits

Reviewing files that changed from the base of the PR and between 8672cc7 and 62e5bf0.

📒 Files selected for processing (2)
  • ci/autoresearch/test_rp_spi_public_api.py
  • examples/AutoResearch/AutoResearchRemoteRpSpiMethods.cpp

📝 Walkthrough

Walkthrough

The RP2040 SPI1 loopback test now exercises 257 LEDs, captures a 1068-byte frame, validates the expanded data, and requires the public API response to report the updated frame length while retaining the wire-idle check.

Changes

RP2040 SPI loopback validation

Layer / File(s) Summary
Expanded frame-size validation
examples/AutoResearch/AutoResearchRemoteRpSpiMethods.cpp, ci/autoresearch/test_rp_spi_public_api.py
The loopback increases the LED count from 33 to 257 and updates the expected frame size from 144 to 1068; the API test validates the new frame length and continues requiring an idle wire.

Estimated code review effort: 2 (Simple) | ~10 minutes

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 feat/rp2040-spi-public-api-long-chain

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.

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