Repository navigation
feat(nrf51): native nordicnrf51 platform support (BBC micro:bit) - #1955
Merged
Merged
Conversation
Add Platform::NordicNrf51 and an nrf51 orchestrator that builds Arduino sketches against sandeepmistry arduino-nRF5 (framework-arduinonordicnrf5 1.700.240108, platform-nordicnrf51's ~1.700.0 pin) on the shared arm-none-eabi toolchain with the generic_arm compiler/linker: Cortex-M0, no FPU, no-SoftDevice board ldscript (nrf51_xxaa.ld) from SDK/components/toolchain/gcc, PIO nrf5.py include paths and defines (ARDUINO=10805, ARDUINO_ARCH_NRF5, NRF5, NRF51, USE_LFXO default). Adds tests/platform/bbcmicrobit fixture.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds native
nordicnrf51platform support (BBC micro:bit v1 / nRF51822), unblocking FastLED/FastLED#5119 (nRF51 has no build coverage because fbuild 2.5.51 reportsunsupported platform: nordicnrf51).Change
fbuild-build-arm/src/nrf51/module (Cortex-M0,-mcpu=cortex-m0 -mthumb, no FPU, no-SoftDevicenrf51_xxaa.ld), reusing the generic ARM compiler/linker like the LPC M0+ path. Separate from nRF52 because that path is tied to the Adafruit core (TinyUSB/FreeRTOS/SoftDevice).fbuild-library/src/library/nrf51_core.rs: checksum-pinnedframework-arduinonordicnrf51.700.240108 (the version PlatformIO's nordicnrf51 platform pins).ARDUINO=10805 ARDUINO_ARCH_NRF5 NRF5 NRF51, board clock define (USE_LFRCfor micro:bit;USE_LFXOdefault).-Wno-registerfor C++ (core CMSIS headers under C++17).tests/platform/bbcmicrobit/.Evidence
--clean): Flash 2.68KB / 256KB, RAM 232 B / 16KB,firmware.elf+firmware.hexproduced.bash testpasses (incl. 12 new nrf51 unit tests);soldr cargo clippy --workspace --all-targets -- -D warningsandsoldr cargo fmt --allclean;uv run --script lintexit 0.Limits
nrf51_core.rsis added todylints/ban_std_pathbuf/src/allowlist.txt: the remainingPathBufis forced by the sharedPackage::ensure_installedsignature, as for every other package file.