AnsweredAssumed Answered

STM32F407, DCMI_DMA,USART_DMA

Question asked by KULKARNI.NAGESH on Feb 24, 2017
Latest reply on Feb 25, 2017 by KIC8462852 EPIC204278916

I am transferring 240x320 image in RGB565 format to USART.

But unable to get full image because USART speed is not matching with DCMI

 

Pixel Clock for DCMI_DMA:12MHz

USART speed:921600

 

I am using DCM_DMA in snapshot,circular mode & USART_DMA in normal mode

in main,

HAL_DCMI_Start_DMA(&hdcmi,(uint32_t)DCMI_MODE_SNAPSHOT ,(uint32_t)image,9600);

 

In IRQ, (void DMA2_Stream1_IRQHandler(void))

HAL_UART_Transmit_DMA(&huart2,ptr,38400);

I am attaching my output image,

 

 

How should I solve this problem??

Attachments

Outcomes