Question
DCMI, SDIO and DMA2 confusion
Posted on February 11, 2014 at 12:05
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 locationDMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t) (SDIO->FIFO); // Destination address 1st locationDMA_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. ThanksBaber #sdio #stm32f4 #dcmi-dma-camera