cancel
Showing results for 
Search instead for 
Did you mean: 

best way to reset circular DMA

SWenn.1
Senior III

I am sending an audio stream from memory to SAI2 on an STM32L476JG. There will be moments where I disable the DMA based on external asynchronous events. Can someone tell me the appropriate way to then reset the DMA so that when it begins again it is at the beginning of the audio clip?

Thanks

1 REPLY 1
KnarfB
Principal III

You don't want to pause/resume but stop. Why not simply disable (DeInit) and re-init it?

hth

KnarfB