hubmartin / WS2812B_STM32F4

WS2812 DMA library with low RAM needs. Up to 16 paralel outputs and thousands of LEDs on each of them
MIT License
112 stars 32 forks source link

Help with code on Nucleo-F410RB #10

Open splinepd opened 3 years ago

splinepd commented 3 years ago

I'm trying to use your code with a Nucleo-F410RB (100MHz). I just have one strip of 3 LEDs so far, to verify that things work. I have the LEDs directly connected to PB3 and most everything ported fairly easily. The LEDs are all white after init and while running. I have an oscilloscope on the output pin and the frequency and duty cycle looks good. The only place WS2812_RESET_PERIOD shows up is in HAL_TIM_PeriodElapsedCallback(), but it's commented. Any ideas?

BTW, I tried reaching out on your website, github, and Twitter, but couldn't find an email address and Twitter DMs are off.

hubmartin commented 3 years ago

The code has some commented parts because it was developed over time for F1, F3, F0, L0.. see my other repos. The macro is commented because the 50 us reset pulse is handled diferently in this F4 port. When the last LED data is sent the timer is stopped, reconfigured to 50us and run again. Also this 50us period is calculated dynamically. https://github.com/hubmartin/WS2812B_STM32F4/blob/master/Src/ws2812b/ws2812b.c#L359

sahilrastogi94 commented 3 years ago

@splinepd Hey, I am also trying to run this on my Nucleo-F410RB but couldn't seem to get it to work. I have previously ran this on F407 discovery board and Nucleo-F302R8 board without any problems. I am using CubeMX to configure my board. Not sure why it is not working. Do you think you can share your project with me? Any help would be much appreciated.

splinepd commented 3 years ago

Sorry, I haven't had a chance to get back into this.