Question
How to use HAL DMA to generate PWM on P-NUCLEO-WB?
I am trying to generate PWM by using DMA with HAL library:
uint16_t buffer[1] = {1500};
...
Status = HAL_TIM_PWM_Start_DMA(&htim2, TIM_CHANNEL_1, (uint32_t *)buffer, 1);however nothing happens. I am able to generate PWM without DMA:
TIM2->CCR1 = 500;
HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_1);Is there any example of DMA PWM usage?