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
Hi
In which compilers we can use FastLED? Can we use FastLED in keil or compile it with GCC?
How can we use FastLED for stm32 microcontrollers?
Any help would be appreciated.
Closing as answered — STM32 is supported, and has been for a long time.
To take the three questions in order:
"How can we use FastLED for stm32 microcontrollers?" There's a first-class STM32 platform at src/platforms/arm/stm32/ with pin maps, a clockless driver, and CM3 register support. Multiple STM32 boards are in the CI board matrix — stm32f103c8 (Blue Pill), stm32f103cb, stm32f103tb, stm32f411ce, and stm32h747xi (Giga R1 M7) — and there's a dedicated build_blackpill_stm32f4 workflow.
@kolyshkin's pointer to #568 was the relevant PR at the time; that work and more has long since landed.
"In which compilers can we use FastLED?" GCC, yes — that's the primary target. arm-none-eabi-gcc is what the STM32 boards build with today. Clang also works for the host/test builds.
Keil: no. FastLED's clockless output relies on GCC/Clang extensions — inline asm with GCC operand syntax, __attribute__ usage, and cycle-counted timing loops written against those toolchains. It has never been built with armcc/armclang and would need porting work beyond a compiler flag. Use the GCC toolchain (via PlatformIO, the Arduino STM32 core, or bare arm-none-eabi-gcc).
"There is an implementation for the Particle Photon which has the STM32" — @kasperkamperman was right that this was a reasonable starting point in 2018, but it's no longer the route to take; the native STM32 platform above supersedes it.
If you hit a specific STM32 part or board that doesn't work, please open a fresh issue naming the MCU and core — that's a much more tractable question than this one was.
Activity
kasperkamperman commentedon Feb 9, 2018
kolyshkin commentedon Feb 15, 2018
#568
zackees commentedon Aug 1, 2026
Closing as answered — STM32 is supported, and has been for a long time.
To take the three questions in order:
"How can we use FastLED for stm32 microcontrollers?" There's a first-class STM32 platform at
src/platforms/arm/stm32/with pin maps, a clockless driver, and CM3 register support. Multiple STM32 boards are in the CI board matrix —stm32f103c8(Blue Pill),stm32f103cb,stm32f103tb,stm32f411ce, andstm32h747xi(Giga R1 M7) — and there's a dedicatedbuild_blackpill_stm32f4workflow.@kolyshkin's pointer to #568 was the relevant PR at the time; that work and more has long since landed.
"In which compilers can we use FastLED?" GCC, yes — that's the primary target.
arm-none-eabi-gccis what the STM32 boards build with today. Clang also works for the host/test builds.Keil: no. FastLED's clockless output relies on GCC/Clang extensions — inline asm with GCC operand syntax,
__attribute__usage, and cycle-counted timing loops written against those toolchains. It has never been built with armcc/armclang and would need porting work beyond a compiler flag. Use the GCC toolchain (via PlatformIO, the Arduino STM32 core, or barearm-none-eabi-gcc)."There is an implementation for the Particle Photon which has the STM32" — @kasperkamperman was right that this was a reasonable starting point in 2018, but it's no longer the route to take; the native STM32 platform above supersedes it.
If you hit a specific STM32 part or board that doesn't work, please open a fresh issue naming the MCU and core — that's a much more tractable question than this one was.