cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 DCMI Crop

vlad23
Associate II
Posted on January 06, 2016 at 14:08

Good day!

I get a picture with the camera in the RGB565 format, using DMA. Full frame normally captured and stored to the external SRAM (16-bit word). When I try using a hardware crop of DCMI to capture strip height of 100 pixels, normally captured only the first 2 frames. Other frames are distorted. Tell me what I'm doing wrong.

The code to work with DCMI, 2nd (normal) and third (distorted) images attaching.

Calling something like this:

DCMI_Init();

DCMI_Crop_Enable(0, 334, XGA_X_RES, 100);

for (;;) {

  DCMI_Read(img, IMG_SZ);

  delay_ms(1000);

}
0 REPLIES 0