Skip to content
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

FastLED does not work on STM32/BluePill : BOUNTY US$40 for making it work. #744

Open
AndKe opened this Issue Feb 23, 2019 · 3 comments

Comments

Projects
None yet
2 participants
@AndKe
Copy link

AndKe commented Feb 23, 2019

Arduino 1.8.8 , FastLED current master, the LED strip is working fine with this library on a Atmega328:

On a BluePill , STM32F103C8 , with STM32duino bootloader, I tried the example "ColorPalette"
changed only "#define LED_PIN"

to 17 as "PA7" is not recognized
then tried PB5 , (recognized).
no LED activity.

@focalintent

This comment has been minimized.

Copy link
Member

focalintent commented Feb 23, 2019

FYI, the stm32 support is very loose - I don’t actually have any stm32 hardware to test with, outside of the photon, and so mostly have been relying on what other folks supply for the code - especially for things like pin/port mapping.

@AndKe

This comment has been minimized.

Copy link
Author

AndKe commented Feb 23, 2019

@AndKe

This comment has been minimized.

Copy link
Author

AndKe commented Feb 27, 2019

I have tried both to address port as PB5 or "41" - no success.
I've also checked with oscilloscope, and there is no save output on any pins,
This is a map of what works , and what not:
(existing port/pins) OK(pins recognized) "not"= pins not recognized
//PA 0...7,13,14 OK=2,3,4,13,14 (not 0,1,5...7)
//PB 0..15 OK=0...6 14,15 (not 7..12)
//PC 13,14,15 OK=13,14,15

Example: "PA2" works, "PA6" does not.
This tells me that it is likely, that the pin defines for "Blue Pill" does not apply as expected here: https://github.com/FastLED/FastLED/blob/master/platforms/arm/stm32/fastpin_arm_stm32.h#L107

nor do I see anything that defines "STM32F1"

andre@loke:~/Downloads/FastLED-master$ grep -inr "STM32F1"
led_sysdefs.h:22:#elif defined(STM32F10X_MD) || defined(STM32F1)
platforms/arm/stm32/led_sysdefs_arm_stm32.h:16:#elif defined (STM32F1)
platforms/arm/stm32/fastpin_arm_stm32.h:61:#elif defined(STM32F1)
platforms/arm/stm32/fastpin_arm_stm32.h:107:#if defined(STM32F1) // Generic STM32F103 aka "Blue Pill"
platforms/arm/stm32/fastpin_arm_stm32.h:152:#endif // STM32F1
platforms.h:22:#elif defined(STM32F10X_MD) || defined(STM32F1)

@AndKe AndKe changed the title Does not work on STM32 Does not work on STM32 : BOUNTY US$40 for making it work. Mar 1, 2019

@AndKe AndKe changed the title Does not work on STM32 : BOUNTY US$40 for making it work. FastLED does not work on STM32/BluePill : BOUNTY US$40 for making it work. Mar 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.