Skip to main content
michaelweilguni9
Visitor II
August 6, 2015
Question

STM32F3 ADC-DMA restarting

  • August 6, 2015
  • 2 replies
  • 634 views
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!
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    August 6, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Nickname5522_O
    Visitor II
    August 6, 2015
    Posted on August 06, 2015 at 16:26

    Hi weilguni.michael.001,

    You can also configure the DMA in circular mode.

    -Shahrazad-