cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_DMA_XferCpltCallback function is not trigger when DMA is transfer the data

thannara123
Senior

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 .

 

0 REPLIES 0