How can debug CX3 MIPI CSI-2 RX to GPIF?

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

cross mob
Anonymous
Not applicable

Hi,

   I want to use CX3 to receive 1280x720p@15hz YUV422 sensor input and My CX3 MIPI Setting is as follow,

CY_U3P_CSI_DF_YUV422_8_2,//CY_U3P_CSI_DF_YUV422_8_2, //CY_U3P_CSI_DF_RAW10,     /* dataFormat   */
2,                          /* numDataLanes */
7,                            /* pllPrd (0x0F = 15)  */
333,                         /* pllFbd (0x1FF = 511)   */  //400.8MHz  19.2*(333+1)/(7+1)/2^1 = 400.8
CY_U3P_CSI_PLL_FRS_250_500M, /* pllFrs  */
CY_U3P_CSI_PLL_CLK_DIV_8,   /* csiRxClkDiv  */  //mipi detect clk 100 mhz  ,
CY_U3P_CSI_PLL_CLK_DIV_8,   /* parClkDiv*/  //para 100Mhz
0x0806,                       /* mclkCtl  */
CY_U3P_CSI_PLL_CLK_DIV_2,   /* mClkRefDiv   */  //12  400.8/2 / (8+1+6+1) = 12.525  (12.5)
1280,           /* uint16_t hResolution */
1  

When I use AMPCAP to preview, CX3 Firmware UVCGpifCB always stay in state "CX3_PARTIAL_BUFFER_IN_SCK1" so the DMA callback is not work. What does it mean? How can I debug this issue? Thanks.

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

Your MIPI settings and calculations shown are not correct.  You can use the CX3 config tool to generate the proper MIPI settings rather than using your own calculations.

Regards,

Savan

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

Can you please probe the HSYNC and VSYNC lines and check if the behavior is expected one?

Regards,

- Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hi,

Your MIPI settings and calculations shown are not correct.  You can use the CX3 config tool to generate the proper MIPI settings rather than using your own calculations.

Regards,

Savan

0 Likes