2024-07-25 08:02 AM
HI , am a beginner
i am using the follwing code
HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, (uint32_t *)sine_table, 20); HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1); // Start the DMA with the 180-degree phase-shifted sine wave table on channel 2 HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_2, (uint32_t *)sine_table, 20); HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_2);
Whenver the data transfer through the DMA is completed the HAL_DMA_XferCpltCallback function is not triggering .
why it so happen whats worng with me
But
void DMA2_Stream2_IRQHandler(void)
this function trigger .
2024-09-06 05:43 AM
Hello @thannara123,
Looking back at older questions, I suppose this question is answered in this thread: Solved: Re: hdma_tim1_ch1.XferCpltCallback = TransferCompl... - STMicroelectronics Community
Could you please confirm it?
Thank you!
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.