Skip to main content
SWenn.1
Senior III
March 3, 2022
Question

best way to reset circular DMA

  • March 3, 2022
  • 1 reply
  • 613 views

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

This topic has been closed for replies.

1 reply

KnarfB
Super User
March 4, 2022

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

hth

KnarfB