Repository navigation
fix(nrf52): defer PCA10056 pin map for TARGET_XIAOBLE_NRF52840_SENSE - #2638
Conversation
Follow-up to #2636. After switching `xiaoblesense_adafruit` to reuse the `nrf52840_dk_adafruit` BSP variant (which defines `ARDUINO_NRF52840_PCA10056`), the master post-merge build failed with "#error Cannot define more than one board at a time": both the PCA10056 pin map block and the new TARGET_XIAOBLE block fired. Same shape as PR #2627 fixed for SuperMini / nice!nano / nRFMicro. Add `TARGET_XIAOBLE_NRF52840_SENSE` to the `__FASTLED_NRF52_USER_TARGET_OVERRIDE` OR-chain at the top of `fastpin_arm_nrf52_variants.h` so the PCA10056 block stands down when the XIAO target is set. Refs #2634 (#2636 post-merge run 26700041082). Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR extends the nRF52 fastpin platform configuration to recognize the XIAO BLE Sense target by adding ChangesnRF52 Platform Variant Support
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Possibly related PRs
Poem
✨ 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 |
… LTO bug (#2642) Post-#2636 / #2638 post-merge build still fails — but now on a pre-existing toolchain bug, not on the variant.h issue this PR addressed. arm-gnu-toolchain 15.2.rel1 + Adafruit nRF52 BSP + LTO emits thousands of "offset out of range" assembler errors in the LTO-temp output: .lto-tmp/ccXXXXXX.s:13834: Error: offset out of range lto-wrapper: fatal error: arm-none-eabi-gcc returned 1 exit status collect2: error: ld returned 1 exit status Affects xiaoblesense_adafruit, supermini_nrf52840, and likely the other nRF52840 Adafruit-BSP boards. Tracked separately in #2641. CI-unblock: add `build_unflags=[-flto]` + `build_flags=[-fno-lto]` to the xiaoblesense_adafruit board entries so this board's CI goes green now. Other affected boards can adopt the same workaround once verified. Refs #2634 (variant.h), #2636 (variant fix), #2638 (PCA10056 guard), #2641 (LTO toolchain bug). Co-authored-by: Claude Opus 4.7 <[email protected]>
#2655) xiaoblesense_adafruit post-merge run 26700835813 succeeded at every compile step (all 65 example builds green — the variant.h / PCA10056 / LTO fixes from #2636 / #2638 / #2642 all worked) but the runner was killed 37 minutes after the last log line during the Optimization Report step (`uv run ci/optimization_report.py --first`). Both Symbol Analysis and Optimization Report are post-build analysis steps already marked `continue-on-error: true`, so they should never turn a green build red. A 5-minute `timeout-minutes` cap keeps them from hanging the entire job when a downstream script (e.g. fbuild vs PIO artifact-path divergence — readelf/nm/objdump returned exit 1 on the firmware.elf earlier in the same run) gets stuck in a wait loop. The build itself still passes; the report is just skipped for that run. Filed the underlying optimization_report.py / symbol_analysis_runner.py fbuild-path bug separately for proper investigation. Refs #2641. Co-authored-by: Claude Opus 4.7 <[email protected]>
Summary
Follow-up to #2636. The xiaoblesense_adafruit board now reuses the
nrf52840_dk_adafruitBSP variant (which definesARDUINO_NRF52840_PCA10056). The post-merge master build 26700041082 failed with:```
fastpin_arm_nrf52_variants.h:857:10: error: #error "Cannot define more than one board at a time"
fastpin_arm_nrf52_variants.h:48:26: error: redefinition of 'class fl::FastPin<0>'
... (and ~30 more redefinitions)
```
Both the PCA10056 variant block and the new TARGET_XIAOBLE block were firing.
Same shape as PR #2627 (which fixed the same collision for SuperMini / nice!nano / nRFMicro). Add
TARGET_XIAOBLE_NRF52840_SENSEto the__FASTLED_NRF52_USER_TARGET_OVERRIDEOR-chain so the PCA10056 block stands down when the XIAO target is set.Closes the regression introduced by #2636.
Test plan
build_xiaoblesense_adafruitjob on master is green after mergeadafruit_xiaoblesenseworkflow on master is green after merge🤖 Generated with Claude Code
Summary by CodeRabbit