Skip to main content
vlad23
Associate
January 6, 2016
Question

STM32F4 DCMI Crop

  • January 6, 2016
  • 0 replies
  • 452 views
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);

}
    This topic has been closed for replies.