OV5640 - Host not displaying image stream

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
GrAU_4638336
Level 4
Level 4
25 replies posted 10 replies posted 10 sign-ins

Hello,

I have been trying to get an image stream running on a CX3 + OV5640 board without success.
The firmware contains UVC and CDC interface and the debug prints are sent correctly. 
I have other firmwares on which I'm able to get the image stream flowing without problem so I know there is no hardware issue on my board. 
From the debug logs, the size of the frames is 614400 and all of them seem to be correctly sent to the host. 

I spent couple of day trying to fix things and compare the working and non working versions that I have without being able to find the root cause.
At this point, it is not clear to me wether the problem is related to a misconfiguration of the sensor and Mipi interface or a problem with the firmware itself. 

I have attached the firmware, the debug prints from one session and the USB traces extracted via Wireshark. 

If anyone could have a quick look and give me hints, that would be really appreciated.
Thanks in advance for your help

1 Solution
GrAU_4638336
Level 4
Level 4
25 replies posted 10 replies posted 10 sign-ins

I found the answer in the thread opened by my colleague. Here is the answer for people that might be interrested.

>>From the firmware shared in the thread pointed, I can see that RX payload size field in probe control structure is smaller than the DMA buffer size (0x5FF0).

Please configure the RX Payload size greater or equal to DMA buffer size in probe control structure as follows

0x00, 0x90, 0x00, 0x00, /* No. of bytes device can RX in single payload: 36KB *

Regards,
Rashi

That solved the issue. Thanks again Rashi! 

View solution in original post

4 Replies