Skip to content

track(platform): validate nRF / mbed FastLED build support #388

Closed

Description

@zackees

Context

Open FastLED issues ask for mbed/nRF support and report Arduino Nicla Sense Me failing platform detection. fbuild has nRF52 board metadata and fixtures, with some nRF51 metadata present, so this tracker should capture the remaining fbuild support/validation work.

Source FastLED issues

Acceptance criteria

  • Verify current fbuild builds for representative nRF52 FastLED targets.
  • Determine whether nRF51 / NRF51822 is supported by fbuild or only present as board metadata.
  • Add a Nicla Sense Me or equivalent nRF52832/mbed smoke fixture if fbuild can support that Arduino core path.
  • Record any remaining FastLED-side platform detection or mbed backend blocker separately from fbuild build support.
  • Comment back on the source FastLED issues with the fbuild tracker, result, and any remaining blocker.

Activity

  1. added
    enhancement
    priority: p2
    tracking
    on Jun 3, 2026
  2. zackees commented on Jun 3, 2026

    @zackees
    MemberAuthor

    Resolution

    Audited the nRF / mbed FastLED build support in fbuild on 2026-06-03 against the four acceptance criteria. Closing with the findings recorded below.

    1. nRF52 representative targets build clean

    All five existing nRF52840 fixtures build green against the Adafruit nRF52 Arduino core (framework-arduinoadafruitnrf52 1.10601.0, arm-none-eabi-gcc 15.2.1):

    Fixture Env Flash RAM Status
    tests/platform/adafruit_feather_nrf52840_sense/ nrf52840_sense 32.27KB / 796KB 230KB / 243KB ok
    tests/platform/nrf52840_dk/ nrf52840_dk 32.38KB / 1MB 230KB / 256KB ok
    tests/platform/supermini_nrf52840/ supermini_nrf52840 32.38KB / 1MB 230KB / 256KB ok
    tests/platform/nice_nano_nrf52840/ nice_nano_nrf52840 32.38KB / 1MB 230KB / 256KB ok
    tests/platform/nrfmicro_nrf52840/ nrfmicro_nrf52840 32.38KB / 1MB 230KB / 256KB ok

    Quoted-define plumbing for ARDUINO_BSP_VERSION (#377) is verified working end-to-end on these fixtures. (Earlier transient failure traced to a stale daemon from a sibling worktree predating #377 — not a code bug.)

    2. nRF51 / NRF51822 — board metadata only, no build path

    • Platform::from_platform_str in crates/fbuild-core/src/lib.rs does NOT recognize nordicnrf51. Building any nRF51 fixture returns unsupported platform: nordicnrf51.
    • 7 nRF51 board JSONs ship in crates/fbuild-config/assets/boards/json/ (nrf51_dk.json, nrf51_beacon.json, nrf51_dongle.json, calliope_mini.json, bbcmicrobit.json, Sinobit.json, bluz_dk.json, etc.) but no orchestrator, no MCU config, no toolchain wiring exists.
    • nRF51 is also EOL upstream (Nordic Connect SDK dropped it). Recommendation: leave as metadata-only; do not add an orchestrator unless a concrete consumer asks.

    3. Nicla Sense Me / nRF52832 — board metadata only, no build path

    Two stacked gaps prevent adding a smoke fixture:

    • crates/fbuild-build/src/nrf52/mcu_config.rs::get_nrf52_config_for_mcu only accepts nrf52840; building any nrf52832 board (incl. nrf52_dk, adafruit_feather_nrf52832, nicla_sense_me) fails with config error: unsupported NRF52 MCU: 'nrf52832'. Adding nrf52832 needs a sibling nrf52832.json (Cortex-M4 hard-float, s132 SoftDevice, NRF52832_XXAA define) — the linker-script alias nrf52_xxaa.ld -> nrf52832_s132_v{N}.ld is already in place at crates/fbuild-packages/src/library/nrf52_core.rs:256.
    • Nicla Sense Me uses the arduino:mbed_nicla core (not Adafruit's nRF5 core, not the existing STM32-mbed path). fbuild's Arduino-mbed orchestrator at crates/fbuild-build/src/stm32/orchestrator/arduino_mbed.rs:24-29 only routes GIGA | PORTENTA_H7_M7 | GENERIC_STM32H747_M4 | NICLA_VISION | OPTA (all STM32H7-based mbed variants). There is no nRF mbed routing.

    Since fbuild cannot currently support the Arduino mbed nRF52832 core path, no Nicla smoke fixture was added — adding one today would only document the gap, not exercise a working code path. The follow-up gaps below capture the real work.

    4. FastLED-side blockers (recorded for cross-linking, separate from fbuild)

    • led_sysdefs.h:55 (This platform isn't recognized by FastLED... yet.) is the original Nicla failure from Porting of FastLed library on Arduino Nicla Sense Me platform FastLED#1379. It blocks ANY toolchain, not just fbuild. Must be fixed in FastLED itself.
    • FastLED has no FASTLED_* MCU define branch for nRF52832 or for arbitrary mbed ARDUINO_ARCH_MBED targets; that's needed before any build pipeline can produce a working binary.

    Follow-up work (not blocking this tracker)

    Separately filable as new fbuild issues if/when a consumer wants them:

    • Add nrf52832 to nrf52/mcu_config.rs (sibling JSON; ARM Cortex-M4 hard-float; s132 SoftDevice). Modest scope — most plumbing already exists.
    • Add nordicnrf52 Arduino-mbed core support (Nicla Sense Me, etc.). Larger — needs an ArduinoMbedNrfCore package alongside ArduinoMbedCore, plus orchestrator dispatch for mbed variants that aren't on STM32H7.
    • Add nordicnrf51 Platform enum variant + orchestrator (only if a consumer needs it; chip is EOL upstream).

    Comments back

    PR

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

    enhancementpriority: p2tracking

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions