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
stm32h747xi_giga: build fails — fastspi_arm_stm32.h pulls in <SPI.h> unconditionally on HAL detection #2595
The STM32H7 / Giga R1 board's stm32_hal_conf.h defines HAL_SPI_MODULE_ENABLED, so the #include <SPI.h> fires. But the Arduino mbed-os core that drives the Giga does not auto-resolve <SPI.h> via PlatformIO's lib finder — SPI has to be explicitly listed in lib_deps. It isn't, so the include 404s and every TU that pulls in fastspi.h (via FastLED.h:240) explodes.
Affected jobs
stm32h747xi_giga (every example)
Fix
Same pattern as my ESP8266 fix (#2570): guard the include with FASTLED_ALL_PINS_HARDWARE_SPI. The macro is an explicit user opt-in for hardware SPI; users who define it on STM32H7 also need to add SPI to their lib_deps. Default builds get the bitbang fallback.
This is a one-line FastLED-side fix; no fbuild changes required.
Test plan
bash lint clean.
CI: stm32h747xi_giga workflow should compile every example past the include error.
No regression on other STM32 boards (the default path drops to bitbang for the same HAL_SPI_MODULE_ENABLED && !FASTLED_ALL_PINS_HARDWARE_SPI combination — matches what end-users on stock STM32F* configs already get when SPI isn't in their lib_deps).
Repro
bash compile stm32h747xi_giga --examples Blink
Filed during a coordinated CI-green sweep; fix PR landing immediately.
Activity