Skip to main content
mahmoud boroumand
Associate III
August 9, 2017
Solved

Same Memory base address In DMA

  • August 9, 2017
  • 3 replies
  • 861 views
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?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    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

    3 replies

    waclawek.jan
    Super User
    August 9, 2017
    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

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    August 9, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    mahmoud boroumand
    Associate III
    August 10, 2017
    Posted on August 10, 2017 at 11:36

    Thanks