Where did you get the camera module(s)?
Model number of the product(s)?
Arducam OV5642 5MP Plus
What hardware/platform were you working on?
STM32h7xx based hardware (based on Raspberry PI)
Instructions you have followed. (link/manual/etc.)
I’m working off one of the built-in examples from the GitHub
Problems you were having?
We’re facing issue wherein sometimes images are corrupted. To debug this further, i enabled the TEST_PATTERN (color bar). And for the image size of ov5642_1024x768, in normal working scenario, jpeg image size would be 31176 bytes. But sometimes, we get the large image size like 48k, 87k and so on. And in this failure scenario, image is corrupted.
I connected the logic analyzer to the camera module SPI pins. And from the capture, could see that for FIFO_SIZE1, FIFO_SIZE2 and FIFO_SIZE3 return different values:
In working scenario:
And in failure scenario:
Ideally, FIFO size should be same since TEST_PATTERN is enabled. But in this case, it varies. Could you please let us know if something is missing here? As mentioned earlier, it does work most of the times where images are captured fine. But we do have quite a few number of cases where images are corrupted. So we’re trying to figure the root cause of it.
The dmesg log from your hardware?
Troubleshooting attempts you’ve made?
What help do you need?
Why FIFO_SIZEs should vary for the same TEST_PATTERN?