OV7251 show blackscreen with USB2.0

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

cross mob
soqi_4187516
Level 2
Level 2
250 sign-ins 100 sign-ins 50 sign-ins

     I am developing ov7251 (raw10, vga, 30fps) with usb2.0, maybe there is someting wrong in the sequence, the screen is black. But usb3.0 is ok.

     It looks abnormal in the log:

OV7251 Camera CyCx3_ImageSensor_Set_Vga

USB Setup CB:Call AppSTOP3

AplnStop:SMState = 0x1

AplnStrt:SMState = 0x2

UsbCB:Call AppStop4

AplnStop:SMState = 0x5

AplnStrt:SMState = 0x1

Prod = 10 Cons = 4  Prtl_Sz = 14240 Frm_Cnt = 1 Frm_Sz = 19360 B

UsbCB:Call AppStop4

AplnStop:SMState = 0x7

AplnStrt:SMState = 0x1

Prod = 11 Cons = 19  Prtl_Sz = 14000 Frm_Cnt = 2 Frm_Sz = 19632 B

UsbCB:Call AppStop4

AplnStop:SMState = 0x5

AplnStrt:SMState = 0x1

Prod = 0 Cons = 8  Prtl_Sz = 15360 Frm_Cnt = 3 Frm_Sz = 15360 B

UsbCB:Call AppStop4

AplnStop:SMState = 0x5

AplnStrt:SMState = 0x1

Prod = 10 Cons = 12  Prtl_Sz = 4000 Frm_Cnt = 4 Frm_Sz = 9120 B

UsbCB:Call AppStop4

AplnStop:SMState = 0x5

AplnStrt:SMState = 0x1

Prod = 2 Cons = 8  Prtl_Sz = 12320 Frm_Cnt = 5 Frm_Sz = 13344 B

My configure is below:

        CY_U3P_CSI_DF_RAW10,  /* CyU3PMipicsiDataFormat_t dataFormat */

        1,                          /* uint8_t numDataLanes */

        2,                /* uint8_t pllPrd */

        80,            /* uint16_t pllFbd */

        CY_U3P_CSI_PLL_FRS_500_1000M, /* CyU3PMipicsiPllClkFrs_t pllFrs */

        CY_U3P_CSI_PLL_CLK_DIV_8,    /* CyU3PMipicsiPllClkDiv_t csiRxClkDiv */

        CY_U3P_CSI_PLL_CLK_DIV_8,    /* CyU3PMipicsiPllClkDiv_t parClkDiv */

        0,                        /* uint16_t mClkCtl */

        CY_U3P_CSI_PLL_CLK_DIV_2,    /* CyU3PMipicsiPllClkDiv_t mClkRefDiv */

        640,                /* uint16_t hResolution */

        50                            /* uint16_t fifoDelay */

How can i check it ?

0 Likes
10 Replies
KandlaguntaR_36
Moderator
Moderator
Moderator
25 solutions authored 10 solutions authored 5 solutions authored

Can you please share the uvc.c file?

0 Likes
lock attach
Attachments are accessible only for community members.

HI,

     Thanks for you reply. Attachment is my code, please help to check whether it is  someting wrong. By the way, i measured the vsync with CX3, it is not stable, i changed the pclk, but it always abnormal.

111.png

0 Likes

I can see that there is a difference in MIPI configuration in USB 3.0 and USB 2.0.

Can you please use MIPI configuration used in USB 3.0 in USB 2.0 as well and check?

0 Likes

When i used usb3.0 configuration for usb2.0, i can't receive any data.

0 Likes

As per description, the USB 3.0 is streaming the video fine. Is it correct?

0 Likes

Yes, usb3.0 is fine. But i use MIPI configuration used in USB 3.0 in USB 2.0 as well, it is abnormal. And i try to change the pclk, it is still useless.

0 Likes

Then, the VSYNC, HSYNC should be same w.r.t USB Speed.

Changing the USB speed to USB 2.0 does not have any effects on MIPI CSI-2 block operation.

Please check whether there are any MIPI errors in USB 2.0 case.

0 Likes

Hello,

Is this solved?

Regards,

Sridhar

0 Likes

Yes,thanks for your reply.

0 Likes

Great.

Can you please update what is the correct action you took to avoid this problem?

Regards,

Sridhar

0 Likes