Skip to content

fix(rp2040): honor bundled framework libraries and lib_deps #1247

Closed

Description

@zackees

Problem

The RP2040/RP2350 build orchestrator does not discover or compile Arduino-Pico bundled framework libraries under framework/libraries, and it does not honor matching lib_deps declarations.

This blocks CYW43 WiFi on Raspberry Pi Pico W / Pico 2 W. A generated project with:

[env:rp2350w]
board = rpipico2w
framework = arduino
board_build.core = earlephilhower
lib_deps = WiFi

and a real #include <WiFi.h> fails under fbuild 2.5.7:

src/sketch/AutoResearchNet.cpp:898:10: fatal error: WiFi.h: No such file or directory

The same staged project metadata resolves framework-arduinopico/libraries/WiFi/src under PlatformIO. fbuild's installed Arduino-Pico package also contains libraries/WiFi, but the RP orchestrator only adds core, variant, manifest, SDK, and project include roots. In contrast, the Teensy and STM32 orchestrators call the shared framework-library selector and pass declared lib_deps.

Reproduction

Consumer: FastLED/FastLED issue #3832, staged rp2350w AutoResearch build with lib_deps = WiFi and the Arduino-Pico 4.5.3 framework override.

bash compile rp2350w --examples AutoResearch

Acceptance criteria

  • RP2040/RP2350 discovers bundled Arduino-Pico libraries.
  • Active include scanning and explicit lib_deps both select libraries through the shared LDF-style resolver.
  • Selected framework sources are compiled and their include roots are available.
  • A regression test proves declared WiFi selection on the RP orchestrator path.
  • The FastLED RP2350W AutoResearch firmware compiles with the real CYW43/WiFi branch enabled.

Activity

  1. zackees commented on Aug 10, 2026

    @zackees
    MemberAuthor

    Resolved by the RP2040 orchestrator's framework-library integration. The orchestrator already:

    1. Discovers bundled Arduino-Pico framework libraries via framework.get_framework_libraries()
    2. Selects required libraries through both cached and active+declared LDF paths
    3. Adds framework library include dirs via framework.get_framework_library_include_dirs()
    4. Compiles selected framework sources alongside core/sketch sources
    5. Honors lib_deps through resolve_framework_library_sources_active_declared

    See crates/fbuild-build-arm/src/rp2040/orchestrator.rs lines 231-289. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions