2013-03-28 07:40 AM
Hi,
I have STM32F4 Discovery connected OV9655 camera module without using any external ram from LCD.I want to use PC interfaces in the other words from DMA to Usart2 Module.I have tested it in many ways from counting the number of HCLK line per VSYNC to see the camera-output signal from my oscilloscope. All data is zero coming from STM.Solve?u16 imageBuffer[38400];
DMA_Channel = DMA_DCMI_ChannelType;
DMA_PeripheralBaseAddr = DMA_DCMI_ADDRESS;
DMA_Memory0BaseAddr = (u32) imageBuffer;
DMA_DIR = DMA_DIR_PeripheralToMemory;
DMA_BufferSize =
(sizeof(imageBuffer) / sizeof(u32));
DMA_PeripheralInc = DMA_PeripheralInc_Disable;
DMA_MemoryInc = DMA_MemoryInc_Disable;
DMA_PeripheralDataSize = DMA_PeripheralDataSize_Word;
DMA_MemoryDataSize = DMA_MemoryDataSize_HalfWord;
DMA_Mode = DMA_Mode_Circular;
DMA_Priority = DMA_Priority_VeryHigh;
DMA_FIFOMode = DMA_FIFOMode_Enable;
DMA_FIFOThreshold = DMA_FIFOThreshold_Full;
DMA_MemoryBurst = DMA_MemoryBurst_Single;
DMA_PeripheralBurst = DMA_PeripheralBurst_Single;
for
(i = 0; i < 38400; i++)
{
USART_SendData(Camera_Controlling.USART_Config[0].USARTType,(u16) imageBuffer[i]);
}