Repository navigation
Description
Parent: #5024. Related native optimization child: #5042. 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: FL_IS_ARM_LPC_845 or804 or11_USB or15.
- Dispatch chain: platforms.h FL_IS_ARM_LPC→lpc/fastled_arm_lpc.h→thisheader; nativeDEFPIN142underfamilycondition34, no FORCEexclusion.
- Source SHA-256:
513f40498c1c592ea5ed61f305f80ce290f13fa54039add6c92eb1bb690e287d. src/platforms/arm/lpc/fastpin_arm_lpc.h:142:#define _FL_DEFPIN(PIN) template<> class FastPin<PIN> : public _ARMPIN<PIN, (1u << (PIN))> {};src/platforms/arm/lpc/fastpin_arm_lpc.h:148:_FL_DEFPIN(0); _FL_DEFPIN(1); _FL_DEFPIN(2); _FL_DEFPIN(3);
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 LPC845, LPC804, LPC11 USB and LPC15 family branches with their actual SDK headers and package-legal mappings.
- 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
#5152 (in the merge queue) turns this silent override into an explicit compile-time error: FASTLED_FORCE_SOFTWARE_PINS on LPC now fails with a clear #error. It cannot simply be honored. LPC's fl::pinMode and fl::digitalWrite are the no-op backend (pin_noop.hpp), so a forced NoPinMapPin would silently drive nothing; the clockless drivers would also dereference its null port().
Still open on this issue:
fix(lpc): reject FASTLED_FORCE_SOFTWARE_PINS instead of silently igno…
zackees commentedon Nov 22, 2026
Closing, narrowed to the parts that apply to this issue's route.
LPC845 / LPC804: done.
FASTLED_FORCE_SOFTWARE_PINS, so the explicit native specializations no longer override the forced selection.--pin-toggle-rxrun both pass.LPC11U / LPC15: tracked elsewhere.
#errorinstead of silently ignoring them, so the silent selection defect is gone there too.Out of scope: per the issue text, the GPIO store, race and timing acceptance stays with #5042.