- Where did you get the camera module(s)?
rpishop - Model number of the product(s)?
B0068 - Arducam mini 5Mpx OV5642 - What hardware/platform were you working on?
stm32 nucleo with CubeIDE - Instructions you have followed. (link/manual/etc.)
STM32/STM32L152 at master · ArduCAM/STM32 · GitHub - Problems you were having?
Beacause lack of documentation, I had to set camera by reverse engineering demo on Arducam github.
I tested my I2C and SPI with logic analyzer and they are communication back and forth with camera correctly.
After I finish capture and try to read data I get FIFO length of just 0x68 and fifo returns something that looks like dummy sequence of data with correct jpeg start and end bytes (0xff 0xd8).
sequence looks like this:
ff d8 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d ff d9
ff d8 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d ff d9
I am reading all values with logic analyzer, so there are no mistakes in handling input in code.
my code: Capture/Core/Src at main · aprochazka/Capture · GitHub
-
The dmesg log from your hardware?
-
Troubleshooting attempts you’ve made?
I checked multiple times that I was setting module exactly the same way as in Arducam git. But no luck with fixing the issue.
- What help do you need?
It would help me if someone would tell me what am I doing wrong or what does this sequence mean or what registers need to be set in order to read correct jpeg.