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?

This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
waclawek.jan
Super User

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

JW

TDK
Super User

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".