Skip to content

PlatformIO rp2040 build fails #5233

Closed
Closed

Description

@dakhnod

Board / MCU

RP2040 (Pico)

LED Chipset

WS2812B / NeoPixel

FastLED Version

3.10.9

Arduino / PlatformIO version

PlatformIO 3.3.4

Operating System

Linux

Description

When adding FastLED as a lib_dep to platformio, it complains about not being able to find WiFi.h, among other errors.

It seems like FastLED attempts to pull in esp32 libraries being build for the rp2040.

Steps to reproduce

  1. Start a new project in PlatformIO
  2. Add lib_deps = FastLED to platformio.ini
  3. Click build

Minimal sketch

Serial / debug output

Checklist

  • I have searched existing issues for duplicates
  • I have tested with the latest FastLED release or git master
  • I can reproduce this with a minimal sketch

Activity

  1. added
    status: triage
    type: bug
    on Nov 9, 2026
  2. changed the title [-]PlatformIO r02040 build fails[/-] [+]PlatformIO rp2040 build fails[/+] on Nov 9, 2026
  3. added
    sanitized
    on Nov 9, 2026
  4. zackees commented on Nov 9, 2026

    @zackees
    Member
  5. zackees commented on Nov 9, 2026

    @zackees
    Member

    I tested this through fbuild on an RP2040/Pico with Arduino-Pico 5.7.0 and arm-none-eabi-gcc 14.2.0:

    • Current master: Blink builds successfully (357,556 bytes flash, 20,632 bytes RAM).
    • Unpinned lib_deps = FastLED: builds successfully, but fbuild resolves 3.10.8.
    • Exact 3.10.9 tag (dfbe01557ab6d30d0c351fd2838208048cded812), extracted locally and used as a local library dependency: clean consumer build succeeds (359,292 bytes flash, 20,696 bytes RAM).

    The consumer sketch includes Arduino.h and FastLED.h, registers one WS2812B on GPIO3, and calls FastLED.show(). No missing WiFi.h error appeared. These are fbuild results, not validation of the PlatformIO dependency scanner.

    Could you attach your complete platformio.ini and the full build output, especially the first error and its include trace? Please also include the resolved platform/framework versions and whether the GitHub dependency suggested above changes the result. That will distinguish dependency-scanner selection from an actual compiler include and avoid changing unrelated networking code speculatively.

  6. dakhnod commented on Nov 9, 2026

    @dakhnod
    Author

    @zackees Is FastLED supposed to work with the default arduino mbed core?

  7. added
    sanitized
    and removed
    sanitized
    on Nov 9, 2026
  8. zackees commented on Nov 9, 2026

    @zackees
    Member

    yes

  9. zackees commented on Nov 9, 2026

    @zackees
    Member

    Good distinction: my successful reproductions used Earle Philhower’s Arduino-Pico core, not the default Arduino Mbed core. I should not have presented those builds as evidence for Mbed compatibility.

    The RP2040 target configured in this repository uses Arduino-Pico, and the RP backend directly uses Pico SDK GPIO/PIO/DMA APIs. That is the configuration I can currently verify. I cannot yet confirm that FastLED 3.10.9 works with the default Arduino Mbed core.

    I also tried your default-core configuration through fbuild, but that stopped before compilation with a build-tool io error: No such file or directory, so it neither validates nor disproves FastLED’s Mbed support. I am keeping the distinction explicit rather than interpreting that as your WiFi.h error.

    For a verified path, use the Earle Philhower Arduino-Pico core. For investigating/fixing the default Mbed path, please share the complete build log and platformio.ini; in particular, the include trace leading to WiFi.h will tell us whether this is dependency scanning or actual compilation of an inappropriate backend.

  10. dakhnod commented on Nov 9, 2026

    @dakhnod
    Author

    @zackees is that response AI?

  11. added
    sanitized
    and removed
    sanitized
    on Nov 9, 2026
  12. zackees commented on Nov 10, 2026

    @zackees
    Member

    Sorry I misstood your earlier question. Yes, that last response was AI.

  13. zackees commented on Nov 10, 2026

    @zackees
    Member

    I can now reproduce a real FastLED build failure with the default Arduino Mbed core, including on current master (4e7550f), using the new experimental fbuild Mbed backend. The empty Mbed sketch links successfully, so this is no longer an Arduino-Pico substitute or a pre-compilation tool error.

    With ArduinoCore-mbed 4.5.0, the first current-master error is in src/platforms/arm/rp/pin_rp.hpp: gpio_init is not declared; this core’s bundled Pico SDK declares _gpio_init. The 3.10.9 consumer also exposes other old/new SDK API differences. A focused compatibility fix is underway, with an ordinary Arduino-Pico regression build planned.

    I have not reproduced the specific missing WiFi.h diagnostic yet. The Mbed backend is still being validated and is not a released workaround; this issue remains open until the FastLED consumer builds successfully.

  14. zackees commented on Nov 10, 2026

    @zackees
    Member

    The reproduced default-Arduino-Mbed compilation failures are now fixed on master by #5240 (98d3dd2). Real one-pixel WS2812B consumers that call addLeds() and show() build successfully with Mbed 4.5.0 and Arduino-Pico 5.7.0. The real fbuild Mbed backend used for validation also merged upstream in FastLED/fbuild#1982.

    Please retest the GitHub library dependency with your original Mbed configuration. I did not reproduce the specific missing WiFi.h diagnostic, so I am leaving this issue open for that confirmation. If it remains, please attach the complete platformio.ini and first-error include trace. These are compile/link results, not physical-output or timing measurements; the disabled Mbed default alarm-pool timer limitation is explicit.

  15. zackees commented on Nov 22, 2026

    @zackees
    Member

    Fixed by #5240. Re-verified on current master 01119e2 with fbuild 2.5.53:

    • Default Arduino Mbed RP2040 core (ArduinoCore-mbed 4.5.0, platform = raspberrypi, board = pico, framework = arduino): a consumer sketch that calls FastLED.addLeds<WS2812B, 3, GRB>() and FastLED.show() compiles and links (132,530 bytes flash, 44,868 bytes RAM).
    • Arduino-Pico 5.7.0 (bash compile rp2040 --examples Blink, board rpipico): builds successfully (102,092 bytes flash, 9,652 bytes RAM).

    These are compile and link results only. If it still fails for you, reopen this issue and include your core/platform version and the full build log, starting at the first error.

  16. moved this from Triage to Done in FastLED Trackeron Nov 22, 2026
  17. dakhnod commented on Nov 22, 2026

    @dakhnod
    Author

    Still having issues with WiFi, only setting chain+ solved this somehow

  18. added
    sanitized
    and removed
    sanitized
    on Nov 22, 2026
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

    sanitizedstatus: triagetype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions