cancel
Showing results for 
Search instead for 
Did you mean: 

DMA channel1 Stream 0-7 which channel to choose

StanJerm
Associate III

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

 

4 REPLIES 4
TDK
Guru

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

If you feel a post has answered your question, please click "Accept as Solution".

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

> ***! 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.

If you feel a post has answered your question, please click "Accept as Solution".

I have used the F072 DMA with PWM before, and it works fine... Why does the H7 have all these issues...