cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 - How to abort a DMA transfer?

Simon Schulz
Associate II
Posted on April 09, 2017 at 21:57

Hi!

I was wondering what is the correct way to abort an ongoing DMA transfer?

I have a situation where it seems like there was an incoming DMA request while I had the DMA disabled.

I disable all channel triggers and when I re-enable the DMA channel I get a single transfer immediately.

Is there a way to clear this 'pending' DMA request?

Simon

3 REPLIES 3
Jan Waclawek
Senior II
Posted on April 09, 2017 at 23:21

Timer triggered DMA? Toggle the bit which enables it in DIER.

JW

Posted on April 10, 2017 at 08:50

https://community.st.com/0D70X000006SnyGSAS

 
Simon Schulz
Associate II
Posted on April 10, 2017 at 22:33

perfect! that did the trick! Thanks a lot!