cancel
Showing results for 
Search instead for 
Did you mean: 

Will DMA restart in circular mode clear previous unfinished array(STM32G491CE)?

YKim.21
Associate

Hi

Our chipset is STM32G491CE.

I use DAC with DMA in circular mode.

DAC stop and restart. It is started previous array index.

I want to be clear DMA circular buffer index.

How can i do it?

2 REPLIES 2

I don't quite understand what is the question, please try to explain on some simple example.

JW

TDK
Guru

In general, if you stop DMA, it will not have memory of when/where it stopped and will restart at the beginning of the array.

When you call HAL_*_DMA, you specify the parameters it uses to (re)start.

If you feel a post has answered your question, please click "Accept as Solution".