Skip to content

ESP32-C3 / FastLED / FastAccelStepper(?) Driver Conflict / Driver Methods Not Present #2203

Closed

Description

@darkgrue

Attempting to get FastLED and FastAccelStepper running on ESP32-C3, but it's freezing on the first call to .show(). Using VSCode with PlatformIO.

board = esp32-c3-devkitm-1 (ESP32-C3-MINI-1)
platform = espressif32 @ 6.13.0
gin66/FastAccelStepper @ 1.2.3
fastled/FastLED @ 3.10.3

I've tried to use different drivers, as shown in the documentation:

// Force RMT driver exclusively (disables SPI, PARLIO, and future drivers)
FastLED.setExclusiveDriver("RMT");

// Or selectively enable/disable
FastLED.setDriverEnabled("SPI", false);    // Disable SPI
FastLED.setDriverEnabled("PARLIO", true);  // Enable PARLIO

// Query driver state
if (FastLED.isDriverEnabled("RMT")) {
    Serial.println("RMT driver is active");
}

// Inspect all registered drivers
auto drivers = FastLED.getDriverInfo();
for (const auto& driver : drivers) {
    FL_WARN(driver.name << ": priority=" << driver.priority
            << " enabled=" << (driver.enabled ? "YES" : "NO"));
}

But those give compile-time errors that various driver() functions don't exist in the classes.

I've also tried invoking various defines in combination:

#define FASTLED_ALLOW_INTERRUPTS 1
#define FASTLED_ESP32_I2S_NUM_DMA_BUFFERS 4
#define FASTLED_RMT_MAX_CHANNELS 1
#define FASTLED_RMT_BUILTIN_DRIVER 1

