Repository navigation
fix(rp2040): fail fast on Arduino Mbed OS RP2040 core (#1977) - #1979
Merged
Merged
Conversation
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.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1977 (diagnostic only; Mbed build support plan posted on the issue)
PlatformIO's stock
board = pico(andnanorp2040connect) uses the Arduino Mbed OS RP2040 core (board corearduino). fbuild only implements Arduino-Pico, silently substituted it, and then failed with a bareio error: No such file or directorybecauseframework.get_core_dir("arduino")(orchestrator.rs source scan) points at a nonexistentcores/arduinoin Arduino-Pico.Now
rp2040_packages_resolved(shared by build andfbuild install) rejects Mbed-core envs (Mbed-default board withoutboard_build.core = earlephilhower, or an explicit non-earlephilhower core) with an actionableConfigErrornaming 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_selectunit tests; reproducer (empty sketch,platform=raspberrypi board=pico framework=arduino) now prints: