Skip to content

fix(esp32): forced software pins + FL_ESP32_ENABLE_FAST_SOFTWARE_SPI=0 likely fails to link software SPI (delaycycles<N> for N > 50) #5393

Closed

Description

@zackees

Follow-up from #5067 / PR #5391.

PR #5391 fixed a link failure on ESP32-C6 with FASTLED_FORCE_SOFTWARE_PINS: SoftwareSPIOutput<2, 3, DATA_RATE_KHZ(250)> failed with undefined reference to fl::delaycycles<314> / <317>. The forced route had no BitbangPin override, so it fell back to the generic tiny-delay, which is only defined for 50 cycles or fewer. #5391 gives the forced route the inline cycle-counter delay that the fast software-SPI path already uses.

Suspected gap: with the fast path opted out (FL_ESP32_ENABLE_FAST_SOFTWARE_SPI=0, the legacy branch of src/platforms/esp/32/core/fastpin_esp32.h), the same generic delay is still selected. A slow enough software-SPI rate (e.g. DATA_RATE_KHZ(250)) would then fail to link the same way. Not yet built: this is inferred from the code path, not observed.

Acceptance

  • An esp32c6 SDK build of SoftwareSPIOutput<2, 3, DATA_RATE_KHZ(250)> with FL_ESP32_ENABLE_FAST_SOFTWARE_SPI=0, with and without FASTLED_FORCE_SOFTWARE_PINS. Either it links, or this issue is confirmed and fixed so it does.
  • If confirmed, a contract test alongside ci/tests/test_esp32_forced_software_pins.py that fails on the unfixed header.

Activity

  1. added
    sanitized
    on Nov 22, 2026
  2. moved this from Triage to Done in FastLED Trackeron Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions