Skip to main content
Explorer
September 3, 2024
Question

DMA channel1 Stream 0-7 which channel to choose

  • September 3, 2024
  • 2 replies
  • 1695 views

Hi i m working on H732 timer1 as PWM and its working fine, but when I try to implement DMA on timer1, there is no waveform. I enclosed the DMA code below, as I declare an array of 10 PWM duty cycle values..

i suspect it's the Timer1 channel1 stream that's causing the issue, can anyone advise which stream to choose? (stream 0-7 ? )

  HAL_TIM_PWM_Start_DMA(&htim1, TIM_CHANNEL_1, (uint32_t *)pwmAll, 10);  

 

StanJerm_0-1725327735894.png

 

    This topic has been closed for replies.

    2 replies

    Super User
    September 3, 2024

    The streams within a DMA are equivalent in all important aspects. In any case, choosing a different stream will not fix the problem.

    The problem is likely that the array is not in a location that the DMA can access.

    DMA is not working on STM32H7 devices - STMicroelectronics Community

    StanJermAuthor
    Explorer
    September 3, 2024

    ***! Why did the H7 series got this DMA issue? It looks like I have to migrate to F7 series? 

    Super User
    September 3, 2024

    > ***! Why did the H7 series got this DMA issue? It looks like I have to migrate to F7 series? 

    Did you read the linked article? It doesn't sound like you did.

    Super User
    September 3, 2024

    Because it's very complicated. 

    And that's because that's the only way to achieve the high operational speed. 

    JW