2017-08-09 05:01 AM
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?
Solved! Go to Solution.
2017-08-09 05:30 AM
This kind of memory-to-memory must be done with DMA2 to access GPIO residing on the AHB
2017-08-09 05:19 AM
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
2017-08-09 05:30 AM
This kind of memory-to-memory must be done with DMA2 to access GPIO residing on the AHB
2017-08-10 02:36 AM
Thanks