Question
2 x PWM with DMA
Posted on July 04, 2018 at 22:56
I am doing now small project with STM32F0. I would like to generate two PWM signals simultaneously using DMA. Everything is working fine if I am starting one of two PWM Generators. When I start two works only first one. Is there a way to make this PWM generation simultaneous on two channels?
Code simply looks like this:
HAL_TIM_PWM_Start_DMA(&htim3, TIM_CHANNEL_1, buf1, 6);
HAL_TIM_PWM_Start_DMA(&htim3, TIM_CHANNEL_4, buf2, 6);