Skip to content

ESP32-S31 (IDF 6.1): build fails on duplicate FLEX_IO BusTraits and missing ETS_GPIO_INTR_SOURCE #5430

Done

Description

@To0wnn

FastLED 3.10.10 does not compile for the ESP32-S31 on ESP-IDF 6.1. A one-LED WS2812 sketch is enough to show it.

Setup

  • pioarduino platform-espressif32 61.04.00 (Arduino core 4.0.0, ESP-IDF 6.1.1, the first release with ESP32-S31 support)
  • board esp32-s31-coreboard-1
  • fastled/[email protected]
#include <Arduino.h>
#include <FastLED.h>
CRGB leds[1];
void setup() { FastLED.addLeds<WS2812, 60, GRB>(leds, 1); }
void loop() { leds[0] = CRGB::Red; FastLED.show(); delay(500); }

1. Two FLEX_IO drivers define the same bus traits

On the S31 both the I2S-SPI and the PARLIO driver are enabled, and both specialize BusTraits<Bus::FLEX_IO, 0>:

src/platforms/esp/32/drivers/parlio/bus_traits.h:28:19: error: redefinition of 'struct fl::BusTraits<fl::Bus::FLEX_IO, 0>'
src/platforms/esp/32/drivers/i2s_spi/bus_traits.h:49:19: note: previous definition of 'struct fl::BusTraits<fl::Bus::FLEX_IO, 0>'
src/platforms/esp/32/drivers/parlio/bus_traits.h:47:19: error: redefinition of 'struct fl::BusSupports<fl::Bus::FLEX_IO, fl::SpiChipsetConfig, 0>'
src/platforms/esp/32/drivers/i2s_spi/bus_traits.h:72:19: note: previous definition of 'struct fl::BusSupports<fl::Bus::FLEX_IO, fl::SpiChipsetConfig, 0>'

Workaround: -DFASTLED_ESP32_HAS_PARLIO=0 -DFASTLED_ESP32_HAS_I2S=0 -DFASTLED_ESP32_HAS_LCD_SPI=0.

2. ETS_GPIO_INTR_SOURCE no longer exists

On the S31, IDF 6.1 has numbered GPIO interrupt sources (ETS_GPIO_INTR0_SOURCE to ETS_GPIO_INTR3_SOURCE) instead of one:

src/platforms/esp/32/drivers/gpio_isr_rx/gpio_isr_rx_mcpwm.cpp.hpp:112:23: error: 'ETS_GPIO_INTR_SOURCE' was not declared in this scope; did you mean 'ETS_GPIO_INTR3_SOURCE'?

Workaround: -DETS_GPIO_INTR_SOURCE=ETS_GPIO_INTR0_SOURCE. That is the source the IDF GPIO HAL uses (GPIO_LL_INTR_SOURCE0), so GPIO_LL_INTR_SOURCE0 may be the portable choice.

With both workarounds the sketch builds, and the RMT5 driver is included. I have not run it on hardware yet.

Activity

  1. added
    sanitized
    on Nov 24, 2026
  2. moved this from Triage to In Review in FastLED Trackeron Nov 24, 2026
  3. moved this from In Review to Done in FastLED Trackeron Nov 24, 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