I suspect that there's some conflict with the way RMT is being used between the two libraries, but I don't know how to resolve the conflict (or narrow down where it's happening), or to work it from the FastLED or FastAccelStepper. However, I did see that the driver query and selection function in the documentation doesn't appear to work, and maybe that's indicative of why what I'm trying to do to resolve it doesn't work.

Activity

  1. zackees commented on Mar 19, 2026

    @zackees
    Member

    The channel's api you are using is beta and exclusive to the master branch, please bind to that in your platformio.ini at a commit number for stable library access.

    I honestly don't know how your code is compiling at all with FastLED 3.10.3, the channels api simply doesn't exist in the last release.

  2. darkgrue commented on Mar 19, 2026

    @darkgrue
    Author

    I honestly don't know how your code is compiling at all with FastLED 3.10.3, the channels api simply doesn't exist in the last release.

    Well, the example code to manipulate the drivers doesn't compile with @3.10.3 pinned. That's my confusion. So the answer is those are forward features ahead of what's published in PlatformIO's registry, and answers one question.

  3. zackees commented on Mar 19, 2026

    @zackees
    Member

    Try FastLED.show() from the master branch. There are many drivers, spi and uart are dma driven i believe.

  4. darkgrue commented on Mar 19, 2026

    @darkgrue
    Author

    Try FastLED.show() from the master branch. There are many drivers, spi and uart are dma driven i believe.

    Will do. Figuring out the PlatformIO syntax, and I'll report back!

  5. zackees commented on Mar 19, 2026

    @zackees
    Member

    Closing the bug, reply to this bug if you still have problems and we'll open it back up.

  6. darkgrue commented on Mar 19, 2026

    @darkgrue
    Author

    Referencing the master branch as https://github.com/FastLED/FastLED.git#master pitches numerous compile issues

    In file included from .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/modlog/modlog.h:25,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs_log.h:36,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs.h:38,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_gap.h:31,
                     from .pio/libdeps/project/NimBLE-Arduino/src/NimBLEDevice.h:34,
                     from include/BLE.h:14,
                     from src/Console.cpp:19:
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:28: error: expected identifier before '(' token
     #define LOG_LEVEL_NONE     (5)
                                ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:28: error: expected '}' before '(' token
     #define LOG_LEVEL_NONE     (5)
                                ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:20:20: note: to match this '{'
     enum LogLevel : u8 {
                        ^
    In file included from .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/modlog/modlog.h:25,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs_log.h:36,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs.h:38,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_gap.h:31,
                     from .pio/libdeps/project/NimBLE-Arduino/src/NimBLEDevice.h:34,
                     from include/BLE.h:14,
                     from src/Console.cpp:19:
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:29: error: expected unqualified-id before numeric constant
     #define LOG_LEVEL_NONE     (5)
                                 ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:29: error: expected ')' before numeric constant
     #define LOG_LEVEL_NONE     (5)
                                ~^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:30:1: error: 'u8' does not name a type; did you mean 'P8'?
     u8 getLogLevel();
     ^~
     P8
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:35:18: error: variable or field 'setLogLevel' declared void
     void setLogLevel(u8 level);
                      ^~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:35:18: error: 'u8' was not declared in this scope
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:35:18: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/int.h:176:27: note:   'fl::u8'
         typedef unsigned char u8;
                               ^~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:87:5: error: 'u8' does not name a type; did you mean 'P8'?
         u8 mPreviousLevel;
         ^~
         P8
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: In constructor 'ScopedLogDisable::ScopedLogDisable()':
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:65:26: error: class 'ScopedLogDisable' does not have any field named 'mPreviousLevel'
         ScopedLogDisable() : mPreviousLevel(getLogLevel()) {
                              ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:65:41: error: 'getLogLevel' was not declared in this scope
         ScopedLogDisable() : mPreviousLevel(getLogLevel()) {
                                             ^~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:65:41: note: suggested alternative: 'g_batLevel'
         ScopedLogDisable() : mPreviousLevel(getLogLevel()) {
                                             ^~~~~~~~~~~
                                             g_batLevel
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:66:9: error: 'setLogLevel' was not declared in this scope
             setLogLevel(LOG_LEVEL_NONE);
             ^~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: In destructor 'ScopedLogDisable::~ScopedLogDisable()':
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:71:21: error: 'mPreviousLevel' was not declared in this scope
             setLogLevel(mPreviousLevel);
                         ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:71:9: error: 'setLogLevel' was not declared in this scope
             setLogLevel(mPreviousLevel);
             ^~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: In constructor 'ScopedLogDisable::ScopedLogDisable(ScopedLogDisable&&)':
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:80:11: error: class 'ScopedLogDisable' does not have any field named 'mPreviousLevel'
             : mPreviousLevel(other.mPreviousLevel) {
               ^~~~~~~~Compiling .pio\build\project\libc4f\NimBLE-Arduino\nimble\nimble\drivers\nrf5x\src\ble_phy.c.o
    ~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:80:32: error: 'class ScopedLogDisable' has no member named 'mPreviousLevel'
             : mPreviousLevel(other.mPreviousLevel) {
                                    ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:82:15: error: 'class ScopedLogDisable' has no member named 'mPreviousLevel'
             other.mPreviousLevel = LOG_LEVEL_NONE;
                   ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: At global scope:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:95:19: error: variable or field 'serial_begin' declared void
     void serial_begin(u32 baudRate = 115200);
                       ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:95:19: error: 'u32' was not declared in this scope
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:95:19: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:115:26: error: 'u8' does not name a type; did you mean 'P8'?
     size_t write_bytes(const u8* buffer, size_t size);
                              ^~
                              P8
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:22: error: 'sstream' was not declared in this scope
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                          ^~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:22: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/esp/esp_assert.h:5,
                     from .pio/libdeps/project/FastLED/src/platforms/assert_defs.h:25,
                     from .pio/libdeps/project/FastLED/src/fl/stl/assert.h:3,
                     from .pio/libdeps/project/FastLED/src/fl/stl/map.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/screenmap.h:4,
                     from .pio/libdeps/project/FastLED/src/fl/engine_events.h:3,
                     from .pio/libdeps/project/FastLED/src/fl/cled_controller.h:10,
                     from .pio/libdeps/project/FastLED/src/fl/fastled.h:74,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:133,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/strstream.h:33:7: note:   'fl::sstream'
     class sstream {
           ^~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:31: error: 'out' was not declared in this scope
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                   ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:36: error: expected primary-expression before 'char'
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                        ^~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:59: error: expected primary-expression before 'char'
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                               ^~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:94: error: 'u32' was not declared in this scope
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                  ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:94: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:97: error: template argument 1 is invalid
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                     ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:122: error: expression list treated as compound expression in initializer [-fpermissive]
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                                              ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:93: error: 'u32' was not declared in this scope
     fl::optional<fl::string> readLine(char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                 ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:93: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~Compiling .pio\build\project\libc4f\NimBLE-Arduino\nimble\nimble\drivers\nrf5x\src\ble_phy_trace.c.o
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:96: error: template argument 1 is invalid
     fl::optional<fl::string> readLine(char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                    ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:121: error: could not convert 'fl::nullopt' from 'const fl::nullopt_t' to 'int'
     fl::optional<fl::string> readLine(char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                                             ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:158:12: error: 'u32' was not declared in this scope
     bool flush(u32 timeoutMs = 1000);
                ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:158:12: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/Console.cpp:22:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:195:1: error: expected declaration before '}' token
     } // namespace fl
     ^
    Compiling .pio\build\project\libc4f\NimBLE-Arduino\nimble\nimble\drivers\nrf5x\src\nrf52\phy.c.o
    Compiling .pio\build\project\libc4f\NimBLE-Arduino\nimble\nimble\drivers\nrf5x\src\nrf53\phy.c.o
    In file included from .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/modlog/modlog.h:25,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs_log.h:36,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs.h:38,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_gap.h:31,
                     from .pio/libdeps/project/NimBLE-Arduino/src/NimBLEDevice.h:34,
                     from include/BLE.h:14,
                     from src/main.cpp:15:
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:28: error: expected identifier before '(' token
     #define LOG_LEVEL_NONE     (5)
                                ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:28: error: expected '}' before '(' token
     #define LOG_LEVEL_NONE     (5)
                                ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:20:20: note: to match this '{'
     enum LogLevel : u8 {
                        ^
    In file included from .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/modlog/modlog.h:25,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs_log.h:36,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_hs.h:38,
                     from .pio/libdeps/project/NimBLE-Arduino/src/nimble/nimble/host/include/host/ble_gap.h:31,
                     from .pio/libdeps/project/NimBLE-Arduino/src/NimBLEDevice.h:34,
                     from include/BLE.h:14,
                     from src/main.cpp:15:
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:29: error: expected unqualified-id before numeric constant
     #define LOG_LEVEL_NONE     (5)
                                 ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    .pio/libdeps/project/NimBLE-Arduino/src/nimble/porting/nimble/include/log_common/log_common.h:43:29: error: expected ')' before numeric constant
     #define LOG_LEVEL_NONE     (5)
                                ~^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:21:5: note: in expansion of macro 'LOG_LEVEL_NONE'
         LOG_LEVEL_NONE  = 0,  ///< No logging (completely silent)
         ^~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:30:1: error: 'u8' does not name a type; did you mean 'P8'?
     u8 getLogLevel();
     ^~
     P8
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:35:18: error: variable or field 'setLogLevel' declared void
     void setLogLevel(u8 level);
                      ^~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:35:18: error: 'u8' was not declared in this scope
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:35:18: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/int.h:176:27: note:   'fl::u8'
         typedef unsigned char u8;
                               ^~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:87:5: error: 'u8' does not name a type; did you mean 'P8'?
         u8 mPreviousLevel;
         ^~
         P8
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: In constructor 'ScopedLogDisable::ScopedLogDisable()':
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:65:26: error: class 'ScopedLogDisable' does not have any field named 'mPreviousLevel'
         ScopedLogDisable() : mPreviousLevel(getLogLevel()) {
                              ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:65:41: error: 'getLogLevel' was not declared in this scope
         ScopedLogDisable() : mPreviousLevel(getLogLevel()) {
                                             ^~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:65:41: note: suggested alternative: 'g_batLevel'
         ScopedLogDisable() : mPreviousLevel(getLogLevel()) {
                                             ^~~~~~~~~~~
                                             g_batLevel
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:66:9: error: 'setLogLevel' was not declared in this scope
             setLogLevel(LOG_LEVEL_NONE);
             ^~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: In destructor 'ScopedLogDisable::~ScopedLogDisable()':
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:71:21: error: 'mPreviousLevel' was not declared in this scope
             setLogLevel(mPreviousLevel);
                         ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:71:9: error: 'setLogLevel' was not declared in this scope
             setLogLevel(mPreviousLevel);
             ^~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: In constructor 'ScopedLogDisable::ScopedLogDisable(ScopedLogDisable&&)':
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:80:11: error: class 'ScopedLogDisable' does not have any field named 'mPreviousLevel'
             : mPreviousLevel(other.mPreviousLevel) {
               ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:80:32: error: 'class ScopedLogDisable' has no member named 'mPreviousLevel'
             : mPreviousLevel(other.mPreviousLevel) {
                                    ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:82:15: error: 'class ScopedLogDisable' has no member named 'mPreviousLevel'
             other.mPreviousLevel = LOG_LEVEL_NONE;
                   ^~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h: At global scope:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:95:19: error: variable or field 'serial_begin' declared void
     void serial_begin(u32 baudRate = 115200);
                       ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:95:19: error: 'u32' was not declared in this scope
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:95:19: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:115:26: error: 'u8' does not name a type; did you mean 'P8'?
     size_t write_bytes(const u8* buffer, size_t size);
                              ^~
                              P8
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:22: error: 'sstream' was not declared in this scope
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                          ^~~~~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:22: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/esp/esp_assert.h:5,
                     from .pio/libdeps/project/FastLED/src/platforms/assert_defs.h:25,
                     from .pio/libdeps/project/FastLED/src/fl/stl/assert.h:3,
                     from .pio/libdeps/project/FastLED/src/fl/stl/map.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/screenmap.h:4,
                     from .pio/libdeps/project/FastLED/src/fl/engine_events.h:3,
                     from .pio/libdeps/project/FastLED/src/fl/cled_controller.h:10,
                     from .pio/libdeps/project/FastLED/src/fl/fastled.h:74,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:133,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/strstream.h:33:7: note:   'fl::sstream'
     class sstream {
           ^~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:31: error: 'out' was not declared in this scope
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                   ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:36: error: expected primary-expression before 'char'
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                        ^~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:59: error: expected primary-expression before 'char'
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                               ^~~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:94: error: 'u32' was not declared in this scope
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                  ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:94: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:97: error: template argument 1 is invalid
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                     ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:142:122: error: expression list treated as compound expression in initializer [-fpermissive]
     bool readStringUntil(sstream& out, char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                                              ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:93: error: 'u32' was not declared in this scope
     fl::optional<fl::string> readLine(char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                 ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:93: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:96: error: template argument 1 is invalid
     fl::optional<fl::string> readLine(char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                    ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:152:121: error: could not convert 'fl::nullopt' from 'const fl::nullopt_t' to 'int'
     fl::optional<fl::string> readLine(char delimiter = '\n', char skipChar = '\r', fl::optional<u32> timeoutMs = fl::nullopt);
                                                                                                                             ^
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:158:12: error: 'u32' was not declared in this scope
     bool flush(u32 timeoutMs = 1000);
                ^~~
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:158:12: note: suggested alternative:
    In file included from .pio/libdeps/project/FastLED/src/platforms/int.h:13,
                     from .pio/libdeps/project/FastLED/src/fl/int.h:169,
                     from .pio/libdeps/project/FastLED/src/fl/stl/stdint.h:173,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:8,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:61:33: note:   'fl::u32'
             typedef __UINT32_TYPE__ u32;
                                     ^~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:47:5: note: in expansion of macro 'PLATFORM_INT32_CONDITIONAL_CHOOSE'
         PLATFORM_INT32_CONDITIONAL_CHOOSE
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .pio/libdeps/project/FastLED/src/platforms/esp/int.h:101:5: note: in expansion of macro 'DEFINE_ESP_INT32_TYPES'
         DEFINE_ESP_INT32_TYPES
         ^~~~~~~~~~~~~~~~~~~~~~
    In file included from .pio/libdeps/project/FastLED/src/fl/stl/stdio.h:5,
                     from .pio/libdeps/project/FastLED/src/fl/serial.h:11,
                     from .pio/libdeps/project/FastLED/src/FastLED.h:1476,
                     from include/RGB.h:16,
                     from src/main.cpp:19:
    .pio/libdeps/project/FastLED/src/fl/stl/cstdio.h:195:1: error: expected declaration before '}' token
     } // namespace fl
     ^
    

    Some of it looks like maybe definition collisions between libraries and some of it looks to be defines not present. Unless there's a simple solution that immediately suggests itself, might have to back away from this one until the next release and take it up again at that time. As it's looking like I'm getting over my head.

  7. zackees commented on Mar 19, 2026

    @zackees
    Member

    On it

  8. zackees commented on Mar 19, 2026

    @zackees
    Member

    ...should be fixed. Hit me back if it's not and we will re-open the bug.

    Please clear any caches.

    If this commit works for you then please pin it.

    We are preparing for a release and there's a migration going on for enabling strict namespaces and if you follow / ride the master branch you'll randomly be broken. We recommend forking the repo and keeping your own copy for stability and forward rebase as necessary.

  9. darkgrue commented on Mar 19, 2026

    @darkgrue
    Author

    We are preparing for a release and there's a migration going on for enabling strict namespaces and if you follow / ride the master branch you'll randomly be broken. We recommend forking the repo and keeping your own copy for stability and forward rebase as necessary.

    That's a fair warning, thank you! Appreciate you taking the time to try and get me up and running. =)

    Pinned https://github.com/FastLED/FastLED.git#27344ae, which took care of the initial compile errors, but getting a ton of other compilation messages that end in a fail:

    In file included from .pio/libdeps/project/FastLED/src/platforms/esp/32/interrupts/_build.cpp.hpp:7,
                     from .pio/libdeps/project/FastLED/src/platforms/esp/32/_build.cpp.hpp:24,
                     from .pio/libdeps/project/FastLED/src/platforms/esp/_build.cpp.hpp:8,
                     from .pio/libdeps/project/FastLED/src/platforms/_build.cpp.hpp:22,
                     from .pio/libdeps/project/FastLED/src/platforms/_build.cpp:6:
    .pio/libdeps/project/FastLED/src/platforms/esp/32/interrupts/riscv.cpp.hpp:23:10: fatal error: driver/rmt_tx.h: No such file or directory
     #include "driver/rmt_tx.h"
              ^~~~~~~~~~~~~~~~~
    compilation terminated.
    *** [.pio\build\project\lib903\FastLED\platforms\_build.cpp.o] Error 1
    

    There are also a ton of warnings (attached).

    compile warn.txt

  10. zackees commented on Mar 19, 2026

    @zackees
    Member

    You are on an ancient version of Arduino core which binds to esp-idf 4.4, the current esp-idf is 5.x, and 6.0 is in beta.

    Channels api has not been backported yet to esp-idf 4.4.

    Please use the following

    platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.04/platform-espressif32.zip

    example platformio

  11. zackees commented on Mar 19, 2026

    @zackees
    Member

    most of the warnings should be gone now.

  12. 75 remaining items

  13. darkgrue commented on Mar 26, 2026

    @darkgrue
    Author

    I'm smiling because this was a major bug and now I don't have it haunting me at ultra fest

    Have a good time! =)

    Blink shows a HUGE improvement in size:

                                Memory Type Usage Summary
    ┌─────────────────────┬──────────────┬──────────┬────────────────┬───────────────┐
    │ Memory Type/Section │ Used [bytes] │ Used [%] │ Remain [bytes] │ Total [bytes] │
    ├──────────Total image size: 421370 bytes (.bin may be padded larger)
    ─────────Note: The reported total sizes may be smaller than those in the technical reference manual due to reserved memory and application configuration. The total flash size available for the application is not included by default, as it cannot be reliably determined due to the presence of other data like the bootloader, partition table, and application partition size.
    ──┼──────────────┼──────────┼────────────────┼───────────────┤
    │ Flash Code          │       270538 │          │                │               │
    │    .text            │       270538 │          │                │               │
    │ Flash Data          │        84188 │          │                │               │
    │    .rodata          │        75064 │          │                │               │
    │    .eh_frame        │         8836 │          │                │               │
    │    .appdesc         │          288 │          │                │               │
    │ DRAM                │        76700 │    23.87 │         244596 │        321296 │
    │    .text            │        58148 │     18.1 │                │               │
    │    .bss             │        10056 │     3.13 │                │               │
    │    .data            │         8496 │     2.64 │                │               │
    └─────────────────────┴──────────────┴──────────┴────────────────┴───────────────┘
    Retrieving maximum program size .pio\build\esp32-c3-mini-1\firmware.elf
    Checking size .pio\build\esp32-c3-mini-1\firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM:   [=         ]   5.7% (used 18552 bytes from 327680 bytes)
    Flash: [===       ]  31.5% (used 412246 bytes from 1310720 bytes)
    Building .pio\build\esp32-c3-mini-1\firmware.bin
    esptool v5.1.2
    Creating ESP32C3 image...
    Merged 2 ELF sections.
    Successfully created ESP32C3 image.
    

    And now my full-up project at least fits in the itty-bitty C3:

                                Memory Type Usage Summary
    ┌─────────────────────┬──────────────┬──────────┬────────────────┬───────────────┐
    │ Memory Type/Section │ Used [bytes] │ Used [%] │ Remain [bytes] │ Total [bytes] │
    ├─────────────────────┼───Total image size: 1034868 bytes (.bin may be padded larger)
    ───────────Note: The reported total sizes may be smaller than those in the technical reference manual due to reserved memory and application configuration. The total flash size available for the application is not included by default, as it cannot be reliably determined due to the presence of other data like the bootloader, partition table, and application partition size.
    ┼──────────┼────────────────┼───────────────┤
    │ Flash Code          │       699860 │          │                │               │
    │    .text            │       699860 │          │                │               │
    │ Flash Data          │       236896 │          │                │               │
    │    .rodata          │       151556 │          │                │               │
    │    .eh_frame        │        85052 │          │                │               │
    │    .appdesc         │          288 │          │                │               │
    │ DRAM                │       116624 │     36.3 │         204672 │        321296 │
    │    .text            │        86076 │    26.79 │                │               │
    │    .bss             │        18512 │     5.76 │                │               │
    │    .data            │        12036 │     3.75 │                │               │
    └─────────────────────┴──────────────┴──────────┴────────────────┴───────────────┘
    Retrieving maximum program size .pio\build\project\project_v5.4.1_debug-terminal-rgb.elf
    Checking size .pio\build\project\project_v5.4.1_debug-terminal-rgb.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM:   [=         ]   9.3% (used 30548 bytes from 327680 bytes)
    Flash: [=======   ]  72.4% (used 949528 bytes from 1310720 bytes)
    Building .pio\build\project\project_v5.4.1_debug-terminal-rgb.bin
    esptool v5.1.2
    Creating ESP32C3 image...
    Merged 2 ELF sections.
    Successfully created ESP32C3 image.
    

    Now to find where I actually put my LED strips and rig those up to the data pin...

  14. darkgrue commented on Apr 1, 2026

    @darkgrue
    Author

    Went to check the compile with board = esp32dev:

    Had to switch to platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip to resolve a GCC version mismatch - looks like the pioarduino framework was built with GCC 11.2.0 but the current toolchain uses GCC 14.2.0.

      -D FASTLED_DISABLE_DBG=1
      -D FASTLED_ESP32_HAS_CLOCKLESS_SPI=0
      -D FASTLED_ESP32_HAS_I2S=0
      -D FASTLED_ESP32_HAS_I2S_LCD_CAM=0
      -D FASTLED_ESP32_HAS_LCD_RGB=0
      -D FASTLED_ESP32_HAS_PARLIO=0
      -D FASTLED_ESP32_HAS_UART=0
      -D SKETCH_HAS_LOTS_OF_MEMORY=0
    

    But suddenly I need to add -mtext-section-literals or I get linking errors:

    Linking .pio\build\minitail\minitail_v5.4.2_debug-terminal-rgb.elf
    .pio/build/minitail/lib990/FastLED/fl/build/platforms+.cpp.o: in function `I2SClockBasedLedDriver::i2sReset()':
    C:\Users\darkg\Documents\GitHub\MasterTailer\TailCoNTROL/.pio/libdeps/minitail/FastLED/src/third_party/yves/I2SClockBasedLedDriver/I2SClockBasedLedDriver.h:1303:(.iram1.4[_ZN22I2SClockBasedLedDriver8i2sResetEv]+0x3): dangerous relocation: l32r: literal placed after use: .literal._ZN22I2SClockBasedLedDriver8i2sResetEv
    .pio/build/minitail/lib990/FastLED/fl/build/platforms+.cpp.o: in function `I2SClockBasedLedDriver::i2sStop()':
    C:\Users\darkg\Documents\GitHub\MasterTailer\TailCoNTROL/.pio/libdeps/minitail/FastLED/src/third_party/yves/I2SClockBasedLedDriver/I2SClockBasedLedDriver.h:835:(.iram1.3[_ZN22I2SClockBasedLedDriver7i2sStopEv]+0x6): dangerous relocation: l32r: literal placed after use: (.literal._ZN22I2SClockBasedLedDriver7i2sStopEv+0x4)
    C:\Users\darkg\Documents\GitHub\MasterTailer\TailCoNTROL/.pio/libdeps/minitail/FastLED/src/third_party/yves/I2SClockBasedLedDriver/I2SClockBasedLedDriver.h:839:(.iram1.3[_ZN22I2SClockBasedLedDriver7i2sStopEv]+0x29): dangerous relocation: l32r: literal placed after use: .literal._ZN22I2SClockBasedLedDriver7i2sStopEv
    collect2.exe: error: ld returned 1 exit status
    

    Apparently the l32r instruction limitation: ESP32's Xtensa CPU uses l32r (load-32-relative) to access literal constants. This instruction can only reach targets within ±1MB of the instruction's location. But I2SClockBasedLedDriver generates many literal constants (bit patterns, timing values) inline. Without -mtext-section-literals, the linker can't guarantee literals stay within range of IRAM code.

    But I've disabled everything non-essential, including all the I2S drivers supposedly, so shouldn't that have been all dropped out by the compiler, unless something's forcing it back in (much like the previous rounds of issues)?

  15. reopened this on Apr 2, 2026
  16. zackees commented on Apr 3, 2026

    @zackees
    Member

    Hey darkgrue, this is Clud -- I'm a custom AI assistant that works with Zach on FastLED. He pointed me at your comment and I dug into the root cause.

    You're right that the I2S code should have been completely excluded when you set -D FASTLED_ESP32_HAS_I2S=0. The problem was that it wasn't actually checking that flag. There were two places where the code decided whether to include the I2S driver, and both of them were using hardcoded platform checks like !defined(FL_IS_ESP_32S3) && !defined(FL_IS_ESP_32C3) && ... instead of looking at the FASTLED_ESP32_HAS_I2S macro you were setting. So on plain esp32dev, those guards always passed and the I2S code got compiled regardless of your define.

    That's what caused the linker errors. The I2S driver has several IRAM_ATTR functions defined inline in a header, and GCC 14.x handles literal pool placement differently than older versions. The Xtensa l32r instruction needs its literal constants placed before the instruction that references them, but GCC 14 was putting them after, which the linker rightfully rejects.

    The fix has two parts:

    1. Both channel_manager_esp32.cpp.hpp and I2SClockBasedLedDriver.h now check #if FASTLED_ESP32_HAS_I2S instead of the long chain of platform exclusions. So your -D FASTLED_ESP32_HAS_I2S=0 will actually work now and the entire I2S driver gets excluded.

    2. For cases where I2S is enabled, I added __attribute__((noinline)) to the three IRAM functions (i2sStop, i2sReset, and the interrupt handler). This prevents GCC from inlining them in ways that mess up the literal pool ordering. It's the standard fix for this class of Xtensa/GCC issue.

    This should land in the next push to master. You won't need -mtext-section-literals anymore.

  17. added a commit that references this issue on Apr 3, 2026
  18. MarcelRobitaille commented on Apr 9, 2026

    @MarcelRobitaille

    Hi @zackees @darkgrue . From the initial post, I think I'm having a similar problem. I have an ESP32-C3 and I'm getting conflicts between FastLED and FastAccelStepper. For me, the problem is that as soon as I setup my stepper, my LED only shows white no matter what.

    Although the first post seems to match my situation, the rest of the discussion doesn't seem to mention FastAccelStepper again. How did you resolve the RMT conflicts?

  19. zackees commented on Apr 10, 2026

    @zackees
    Member

    Hi @zackees @darkgrue . From the initial post, I think I'm having a similar problem. I have an ESP32-C3 and I'm getting conflicts between FastLED and FastAccelStepper. For me, the problem is that as soon as I setup my stepper, my LED only shows white no matter what.

    Although the first post seems to match my situation, the rest of the discussion doesn't seem to mention FastAccelStepper again. How did you resolve the RMT conflicts?

    You can use the channels api to set exclusive led drivers:

    FastLED.setExclusiveDriver("spi");

    Read more here

  20. MarcelRobitaille commented on Apr 10, 2026

    @MarcelRobitaille

    @zackees Amazing. Finally it's working. I can change the colour of my LED and drive my steppers at the same time using the spi driver! Thanks so much for the quick and helpful answer.

    I'm getting a lot of warnings in the serial monitor. Is that normal?

    src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp(601): ChannelEngineSpi: Determined lane capacity: 1 SPI hosts
    src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp(694): ChannelEngineSpi: Reusing SPI for pin 4
    src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp(815): ChannelEngineSpi: Released channel for pin 4 (SPI hardware kept allocated for reuse)
    src/fl/channels/channel.cpp.hpp(307): WARN: Channel 'right_strip': showPixels() called while mChannelData is in use by driver, attempting to wait
    src/fl/channels/channel.cpp.hpp(319): WARN: Channel 'right_strip': Engine became READY after waiting
    
  21. zackees commented on Apr 11, 2026

    @zackees
    Member

    @zackees Amazing. Finally it's working. I can change the colour of my LED and drive my steppers at the same time using the spi driver! Thanks so much for the quick and helpful answer.

    I'm getting a lot of warnings in the serial monitor. Is that normal?

    src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp(601): ChannelEngineSpi: Determined lane capacity: 1 SPI hosts
    src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp(694): ChannelEngineSpi: Reusing SPI for pin 4
    src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp(815): ChannelEngineSpi: Released channel for pin 4 (SPI hardware kept allocated for reuse)
    src/fl/channels/channel.cpp.hpp(307): WARN: Channel 'right_strip': showPixels() called while mChannelData is in use by driver, attempting to wait
    src/fl/channels/channel.cpp.hpp(319): WARN: Channel 'right_strip': Engine became READY after waiting
    

    Yeah it's normal, the spi driver is still having a little trouble.

    We have a bunch of new drivers in FastLED 4.0, including a "UART" driver i2s/lcd/parlio.

    RMT will be deprecated in the future.

  22. MarcelRobitaille commented on Apr 11, 2026

    @MarcelRobitaille

    Is there a way I can disable these logs? I disabled some of them by defining FASTLED_DISABLE_DBG, but I didn't see anything I could define to disable FL_WARN except SKETCH_HAS_LARGE_MEMORY=0, which prevents the LED from working at all.

  23. zackees commented on Apr 11, 2026

    @zackees
    Member

    fork the repo and and remove them or find a define that globally disables them.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions