Skip to main content
Graduate II
July 25, 2024
Question

HAL_DMA_XferCpltCallback function is not trigger when DMA is transfer the data

  • July 25, 2024
  • 1 reply
  • 1063 views

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 .

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    September 6, 2024

    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!