2025-02-23 04:19 AM
Hi ST team,
I'm implementing DShot protocol with Timer + DMA. I use 4 PWM channels to generate control signals for ESC.
Timer and DMA's parameters are same for all PWM channel. But PA3 (TIM2_CH4) does not work the same as other PWM channels. It only transmit DMA buffer once.
Below is my configuration:
Auto reload value is 560, and this dma buffer will be transfered to pwm compare registers:
I use these function to start transfer data:
Could you please help me check this issue?
Thank you very much.
2025-02-23 07:37 AM
Do the HAL functions return HAL_OK? Set TIM2 IRQ and its DMA to higher priority than the others. Does it work then?