Skip to content

ESP32 SPI clockless engine: reused SPI channel loses its pin after another driver used it #4907

Closed

Description

@zackees

Found while fixing #4905 (the same bug class in the RMT5 TX engine).

ChannelEngineSpi::acquireChannel() reuses a cached SPI host for the same pin (src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp:671, "SPI hardware still allocated - reuse directly"). If another peripheral (RMT, PARLIO) or pinMode() routed that pin elsewhere in between, the cached host keeps transmitting into a pin that no longer carries its signal. The #4905 fix reclaims the pin in the RMT5 TX engine; SPI does not do this yet.

Evidence (one boot each, AutoResearch runSingleTest, 100 LEDs, WS2812B-V5)

Acceptance

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    The host-test half of the acceptance moves to #4910: the SPI engine has no peripheral seam yet. The behaviour is verified on hardware in #4909.

  2. added a commit that references this issue on Oct 23, 2026
  3. moved this from Triage to Done in FastLED Trackeron Oct 23, 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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions