Skip to main content
rpip.1
Associate II
March 9, 2021
Question

DMA unexpected work on stm32g071

  • March 9, 2021
  • 1 reply
  • 647 views

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.

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
March 9, 2021

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