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
It looks like FastLED isn't compatible with STM32F103C microcontroller #531
@ajkeeton Last time I offered to PR it didn't seem like there was interest. Maybe that's changed now that there's a larger community around the Blue Pill?
Please feel free to fork and attempt a PR, I'd love to see it merged and maintained!
I would suggest cherry-picking the following commit, there's a missing pin definition. treeoftenere@8bea714
/home/andre/Arduino/projects/libraries/FastLED/platforms/arm/stm32/led_sysdefs_arm_stm32.h:4:25: fatal error: application.h: No such file or directory
#include <application.h>
^
compilation terminated.
You need to pick the proper board. It's probably Generic Black Pill STM32F103 or some such. Make sure you pull the newest FastLED because they included a lot of new stuff in a new release a few days ago.
home/andre/Arduino/projects/libraries/FastLED/src/led_sysdefs.h:53:2: error: #error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options."
53 | #error "This platform isn't recognized by FastLED... yet. See comments in FastLED/led_sysdefs.h for options."
The bluepills I use have this define: build.product_line=STM32F103xB
So I changed led_sysdefs.h
#elif defined(STM32F10X_MD) || defined(STM32F1)
to
#elif defined(STM32F10X_MD) || defined(STM32F1) || defined(STM32F103xB)
this gave me another error:
FastLED/src/platforms/arm/stm32/led_sysdefs_arm_stm32.h:24:2: error: #error "Platform not supported"
24 | #error "Platform not supported"
so I changed in that file:
#elif defined (STM32F1)
to
#elif defined (STM32F1) || defined(STM32F103xB)
finally, I changed all references to STM32F1 to also accept STMF103xB like this:
Activity
stevstrong commentedon Dec 7, 2017
You should use in your code
#elif defined (ARDUINO_ARCH_STM32F1)ajkeeton commentedon Dec 30, 2017
I tried that and now FastLED is searching for application.h which isn't included anywhere I've seen
nk64 commentedon Jan 2, 2018
I was able to get my Blue Pill (Generic STM32F103C Series) working with FastLED by following the instructions in this comment by @evq #142 (comment)
The main point for me was to manually merge in https://github.com/evq/FastLED/tree/stm32f103
which at the time boiled down to these 5 files:
"FastLED\platforms\arm\stm32\led_sysdefs_arm_stm32.h"
"FastLED\platforms\arm\stm32\clockless_arm_stm32.h"
"FastLED\platforms\arm\stm32\fastpin_arm_stm32.h"
"FastLED\led_sysdefs.h"
"FastLED\platforms.h"
I also did the code change to reduce the sketch size dramatically:
#142 (comment)
ajkeeton commentedon Jan 20, 2018
Any interest in trying to get a pull request open? If not I might fork and try to get the ball rolling
evq commentedon Jan 20, 2018
@ajkeeton Last time I offered to PR it didn't seem like there was interest. Maybe that's changed now that there's a larger community around the Blue Pill?
Please feel free to fork and attempt a PR, I'd love to see it merged and maintained!
I would suggest cherry-picking the following commit, there's a missing pin definition.
treeoftenere@8bea714
There's also this branch https://github.com/treeoftenere/FastLED/commits/tenere with parallel output. <3 @shlomozippel
13rac1 commentedon Jan 25, 2018
👍 I'm using @evq 's branch with PlatformIO and a maple mini clone: https://github.com/eosrei/FastLED-STM32/commits/stm32f103
kolyshkin commentedon Feb 15, 2018
#568
Fxlr8 commentedon Dec 8, 2018
@ajkeeton, I am facing the same issue with the
application.hfile missing even after #568. Have you solved it?AndKe commentedon Feb 19, 2019
Why is this issue closed ?
I got
with blue pill & FastLED 3.2.6
painthink commentedon Dec 23, 2020
avr/io.h: No such file or directory
Hackswell commentedon Dec 23, 2020
You need to pick the proper board. It's probably Generic Black Pill STM32F103 or some such. Make sure you pull the newest FastLED because they included a lot of new stuff in a new release a few days ago.
AndKe commentedon Dec 23, 2020
Happily, I just updated to 3.4.0 :)
Then I got:
In led_sysdefs.h I see
Yet I cannot compile with CoreSTM32's "Generic 32F103C6" "BluePill F103C8" or "BlackPill F103C8"
The Chrismas grinch must have done that :(
AndKe commentedon Dec 28, 2020
@focalintent - please reopen this issue.
shlomozippel commentedon Dec 29, 2020
Sadly, he will not be reopening any more issues :(
As a bandaid - try adding
|| defined(STM32F103xE)or whatever appears in theproduct_linefor the board you're using in CoreSTM32 boards.txt (https://github.com/stm32duino/Arduino_Core_STM32/blob/master/boards.txt)kriegsman commentedon Dec 29, 2020
Would it be useful to open a fresh issue for this? Or should we continue it here?
AndKe commentedon Dec 30, 2020
The bluepills I use have this define: build.product_line=STM32F103xB
So I changed led_sysdefs.h
#elif defined(STM32F10X_MD) || defined(STM32F1)
to
#elif defined(STM32F10X_MD) || defined(STM32F1) || defined(STM32F103xB)
this gave me another error:
FastLED/src/platforms/arm/stm32/led_sysdefs_arm_stm32.h:24:2: error: #error "Platform not supported"
24 | #error "Platform not supported"
so I changed in that file:
#elif defined (STM32F1)
to
#elif defined (STM32F1) || defined(STM32F103xB)
which only gave me this horror-show-error after initially promising almost-compilation:
https://gist.github.com/AndKe/60b7764042407f0b7dcc55986cc916d7