Repository navigation
Description
Parent: #5024. Related native optimization child: #5045. Its GPIO store/race/timing acceptance remains unchanged; this functional selection defect is a separate prerequisite and cannot close that optimization task.
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: ARDUINO_GIGA or ARDUINO_GIGA_M7; ARMfastpindispatchalsoSTM32H7.
- Dispatch chain: platforms.h GIGA→giga/fastled_arm_giga.h→fastpin_arm_giga.h→armpin.h; macrodefined13, invokedbyguardedGIGApinmap30..203withoutFORCEexclusion.
- Source SHA-256:
98a45961bae471b3d9dbdb85a0ca3be029c6e0c939c0367e9b344252f2237fdb. src/platforms/arm/giga/armpin.h:13:#define _FL_DEFPIN(PIN, BIT, L) template<> class FastPin<PIN> : public _ARMPIN<PIN, BIT, 1 << BIT, _R(GPIO ## L)> {};
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 ARDUINO_GIGA and ARDUINO_GIGA_M7 routes with the actual mbed/H747 SDK and logical board pin mapping.
- 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
zackees commentedon Nov 7, 2026
#5150 (in the merge queue) makes FASTLED_FORCE_SOFTWARE_PINS select the software FastPin on GIGA. The pin map now always emits a native GigaHwPin, which the clockless driver uses, and specializes FastPin only outside forced mode. Moving the map behind the guard alone would have crashed, because forced FastPin is NoPinMapPin with a null port().
Still open on this issue:
fix(giga): honor FASTLED_FORCE_SOFTWARE_PINS without breaking clockle…
zackees commentedon Nov 22, 2026
Closing with an accepted limitation. The planned split for the Renesas/STM32/LPC clockless null-port dereference is not needed, because master already rejects forced pins at compile time in all three:
clockless_arm_renesas.h:30(Clockless drivers dereference a null port under forced software pins with no pin map #5136).clockless_arm_lpc.h:48-51andclockless_arm_lpc_plu.h:296-299(fix(lpc): native LPC845/LPC804 pin backend; honor forced software pins #5261).Fix: #5150 (dce58a3). The GIGA pin map always emits a native
GigaHwPin(src/platforms/arm/giga/armpin.h), which the clockless driver uses.FastPinis specialized only outside forced mode (fastpin_arm_giga.h:201-205), soFASTLED_FORCE_SOFTWARE_PINSselects the software pin without handing the clockless loop a nullport().Proven by:
ci/tests/test_giga_forced_software_pins.pyand real-SDK GIGA compile probes in both modes.Accepted limitations:
The #5031 binding is replaced by a rescoped host-side gate, tracked in #5031.