Skip to content

nrf52_xiaoblesense build red: variant.h not found (sister-board to #2634) #2643

Closed

Description

@zackees

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 Blink succeeds on Linux CI.
  • nrf52_xiaoblesense workflow goes green post-merge.

Related

Activity

  1. added a commit that references this issue on May 31, 2026
    25e444c
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions