cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F411 multiple Channels on timer with DMA

JSzem.1
Associate II

Is it possible to run two or more channels on timer with DMA PWM mode?

This code starts only first Channel.

uint32_t PrawoPWM = 100; 

uint32_t LewoPWM = 100; 

HAL_TIM_PWM_Start_DMA(&htim4, TIM_CHANNEL_1 , &PrawoPWM, 1); 

HAL_TIM_PWM_Start_DMA(&htim4, TIM_CHANNEL_2 , &LewoPWM, 1);

How can I start two channels?

10 REPLIES 10
Laurent Ca...
Lead II

Dear @JSzem.1​ 

As you do not answer, I guess you don't have to solve this problem anymore, therefore I consider this thread closed.

If not, feel free to reopen it by posting a new answer.

Best regards

Laurent Ca...