2021-09-18 07:02 AM
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?
2021-09-18 07:18 AM
I don't quite understand what is the question, please try to explain on some simple example.
JW
2021-09-18 08:08 AM
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.