You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
track(platform): validate nRF / mbed FastLED build support #388
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.
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.)
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)
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).
Activity
zackees commentedon Jun 3, 2026
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-arduinoadafruitnrf521.10601.0, arm-none-eabi-gcc 15.2.1):tests/platform/adafruit_feather_nrf52840_sense/nrf52840_sensetests/platform/nrf52840_dk/nrf52840_dktests/platform/supermini_nrf52840/supermini_nrf52840tests/platform/nice_nano_nrf52840/nice_nano_nrf52840tests/platform/nrfmicro_nrf52840/nrfmicro_nrf52840Quoted-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_strincrates/fbuild-core/src/lib.rsdoes NOT recognizenordicnrf51. Building any nRF51 fixture returnsunsupported platform: nordicnrf51.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.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_mcuonly acceptsnrf52840; building any nrf52832 board (incl.nrf52_dk,adafruit_feather_nrf52832,nicla_sense_me) fails withconfig error: unsupported NRF52 MCU: 'nrf52832'. Adding nrf52832 needs a siblingnrf52832.json(Cortex-M4 hard-float, s132 SoftDevice,NRF52832_XXAAdefine) — the linker-script aliasnrf52_xxaa.ld -> nrf52832_s132_v{N}.ldis already in place atcrates/fbuild-packages/src/library/nrf52_core.rs:256.arduino:mbed_niclacore (not Adafruit'snRF5core, not the existing STM32-mbed path). fbuild's Arduino-mbed orchestrator atcrates/fbuild-build/src/stm32/orchestrator/arduino_mbed.rs:24-29only routesGIGA | 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_*MCU define branch for nRF52832 or for arbitrary mbedARDUINO_ARCH_MBEDtargets; 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:
nrf52/mcu_config.rs(sibling JSON; ARM Cortex-M4 hard-float; s132 SoftDevice). Modest scope — most plumbing already exists.ArduinoMbedNrfCorepackage alongsideArduinoMbedCore, plus orchestrator dispatch for mbed variants that aren't on STM32H7.nordicnrf51Platform enum variant + orchestrator (only if a consumer needs it; chip is EOL upstream).Comments back
PR
adafruit_feather_nrf52840_senseto the tests/platform README (fixture existed but was undocumented).docs(tests): list adafruit_feather_nrf52840_sense fixture (#398)