Associate II
February 24, 2017
Question
STM32F407, DCMI_DMA,USART_DMA
- February 24, 2017
- 1 reply
- 802 views
Posted on February 24, 2017 at 08:19
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??
#usart #dcmi #camera #stm32