ArduCAM / Arduino

This is ArduCAM library for Arduino boards
MIT License
473 stars 349 forks source link

ArduCAM Mini-5MP-Plus running on Raspberry Pi W2 produces zero length JPEG #554

Open dhylands opened 2 years ago

dhylands commented 2 years ago

I made the following changes in order to get the example to compile: https://github.com/ArduCAM/Arduino/pull/553

I run the following command:

$ ./ov5642_capture -c foo.jpg 320x240
OV5642 detected.
Changed resolution1 to 320x240
Start capture
CAM Capture Done
Reading FIFO and saving IMG
The length is 5000

However the length written to the foo.jpg file is always zero.

I added some prints and it never finds the 0xffd8 in the buffer.

When I modify the code to write all of the FIFO data and not filter anything, then I can see that there is 0xffd9 near the end, but no 0xffd8 at the beginning.

dhylands commented 2 years ago

I was able to get this version: https://github.com/ArduCAM/RaspberryPi/pull/75 to work on my Pi.