Skip to main content
carlo2399
Associate
April 13, 2011
Question

DMA transfer ADC->FLASH

  • April 13, 2011
  • 2 replies
  • 563 views
Posted on April 13, 2011 at 19:32

Hi,

Is it possible to transfer data from ADC to FLASH using DMA?

The following snippet does not work for me:

...

DMA_InitStructure.DMA_PeripheralBaseAddr = ADC1_DR_Address;

DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)0x0801FC02;

...

Any suggestion / pointers?

Thank you,

--

Carlo

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    April 13, 2011
    Posted on April 13, 2011 at 19:45

    Any suggestion / pointers?

    It's not a good plan, pick another one.

    Define what you want to achieve, the amount of data involved, and the bandwidth requirements. How often is the data going to be replaced?

    Writing into flash while running from flash will result in very serious stalling of the processor, this will negatively impact interrupt latency and data overruns (USART).

    Perhaps some battery backed external SRAM might be more suitable.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    carlo2399
    carlo2399Author
    Associate
    April 14, 2011
    Posted on April 14, 2011 at 10:03

    Got it,

    Thank you.

    --

    Carlo