New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It looks like FastLED isn't compatible with STM32F103C microcontroller #531

Open
tutankhamen opened this Issue Nov 29, 2017 · 7 comments

Comments

Projects
None yet
7 participants
@tutankhamen

tutankhamen commented Nov 29, 2017

It's weird because I can see

#elif defined(STM32F10X_MD)

in platform.h, but still getting:

fatal error: avr/io.h: No such file or directory

@stevstrong

This comment has been minimized.

Show comment
Hide comment
@stevstrong

stevstrong Dec 7, 2017

You should use in your code
#elif defined (ARDUINO_ARCH_STM32F1)

stevstrong commented Dec 7, 2017

You should use in your code
#elif defined (ARDUINO_ARCH_STM32F1)

@ajkeeton

This comment has been minimized.

Show comment
Hide comment
@ajkeeton

ajkeeton Dec 30, 2017

I tried that and now FastLED is searching for application.h which isn't included anywhere I've seen

ajkeeton commented Dec 30, 2017

I tried that and now FastLED is searching for application.h which isn't included anywhere I've seen

@nk64

This comment has been minimized.

Show comment
Hide comment
@nk64

nk64 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)

nk64 commented 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

This comment has been minimized.

Show comment
Hide comment
@ajkeeton

ajkeeton 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

ajkeeton commented 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

This comment has been minimized.

Show comment
Hide comment
@evq

evq 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

evq commented 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

This comment has been minimized.

Show comment
Hide comment
@13rac1

13rac1 Jan 25, 2018

👍 I'm using @evq 's branch with PlatformIO and a maple mini clone: https://github.com/eosrei/FastLED-STM32/commits/stm32f103

13rac1 commented 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

This comment has been minimized.

Show comment
Hide comment
@kolyshkin
Contributor

kolyshkin commented Feb 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment