2024-08-09 5:06 AM
Hello !
I am using DMA with pwm and working on unipolar SPWM.
i have configured DMA with an array of pwm and is working fine. i am trying to get the interrupt after either each DMA transfer or after the reload of ARR register. According to the documentation i tried using function
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
if (htim->Instance == TIM1 && htim->Channel == HAL_TIM_ACTIVE_CHANNEL_1) {
HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_1);
}
}
but it doesnt seems working.
I doubt i couldnt configure proper interrupt for it. here is the NVIC setting
Any guidance please...
2024-11-28 8:35 AM - edited 2024-11-28 8:36 AM
Hello @skuma.8, sorry for the delayed answer,
Is there any news about this? Is the timer started with the interrupt enabled? Using the HAL_TIM_Base_Start_IT function?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.