Skip to content

fix(rp2040): fail fast on Arduino Mbed OS RP2040 core (#1977) - #1979

Merged
zackees merged 1 commit into
mainfrom
fix/rp2040-mbed-core-1977
Nov 10, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/rp2040-mbed-core-1977

Conversation

@zackees

@zackees zackees commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Refs #1977 (diagnostic only; Mbed build support plan posted on the issue)

PlatformIO's stock board = pico (and nanorp2040connect) uses the Arduino Mbed OS RP2040 core (board core arduino). fbuild only implements Arduino-Pico, silently substituted it, and then failed with a bare io error: No such file or directory because framework.get_core_dir("arduino") (orchestrator.rs source scan) points at a nonexistent cores/arduino in Arduino-Pico.

Now rp2040_packages_resolved (shared by build and fbuild install) rejects Mbed-core envs (Mbed-default board without board_build.core = earlephilhower, or an explicit non-earlephilhower core) with an actionable ConfigError naming the Mbed core and the workaround. No silent fallback.

Full Mbed support (framework-arduino-mbed + PlatformIO builder flags) is out of scope here; tracked in #1977.

Verified: new core_select unit tests; reproducer (empty sketch, platform=raspberrypi board=pico framework=arduino) now prints:

build error: config error: board `pico` selects the Arduino Mbed OS RP2040 core (framework-arduino-mbed), which fbuild does not support (FastLED/fbuild#1977). ...

Stock PlatformIO board=pico (and nanorp2040connect) default to the Mbed
core (board core "arduino"). fbuild silently used Arduino-Pico and then
failed with a bare ENOENT scanning the nonexistent cores/arduino dir.
Reject such envs with an actionable ConfigError before provisioning.
@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@zackees
zackees added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit b08e642 Nov 10, 2026
32 checks passed
@zackees
zackees deleted the fix/rp2040-mbed-core-1977 branch November 10, 2026 00:37
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant