cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3 ADC-DMA restarting

michaelweilguni9
Associate
Posted on August 06, 2015 at 14:24

Hello!

I configured the ADC with DMA to fill a table in RAM. After

ADC_StartConversion (ADC1);

I use

while (!DMA_GetFlagStatus (DMA1_FLAG_TC1)) ;

until the DMA is full. This works fine for one complete transfer. But now I want to do the same again. How can I reset the DMA to overwrite the table with new ADC data? Thanks!
2 REPLIES 2
Posted on August 06, 2015 at 14:59

If you're configuring the DMA in Normal mode, the very least you'll need to do is reconfigure the DMA again before starting the ADC.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on August 06, 2015 at 16:26

Hi weilguni.michael.001,

You can also configure the DMA in circular mode.

-Shahrazad-