cancel
Showing results for 
Search instead for 
Did you mean: 

DMA transfer ADC->FLASH

carlo2399
Associate
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

2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
carlo2399
Associate
Posted on April 14, 2011 at 10:03

Got it,

Thank you.

--

Carlo