Repository navigation
fix(nrf52): unbreak xiaoblesense (no-suffix) — variant.h not found (fixes #2643) - #2644
Conversation
…dafruit variant The `xiaoblesense` board (sister to `xiaoblesense_adafruit` fixed in #2636) 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 on every example: cores/nRF5/Uart.h:27:10: fatal error: variant.h: No such file cores/nRF5/delay.h:28:10: fatal error: variant.h: No such file Same fix as PR #2636 for the sister board: switch to the stock nordicnrf52 platform with `framework-arduinoadafruitnrf52@^1.10601.0`, use `nrf52840_dk_adafruit` (whose variant directory IS shipped) as the board JSON, and add `TARGET_XIAOBLE_NRF52840_SENSE` so the FastLED fastpin variant block in `src/platforms/arm/nrf52/fastpin_arm_nrf52_variants.h` (set up by PR #2636) keeps the correct pin mapping. Also carries the same arm-gnu 15.2.rel1 LTO workaround (PR #2642) — without it the same LTO offset-overflow that hit xiaoblesense_adafruit would hit here. Fixes #2643
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR fixes the failing ChangesXIAOBLESENSE_NRF52 Build Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…fication Allows the workflow to be dispatched against feature branches via `gh workflow run` so the xiaoblesense build can be verified on Linux CI before merge. Without this, the workflow only fires on push to master, which means PRs can't pre-verify and bugs land before CI catches them. No behavioral change for existing master pushes.
Summary
xiaoblesenseboard (no_adafruitsuffix).nrf52840_dk_adafruitvariant +TARGET_XIAOBLE_NRF52840_SENSEdefine, same as the merged sister.Root cause
XIAOBLESENSE_NRF52inci/boards.pystill pointed at the maxgerhardt nordicnrf52 platform withreal_board_name="xiaoble_adafruit". Adafruit BSP 1.10601.0 ships novariants/xiaoble_adafruit/directory, so the Adafruit core's#include "variant.h"(fromUart.h,delay.h) fails on every example.Failing run: 26700353359 on master @
1d9a638.Fix
Mirror
XIAOBLESENSE_ADAFRUIT_NRF52(PR #2636): pointreal_board_nameat the shippednrf52840_dk_adafruitvariant, set the BSP package + framework, addTARGET_XIAOBLE_NRF52840_SENSEfor the existing FastLED fastpin variant block, and include the same-fno-ltoLTO workaround from PR #2642.No FastLED source changes needed — the fastpin variant block is already in place from PR #2636 / #2638.
Test plan
nrf52_xiaoblesenseworkflow goes green post-merge.ARDUINO_BSP_VERSIONquote-stripping fbuild bug noted in PR fix(nrf52): unbreak xiaoblesense_adafruit by reusing nrf52840_dk_adafruit variant #2636 — out of scope here, affects all Adafruit-BSP nRF52 boards on Windows.)Fixes #2643
🤖 Generated with Claude Code
Summary by CodeRabbit