Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

user_4075961
New Contributor

I use OV9281 sensor with raw 8bit format, 1280x800 resolution. CYUSB3065 received data with error from OV9281 sensor and didn't receive all data with 1280x800 resoluion from sensor.

1. CX3 MIPI configuration

sensor_cfg.png

cx3_cfg.png

/* OV9281_RAW8_1280x800 :  */

CyU3PMipicsiCfg_t OV9281_RAW8_1280x800 = 

{

    CY_U3P_CSI_DF_RAW8,  /* CyU3PMipicsiDataFormat_t dataFormat */

    2,                          /* uint8_t numDataLanes */

    2, /* uint8_t pllPrd */

    89, /* uint16_t pllFbd */

    CY_U3P_CSI_PLL_FRS_250_500M, /* CyU3PMipicsiPllClkFrs_t pllFrs */ 

    CY_U3P_CSI_PLL_CLK_DIV_4, /* CyU3PMipicsiPllClkDiv_t csiRxClkDiv */

    CY_U3P_CSI_PLL_CLK_DIV_4, /* CyU3PMipicsiPllClkDiv_t parClkDiv */

    0,                 /* uint16_t mClkCtl */

    CY_U3P_CSI_PLL_CLK_DIV_2, /* CyU3PMipicsiPllClkDiv_t mClkRefDiv */

    1280,         /* uint16_t hResolution */

    50                         /* uint16_t fifoDelay */

};

2.  Uart log after uncomment PRINT_FRAME_INFO in cycx3_uvc.h, CyU3PMipicsiGetErrors in  cycx3_uvc.c.

Prod = 13 Cons = 13  Prtl_Sz = 18108 Frm_Cnt = 203 Frm_Sz = 496716 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 19448 Frm_Cnt = 204 Frm_Sz = 498056 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 19468 Frm_Cnt = 205 Frm_Sz = 498076 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 21096 Frm_Cnt = 206 Frm_Sz = 499704 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 22636 Frm_Cnt = 207 Frm_Sz = 501244 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 19520 Frm_Cnt = 208 Frm_Sz = 498128 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 21040 Frm_Cnt = 209 Frm_Sz = 499648 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 22584 Frm_Cnt = 210 Frm_Sz = 501192 B

TimeDiff = 2931 ms FPS = 10

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 21112 Frm_Cnt = 211 Frm_Sz = 499720 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 22612 Frm_Cnt = 212 Frm_Sz = 501220 B

0 0 0 2 0 0 0 0 0

Prod = 13 Cons = 13  Prtl_Sz = 22656 Frm_Cnt = 213 Frm_Sz = 501264 B

0 0 0 2 0 0 0 0 0

There are frame error ( CyU3PMipicsiGetErrors() )  in log.

I think that frame size have to Frm_Sz = 1280x800 in log. Right?

It seem that some data dropped or with error.

0 Likes
1 Solution
KandlaguntaR_36
Moderator
Moderator

You are operating the CSI clock at 800 MHz. It is recommended to operate upto 500 MHz.

Please set CSI clock less than 500 MHz.

Have you used CyU3PMipicsiSetPhyTimeDelay API to configure the PHY Time Delay as 8?

Call this API after calling CyU3PMipicsiSetIntfParams (with second argument wakeOnConfigure as CyFalse).

View solution in original post

2 Replies
KandlaguntaR_36
Moderator
Moderator

You are operating the CSI clock at 800 MHz. It is recommended to operate upto 500 MHz.

Please set CSI clock less than 500 MHz.

Have you used CyU3PMipicsiSetPhyTimeDelay API to configure the PHY Time Delay as 8?

Call this API after calling CyU3PMipicsiSetIntfParams (with second argument wakeOnConfigure as CyFalse).

View solution in original post

user_4075961
New Contributor

Thanks. I'll change CSI clock to under 500MHz and testing

0 Likes