cancel
Showing results for 
Search instead for 
Did you mean: 

Same Memory base address In DMA

mahmoud boroumand
Associate III
Posted on August 09, 2017 at 14:01

Hello 

Can i use same memory base address in two dma (dma1 ,dma 2) for transfer date to Peripheral?

DMA_DeInit(DMA1_Channel7);

DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t) & GPIOA->ODR;

DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)BUFFER;

DMA_DeInit(DMA2_Channel7);

DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t) & GPIOB

->ODR;

DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)

BUFFER

;

Is it have any problem?

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on August 09, 2017 at 14:30

This kind of memory-to-memory must be done with DMA2 to access GPIO residing on the AHB

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3
Posted on August 09, 2017 at 14:19

Can i use same memory base address

Yes.

Is it have any problem?

There may be a different one: In 'F2/'F4/'F7, the peripheral address of DMA1 must be on APB1.

JW

Posted on August 09, 2017 at 14:30

This kind of memory-to-memory must be done with DMA2 to access GPIO residing on the AHB

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
mahmoud boroumand
Associate III
Posted on August 10, 2017 at 11:36

Thanks