Associate
April 19, 2023
Question
STM32L4P5 PWM with DMA no GPIO output
- April 19, 2023
- 4 replies
- 2677 views
Hey all,
I'm trying to generate DMA PWM for a row of 3 Neopixels. I succeeded on a Nucleo-based L496, but translating to a L4P5 target (custom board) results in no output on the GPIO at all. I've compared the generated HAL code for both and cannot find a meaningful difference, but maybe there's a spot to check that I'm forgetting?
APB2 clock is 120MHz, so I've set the timer period to 149 to achieve the 800kHz the LEDs expect. This is the main settings change I made since the Nucleo defaults to 80MHz.


