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

STM32F407 Running 16 strips, 100leds/strip. Flicker #16

Open
PWawrow opened this issue Mar 11, 2023 · 2 comments
Open

STM32F407 Running 16 strips, 100leds/strip. Flicker #16

PWawrow opened this issue Mar 11, 2023 · 2 comments

Comments

@PWawrow
Copy link

PWawrow commented Mar 11, 2023

Hello. I get random flickering leds 5-6 for per strip, other seem to work fine. Maybe something with timing? Hardware: STM32F407VET6 SYSCLK-168MHz APB2 TIMER CLOCK-168MHz. I'm using rainbow example from library.

@hubmartin
Copy link
Owner

Try to use a different SETPIX option. Lower numbers are less effective. Test it and see whether the issue stays or gets worse.
Try to lower a number of parallel strings. If it helps, then the DMA interrupts for some reason is not fast enough to fill the buffers on the fly.
Try to look with the oscilloscope/logic analyzer to see what happens on that fifth or sixth LED and whether the issue happens at the same time on multiple outputs.
Check whether the DMA IRQs have the highest priority if you have added other code using IRQ (probably not if you use just the example code)

@hubmartin
Copy link
Owner

Which compiler optimization level do you use? -O.. ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants