Corrupt images from the OV5640-STM32F4 interface
I am receiving corrupt images from OV5640-STM32F4. This isn't regular, I get proper images of resolution 320x240 to 5MP, but occasionally I keep receiving corrupt images. The corrupt images are found in all resolution. By corrupt image I mean, sometimes the image color is wrong, sometimes the pixels are shifted, sometimes half the image is missing. I pick the image from SDRAM and transfer it over UART. I suspected it was because the DCMI is overflowing or some error.
I set the FRAME COMPLETE, OVERRUN and ERROR interrupt of DCMI along with frame capture interrupt. When I debug even though I receive corrupt images, I don't get any error callbacks, I only get a FRAME capture call back.
Does that mean DCMI is not the one causing the corrupt images?
What might be the reason for obtaining random corrupt images?