Arducam 2MP mini VGA 320*240 mode image being split and wrapped around

We are currently working on a project that displays the image capture from the Arducam 2mp mode onto a VGA monitor. We have successfully initialized everything and can output our captures to our monitor.

However, sometimes our images are arbitrarily split and wrapped around when we display them (as shown below). This occurs 30% of the time approximately. This could either be an issue with the way we are capturing the image with camera settings, writing to on chip memory on our FPGA RAM, or displaying on the VGA monitor; however, we have tested our RAM output of a static image to VGA and never run into this issue, so we believe that the problem lies with the camera image capture itself. We were wondering if anyone has faced similar issues and may have had a simple fix to this. We think the wraparound for the image comes from accessing indices that are “out of bounds” and therefore go back the front of the frame buffer, and are not sure if this could be happening on the on-chip frame buffer in the camera.

For reference, we placed our camera in 320240 mode but only have enough RAM to display a 200200 picture, so a bit of the photo is naturally cropped but this image split with the actual right side of the image showing up on the left. If we displayed the entire image, you would see the direct correlation between the sides of the image (and we have done this before to see as well).

Our C code is pretty straightforward as we checked FIFO length, clear the fifo flag, flush the fifo, and start the capture. We then iterate through the image and read 640 bytes at a time after reading the dummy byte.

Thanks for your help in advance! We have been debugging this issue for a while and have our final demo this Friday for this project :slight_smile:


I suggest you use Arduino UNO to test mini 2mp plus and send the image to the host app, or save the image to the SD card. If the image does not have the problem of splitting, then there may be a problem with your current usage.