cancel
Showing results for 
Search instead for 
Did you mean: 

DMA unexpected work on stm32g071

rpip.1
Associate III

i want to use dma ch2 to response a request of Req_CC3 to load a new value to TIM1 CCR1 or CCR2 . i need dma in some turns but not always so i choose nomal mode. i'd like to know if dma request is  accumulated in stack or somewhere. cause every time i disable dma and reinitialize dma , the value buffered is been transferred  immediately,even if i clear CC3IF before i initialize dma.

1 REPLY 1

In older STM32, without DMAMUX, there's a latch at the output of TIM, you have to clear it by clearing/setting TIMx_DIER.CCxDE.

I'm not sure how this changes using DMAMUX, but try and come back with your findings.

JW