AnsweredAssumed Answered

DCMI, SDIO and DMA2 confusion

Question asked by ali.babar on Feb 11, 2014
Latest reply on Feb 12, 2014 by ali.babar
Hi I am working with stm32f4 DCMI and SDIO interface. Both peripherals are connected to DMA2. I need to store data taken (from DCMI) by DMA2  to SDIO. I have set the following configurations. 

DMA_InitStructure.DMA_PeripheralBaseAddr = (uint32_t)(DCMI_BASE + DCMI->DR);  // Source Address 1st location
DMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t) (SDIO->FIFO); // Destination address 1st location
DMA_InitStructure.DMA_DIR = DMA_DIR_MemoryToMemory;     // DCMI FIFO (4 words) to SDIO FIFO (32 words)

DCMI DMA is configured in ping pong mode. DCMI FIFO is only 4 words deep where as SDIO FIFO is 32 words deep. I also want to configure SDIO Fifo in ping pong mode. 

This has created confusion for me and after a lot of browsing I am still confused. Does any body have an idea how I achieve this? i.e. Data from DCMI to SDIO using DMA2. Thanks