You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(esp32): 2.x-layout frameworks get none of PlatformIO's CPPDEFINES (ESP_PLATFORM missing; FastLED fails on [email protected]) #1549
With the arduino-esp32 2.x SDK layout (tools/sdk/<mcu>/ with no flags/ directory), for example [email protected] / framework 3.20017.241212+sha.dcc1105b, which is also the benchmark's pinned stack, Esp32Framework::get_sdk_defines (crates/fbuild-library/src/library/esp32_framework/sdk_paths.rs) reads only flags/defines and returns nothing.
Include dirs already have a fallback for this layout (parse_pio_cpppath, which reads the CPPPATH block of tools/platformio-build-<mcu>.py). Defines have no equivalent, so every compile misses the CPPDEFINES that PlatformIO passes from that same script:
FastLED does not compile.src/platforms/esp/32/isr_esp32_idf4.hpp calls taskENTER_CRITICAL(&mux), and FreeRTOS task.h only defines the 1-argument form #ifdef ESP_PLATFORM. The result is macro "taskENTER_CRITICAL" passed 1 arguments, but takes just 0.
Any code that keys on ESP_PLATFORM, _GNU_SOURCE or IDF_VER silently compiles differently from PlatformIO. That includes the benchmark, which reports stack_status: matched.
Fix
Mirror parse_pio_cpppath: when flags/defines is absent, parse the CPPDEFINES block of platformio-build-<mcu>.py. Take the literal entries, plain names and ("NAME", 'value') tuples, and skip entries that depend on env. or $BOARD_*, which fbuild already derives from the board.
Activity
fix(esp32): pass PlatformIO's SDK defines on 2.x-layout frameworks (#…