mindthomas
Member level 4

Hi there.
This weekend I started working on a new project including the OV7670 camera module.
I have been searching the internet and found different source code examples - both for AVR and for STM32.
In this project I am going to use the STM32 so it was great that a source was already available.
I have now hooked everything up to the STM32, made nessecary changes to the code to match the pins, and uploaded it. It didn't work though
On the LCD I just have yellow garbage as you can see in the image below.
The OV7670 is connected to an AL422B FIFO chip, which is then connected to the STM32 for reading.
The schematic of this circuit can be seen here:

The camera module seems to work fine, as both PCLK, VSYNC and HREF (HSYNC) is correct in timing.
I have attached some images of the different signal lines.
PCLK Line
VSYNC
HREF (top) + PCLK (bottom)
My current source code can be downloaded here: https://www.tkjelectronics.dk/uploads/OV7670_Display.zip
I think the problem lies in the configuration. The configuration bytes are probably all OK, but then maybe there is a problem in the communication part (writing bytes via SCCB).
I hope some of you have an clue of the problem.
Thank you
Best Regards
Thomas Jespersen
This weekend I started working on a new project including the OV7670 camera module.
I have been searching the internet and found different source code examples - both for AVR and for STM32.
In this project I am going to use the STM32 so it was great that a source was already available.
I have now hooked everything up to the STM32, made nessecary changes to the code to match the pins, and uploaded it. It didn't work though
On the LCD I just have yellow garbage as you can see in the image below.

The OV7670 is connected to an AL422B FIFO chip, which is then connected to the STM32 for reading.
The schematic of this circuit can be seen here:

The camera module seems to work fine, as both PCLK, VSYNC and HREF (HSYNC) is correct in timing.
I have attached some images of the different signal lines.
PCLK Line

VSYNC

HREF (top) + PCLK (bottom)
_PCLK(bottom).bmp)
My current source code can be downloaded here: https://www.tkjelectronics.dk/uploads/OV7670_Display.zip
I think the problem lies in the configuration. The configuration bytes are probably all OK, but then maybe there is a problem in the communication part (writing bytes via SCCB).
I hope some of you have an clue of the problem.
Thank you
Best Regards
Thomas Jespersen