Repository navigation
Description
Parent: #5024. Related native optimization child: #5047. Its GPIO store/race/timing acceptance remains unchanged; this functional selection defect is a separate prerequisite and cannot close that optimization task. In particular, #5047 already explicitly requires the actual forced fallback in its board matrix: this child is a prerequisite for satisfying that existing criterion, not a claim that the configuration was outside its coverage.
FASTLED_FORCE_SOFTWARE_PINS chooses the primary FastPin<PIN> : detail::ForcedSoftwarePin<PIN> in src/fl/system/fastpin_base.h. The selected platform route below still defines explicit native specializations, which override that primary. Safe fallback methods from #5056 cannot fix selection of a different type.
Source checkpoint: b6935e7b1311ce182a71138c6ee6ca479b188bc2.
- Conditional route: NRF51 defined.
- Dispatch chain: platforms.h NRF51→nrf51/fastled_arm_nrf51.h→thisheader; platforms/arm/fastpin_arm.h NRF51 alsoselects. Active #else of#if0 definesnative_ARMPIN, definitions0..31unexcluded.
- Source SHA-256:
9a06b3acfa64cae167268c02a7c1760066af6eb1842d08f0c175d285979d43c9. src/platforms/arm/nrf51/fastpin_arm_nrf51.h:61:#define _FL_DEFPIN(PIN) template<> class FastPin<PIN> : public _ARMPIN<PIN, 1 << PIN, \src/platforms/arm/nrf51/fastpin_arm_nrf51.h:110:#define _FL_DEFPIN(PIN) template<> class FastPin<PIN> : public _ARMPIN<PIN, 1 << PIN> {};
Source-confirmed conditional finding only: no new forced SDK build, runtime waveform or physical timing measurement is claimed.
The generated audit records all query results, 103 inspected source paths, 35 definition sites, guards and include edges. Its source positives were independently reviewed. Local audit: .build/spi-force-selection-audit/report.json, SHA-256 ebb780d4d10fc2a0981f505e5c355dedb5636dfa9fe313b5650a6f96bf42407b. No filename/string-absence heuristic alone establishes this finding.
Required acceptance:
- Exercise the active nRF51 implementation, BBC micro:bit v1/nRF51822 and supported RFduino BSP routes; inactive #if 0 code is not a supported target control.
- Use actual SDK selected-type and executed-route controls with force off/on, mapped and NO_PINMAP configurations. Include-only and real generic software-SPI producers must compile in the intended modes; independent MY9221 users must remain compatible where supported. A macro appearing in a producer or a successful native build is not forced-fallback evidence.
- Preserve native defaults and applicable pin validity, logical mapping and user exclusions. Prove ordering, initialization LOW, single-bit/byte/bulk GPIO behavior and subsequent pin reuse on the actual selected implementation. Keep native store-count/timing optimization controls separate.
- Restore the old unguarded-specialization defect and require the same type/route gate to fail for the intended reason. An unrelated compiler/setup failure is insufficient. Bind source, SDK/compiler/configuration, commands and actual artifacts in the managed gate.
- Recheck actual fallback callees and code/data placement for timing-sensitive consumers. Native IRAM/SRAM receipts cannot certify a newly selected software fallback. No GPIO latency credit or physical-speed claim is authorized by this selection fix.
This issue is unresolved. Closing it must not close the related optimization issue or imply electrical/timing validation.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
ci(lint): amnesty FASTLED_NO_PINMAP guard in nRF51 fastpin (#5069)
fix(nrf51): honor FASTLED_FORCE_SOFTWARE_PINS without breaking clockl…
zackees commentedon Nov 22, 2026
Closing with an accepted limitation.
Fix: #5156 (6cda05c). nRF51
_FL_DEFPINalways emits a nativeNrf51HwPin<PIN>and adds theFastPin<PIN>specialization only when software pins are not forced (src/platforms/arm/nrf51/fastpin_arm_nrf51.h:92-117). The header definesFASTLED_NO_PINMAPitself (:12-13), so forced pins areNoPinMapPinthrough the arduino-nRF5 core. The clockless and SPI0 drivers keepNrf51HwPin(clockless_arm_nrf51.h,fastspi_arm_nrf51.h), so forced mode never hands them a nullport().Proven by:
ci/tests/test_nrf51_forced_software_pins.py, which fails on the old headers, and real arm-none-eabi nRF51 builds with static type assertions in both modes. The forced assertion fails on the old headers.Accepted limitations:
The #5031 binding and managed audit gate are replaced by a rescoped host-side gate, tracked in #5031.