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 .