cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 OV2640 Problem

yldzmuhammed
Associate III

Hello everyone,

I am developing a project with STM32F767IGT, OV2640 and 7" TFT LCD.

I have atteched my project files, and a video that shows the problem.

The problem is, my video on the screen is shifting from left to the right on screen.

I am using dma and not with fifo mode enabled. I am thinking that the problem is about ltdc.

How can i solve the problem?

https://www.youtube.com/watch?v=Lg-dBv7nXao

https://www.youtube.com/watch?v=x0a3sQJRbe4

In the video, you can see that when i move the camera, shifting is faster. And at the end of the video, somehow, video is frozen. I looked it up in the debug, and i saw that dma is stopped somehow. when i looked it up deeply, it see that dma error interrupt occured and it disables the dma.

What is the problem here and how can solve it?

2 REPLIES 2
TDK
Guru

You should debug the program to determine why the DMA stopped, and fix that. Likely it was because the DMA could not keep up and had an underrun. Using the FIFO can help with this.

The LCD requires a lot of data and can be DMA intensive. You should ensure it has priority and that other tasks don't starve resources from it.

If you feel a post has answered your question, please click "Accept as Solution".
yldzmuhammed
Associate III

I solved the problem. It was about my wiring (mostly). Now i renewed the connections and all gone..

Thanks alot.