Skip to content

MBED support - NRF51822 etc #179

Closed as not planned
Closed as not planned

Description

@dmf3030

Saw there might be work on either the NRF51822 platform or possibly mbed. Want to put my vote in for mbed especially because it now has support for the NRF51822 and a wide variety of STM and other chips, by porting the library to an mbed native you would add a bunch of new chip support in one go.

Thanks for the great library.

Activity

  1. focalintent commented on Jun 7, 2015

    @focalintent
    Contributor

    There is already nrf51822 support. Making this an mbed library would not automatically get me more chipset support

    • [ ]
  2. focalintent commented on Jun 7, 2015

    @focalintent
    Contributor

    The library is too low level for that - supporting more chipsets requires doing low level io implementations.

  3. dmf3030 commented on Jun 7, 2015

    @dmf3030
    Author

    Understood and that makes sense. With existing nrf support I'll look at pulling fastled into an mbed project im working on based on the nrf and see if I can get it to work.

  4. added this to the Future backlog milestone on Jul 14, 2015
  5. shlomozippel commented on Jan 26, 2016

    @shlomozippel
    Contributor

    I got FastLED working on the nrf51822 using the RedBearLabs NRF arduino core which has mbed support: https://github.com/RedBearLab/nRF51822-Arduino

    Note: I am using a module that doesn't have an external oscillator. If you are too then you'll have to remove the code that enables it from nrf_system.c

  6. added
    type: feature
    platform: nrf52
    area: core
    status: stale
    status: triage
    on Apr 16, 2026
  7. zackees commented on Jun 3, 2026

    @zackees
    Member

    Tracked in FastLED/fbuild#388 for nRF / mbed fbuild platform/build support validation.

    That fbuild issue is scoped to board metadata, toolchain/backend support, and FastLED smoke-build evidence. Any remaining FastLED source/platform-code blocker should stay linked from both sides.

  8. zackees commented on Jun 3, 2026

    @zackees
    Member

    fbuild status (tracker FastLED/fbuild#388)

    Quick status from the fbuild side after validating the current nRF / mbed surface today (2026-06-03):

    nRF52840 — supported. All five fbuild fixtures build clean against the Adafruit nRF52 Arduino core (framework-arduinoadafruitnrf52 1.10601.0):

    • adafruit_feather_nrf52840_sense, nrf52840_dk, supermini_nrf52840, nice_nano_nrf52840, nrfmicro_nrf52840

    nRF52832 — board metadata present, build path missing. fbuild ships board JSONs (nrf52_dk, nicla_sense_me, adafruit_feather_nrf52832, etc.), but crates/fbuild-build/src/nrf52/mcu_config.rs only accepts mcu=nrf52840 and returns unsupported NRF52 MCU: 'nrf52832'. Adding nrf52832 would need a sibling nrf52832.json (Cortex-M4 hard-float, s132 SoftDevice, NRF52832_XXAA) and the ldscript alias is already mapped (nrf52_xxaa.ld -> nrf52832_s132_v{N}.ld).

    nRF51822 / mbed — not supported. Platform::from_platform_str does not recognize nordicnrf51; the framework would also be mbed which fbuild only routes for a fixed set of STM32-based mbed variants today (GIGA | PORTENTA_H7_M7 | GENERIC_STM32H747_M4 | NICLA_VISION | OPTA). There is no mbed framework path for any nRF chip in fbuild, and no generic nordicnrf51 orchestrator. nRF51 is also deprecated upstream (NCS dropped it).

    FastLED-side: the bigger blocker is FastLED's own platform detection in src/led_sysdefs.h — it errors out for nRF52832/Nicla even with a working build pipeline (see #1379). That work has to land regardless of which build tool is used.

    Tracker for the fbuild support side: FastLED/fbuild#388 (now closed — see comment there for full evidence).

  9. zackees commented on Aug 1, 2026

    @zackees
    Member

    Closing as not planned — the premise was addressed in 2015 and the platform has since been deprecated upstream.

    The ask was to port FastLED to mbed native, on the theory that "by porting the library to an mbed native you would add a bunch of new chip support in one go."

    @focalintent answered that directly at the time, and the answer still holds: "The library is too low level for that — supporting more chipsets requires doing low level io implementations." FastLED's clockless output is cycle-counted bit-banging against specific GPIO register layouts; an mbed HAL abstraction sits above the layer where that work happens, so it wouldn't have delivered the chipsets-for-free outcome the request was premised on.

    Current state, from the 2026-06-03 platform assessment (fbuild#388, now closed):

    • nRF52840 — supported. All five fbuild fixtures build clean against the Adafruit nRF52 core: adafruit_feather_nrf52840_sense, nrf52840_dk, supermini_nrf52840, nice_nano_nrf52840, nrfmicro_nrf52840.
    • nRF52832 — board metadata present, build path missing. crates/fbuild-build/src/nrf52/mcu_config.rs accepts only mcu=nrf52840.
    • nRF51822 / mbed — not supported, and not planned. Platform::from_platform_str doesn't recognize nordicnrf51, and the mbed framework routes only to a fixed set of STM32-based variants (GIGA, Portenta H7 M7, generic STM32H747 M4, Nicla Vision, Opta). nRF51 is deprecated upstream — NCS dropped it. Building a generic mbed path now, for a chip family Nordic itself has retired, isn't a good use of anyone's time.

    For anyone landing here from a search: @shlomozippel got FastLED running on the nRF51822 in 2016 via the RedBearLabs nRF51822 Arduino core (note their caveat about removing the external-oscillator init if your module lacks one). That remains the practical route.

    The live nRF work worth following is #1379 — FastLED's own platform detection in src/led_sysdefs.h errors out for nRF52832/Nicla even with a working build pipeline. That's a real blocker on a non-deprecated chip, and it has to land regardless of build tooling.

  10. moved this from Triage to Done in FastLED Trackeron Aug 1, 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

    area: coreplatform: nrf52status: stalestatus: triagetype: feature

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions