Repository navigation
Description
TL;DR
#663 reports that nxplpc silently ignores platform_packages = framework-arduino-lpc8xx@<URL>#<sha> because ArduinoCoreLpc8xx pins the framework URL + commit + sha256 as const &str and the orchestrator never reads platform_packages from env_config. The same const-pin pattern shows up across every other framework package in crates/fbuild-packages/src/library/. This issue audits each one to find which platforms have the same bug and which (if any) already honor platform_packages.
PlatformIO honors the consumer's platform_packages line. Wherever fbuild silently ignores it, downstream bisection workflows (e.g. FastLED/FastLED#3325) are blocked on the fbuild backend.
Audit result: bug exists in 16 / 16 platforms
Every framework package audited follows the same pattern: URL pinned in a const, only-default constructor, orchestrator never reads platform_packages from env_config. Verdict + evidence is on each child issue.
- nxplpc / framework-arduino-lpc8xx — nxplpc: framework-arduino-lpc8xx pin is hardcoded — platform_packages override in platformio.ini is silently ignored (blocks FastLED#3325 bisection) #663 (bug-exists, original report)
- apollo3 / framework-arduinoambiqapollo3 — audit: apollo3 / framework-arduinoambiqapollo3 — does platform_packages override work? (parent #664) #665 (bug-exists)
- arduino_api — audit: arduino_api — does platform_packages override work? (parent #664) #666 (bug-exists)
- avr / framework-arduino-avr — audit: avr / framework-arduino-avr — does platform_packages override work? (parent #664) #667 (bug-exists)
- arduino_mbed / framework-arduino-mbed — audit: arduino_mbed / framework-arduino-mbed — does platform_packages override work? (parent #664) #668 (bug-exists)
- attiny — audit: attiny — does platform_packages override work? (parent #664) #669 (bug-exists)
- ch32v — audit: ch32v — does platform_packages override work? (parent #664) #670 (bug-exists)
- esp8266 / framework-arduinoespressif8266 — audit: esp8266 / framework-arduinoespressif8266 — does platform_packages override work? (parent #664) #671 (bug-exists)
- esp32 / framework-arduinoespressif32 + platform-espressif32 — audit: esp32 / framework-arduinoespressif32 — does platform_packages override work? (parent #664) #672 (bug-exists, both)
- nrf52 / framework-arduinoadafruitnrf52 — audit: nrf52 / framework-arduinoadafruitnrf52 — does platform_packages override work? (parent #664) #673 (bug-exists)
- renesas (UNO R4) / framework-arduinorenesas — audit: renesas (UNO R4) / framework-arduinorenesas — does platform_packages override work? (parent #664) #674 (bug-exists)
- rp2040 / framework-arduinopico — audit: rp2040 / framework-arduinopico — does platform_packages override work? (parent #664) #675 (bug-exists)
- sam / framework-arduino-sam — audit: sam / framework-arduino-sam — does platform_packages override work? (parent #664) #676 (bug-exists)
- samd / framework-arduinosam — audit: samd / framework-arduinosam — does platform_packages override work? (parent #664) #677 (bug-exists)
- silabs / framework-arduinosilabs — audit: silabs / framework-arduinosilabs — does platform_packages override work? (parent #664) #678 (bug-exists)
- stm32 / framework-arduinoststm32 — audit: stm32 / framework-arduinoststm32 — does platform_packages override work? (parent #664) #679 (bug-exists)
- teensy / framework-arduinoteensy — audit: teensy / framework-arduinoteensy — does platform_packages override work? (parent #664) #680 (bug-exists)
CMSIS (cmsis_framework.rs, cmsis_atmel.rs) and the PlatformIO registry helper (registry.rs) were out of scope — not user-overridable framework packages.
Next step
The audit showed the bug is universal. The fix proposed in #663 (per-package with_override constructor + shared platform_packages parser) needs to generalize: every orchestrator listed above needs the same plumbing. Folding the override-construction into PackageBase so adding it to a new package is a one-line constructor variant — instead of N hand-written with_overrides — is worth considering before implementation begins.
- Every child issue investigated and verdict landed.
- Open a follow-up implementation issue: shared
parse_platform_packages_entryhelper +PackageBase-level override (or per-packagewith_override) + orchestrator wiring across all 16 platforms.
Refs
- nxplpc: framework-arduino-lpc8xx pin is hardcoded — platform_packages override in platformio.ini is silently ignored (blocks FastLED#3325 bisection) #663 — original nxplpc report (root case + proposed fix shape).
- [#3300 bisect] Find the commit that broke LPC845-BRK JSON-RPC echo — bisect Arduino-core LPC8xx FastLED#3325 — downstream bisection blocked by the lpc8xx case (now confirmed identical for every other platform).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
zackees commentedon Jun 20, 2026
Audit complete — bug exists in 16 / 16 platforms
Every framework package under
crates/fbuild-packages/src/library/follows the same pattern, verified independently by 16 parallel investigations:The recurring shape:
const &strin the package source.<Pkg>::new(project_dir)— no override path.build()instantiates the package directly and never callsconfig.get_env_config(env_name)?.get("platform_packages").PackageBase::new()incrates/fbuild-packages/src/lib.rs:205-227does accept aurlparameter, so per-packagewith_overrideconstructors are mechanical — but there are 16 of them, so factoring into a singlePackageBase::with_url_override(...)and a sharedparse_platform_packages(env_config, package_name)helper infbuild-configis the obvious lift.ESP32 is interesting:
Esp32Frameworkalready hasfrom_url()(used by the platform.json indirection), but the orchestrator never feedsplatform_packagesthrough it. So that one is partially-plumbed — the override hook exists, only the call-site lookup is missing.The follow-up implementation issue (per #663's proposed fix shape) is the next step.
zackees commentedon Jun 20, 2026
Implementation follow-up filed: #681 — proposes hoisting
with_override+platform_packagesparsing intoPackageBaseso the fix propagates to all 16 orchestrators from one place rather than 16 parallel patches.feat(nxplpc): honor platform_packages override for ArduinoCore-LPC8xx (…
feat(packages): hoist platform_packages override into PackageBase
feat(packages): hoist platform_packages override into PackageBase (#683)
zackees commentedon Jun 30, 2026
Rolled up under #867 (audit dashboard meta).
fix(packages): wire platform_packages override across 11 platforms (#664
fix(samd): wire platform_packages override (#677) (#871)
docs(arduino-api): record platform_packages override scope decision (#…
zackees commentedon Jun 30, 2026
All 16 per-platform sub-issues resolved. Shipped PRs:
for_core_with_override)platform-espressif32andframework-arduinoespressif32layers)Every framework package that consumers can reasonably override now honors
platform_packagesviaPackageBase::with_override+package_override::resolve_override. The downstream bisection workflow (FastLED/FastLED#3325 et al) is unblocked on the fbuild backend.Closing via meta-rollup #867.
chore: bump version to 2.3.15 (#888)