Repository navigation
Description
Symptom
Workflow nrf52_xiaoblesense is red on master across recent runs (e.g. run 26700353359 at 1d9a638):
/home/runner/.../platforms/dl-framework-arduinoadafruitnrf52-1.10601.0/.../cores/nRF5/Uart.h:27:10:
fatal error: variant.h: No such file or directory
/home/runner/.../platforms/dl-framework-arduinoadafruitnrf52-1.10601.0/.../cores/nRF5/delay.h:28:10:
fatal error: variant.h: No such file or directory
Every example FAILED (AnalogOutput, Animartrix, AnimartrixRing, ...).
Root cause
The xiaoblesense board entry in ci/boards.py (line 888) is built against the maxgerhardt nordicnrf52 platform pointing at real_board_name="xiaoble_adafruit" — but the Adafruit BSP at v1.10601.0 ships no variants/xiaoble_adafruit/ directory, so the Adafruit core's #include "variant.h" (transitively from Uart.h, delay.h, ...) fails the dynamic-include lookup.
This is the identical pattern that #2634 / PR #2636 fixed for the sister xiaoblesense_adafruit board — but xiaoblesense (no suffix) was left on the broken board JSON. Same fix shape applies.
Fix
Mirror PR #2636 for XIAOBLESENSE_NRF52:
XIAOBLESENSE_NRF52 = Board(
board_name="xiaoblesense",
real_board_name="nrf52840_dk_adafruit", # variant exists in BSP 1.10601.0
platform="nordicnrf52", # stock PIO platform, not maxgerhardt
framework="arduino",
platform_packages="framework-arduinoadafruitnrf52@^1.10601.0",
defines=[
"TARGET_XIAOBLE_NRF52840_SENSE", # routes through existing Seeed XIAO BLE Sense fastpin variant block
"FASTLED_USE_COMPILE_TESTS=0",
],
board_build_core="nRF5",
)The TARGET_XIAOBLE_NRF52840_SENSE route through src/platforms/arm/nrf52/fastpin_arm_nrf52_variants.h is the same one PR #2636 set up — the variant block is already in place from that PR, so no FastLED-side source changes are needed for this board.
Test plan
-
bash compile xiaoblesense --examples Blinksucceeds on Linux CI. -
nrf52_xiaoblesenseworkflow goes green post-merge.
Related
- build: xiaoblesense_adafruit CI red — variant.h missing from Adafruit nRF52 BSP #2634 / PR fix(nrf52): unbreak xiaoblesense_adafruit by reusing nrf52840_dk_adafruit variant #2636 (the sister-board fix this PR mirrors).
- #warning "Unknown nRF52840 variant" #2422 (original Adafruit-BSP variant-aliasing pattern).
Activity
fix(nrf52): unbreak xiaoblesense (no-suffix) — variant.h not found (f…