does CX3 need GPIO when use gpif

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

cross mob
jawu_4351971
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

in this link https://community.cypress.com/thread/35257?start=0,you said "nothing (MIPI/GPIF II block) will interfere with control of these GPIOs (17,18,19, and 20)."

Now I have use the three GPIO as general IO,and I also use GPIF to receive camera stream,Is this okay?

0 Likes
1 Solution

Hello,

Please note that the MIPI/GPIF will not interfere with the controls of GPIOs 17,18,19,20. So it is perfectly okay to use GPIOs 17,18,19,20 while using GPIF to receive camera stream. The only thing to be noted is that you need to override GPIO17-20 to use them.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna

View solution in original post

0 Likes
7 Replies
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Can you let us know which GPIOs you are using for the Application?

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

I have use GPIO17,GPIO18,GPIO19,gpio20 as generial IO

0 Likes

Hello,

Please note that the MIPI/GPIF will not interfere with the controls of GPIOs 17,18,19,20. So it is perfectly okay to use GPIOs 17,18,19,20 while using GPIF to receive camera stream. The only thing to be noted is that you need to override GPIO17-20 to use them.

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes
jawu_4351971
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

no any other GPIO can affect MIPI/GPIF?Now my borad does not have PCLK,VSYNC,HSYNC output after GPIF/MINI initialize.And my configure is reference from the demo of OV5640 in  SDK.

0 Likes

Hello,

CX3 is having 12 GPIOs that can be configured as General I/Os. Use of any of these GPIOs will not interfere with the MIPI/GPIF II. Only thing to be noted is that while you use GPIO 17-20, you need to override them.

PCLK, VSYNC and HSYNC output will not come if you have some error in MIPI Configuration. Can you please send us an image of your MIPI configuration and let us know what resolution you are streaming?

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes

the mipi parameter is

CyU3PMipicsiCfg_t OV9282_Resolution0 =

{

    CY_U3P_CSI_DF_YUV422_8_2,    /* CyU3PMipicsiDataFormat_t dataFormat */

    4,                           /* uint8_t numDataLanes */

    2,                             /* uint8_t pllPrd */

    89,                             /* uint16_t pllFbd */  //PLL_CLK = REFCLK * [(PLL_FBD + 1) / (PLL_PRD + 1) ] / (2^ PLL_FRS)

    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 */

    640,                         /* uint16_t hResolution */

    50                             /* uint16_t fifoDelay */

};

CyU3PMipicsiSetIntfParams(&OV9282_Resolution0, CyFalse);

0 Likes

Hello,

Can you send me the following :

1. Debug messages you receive over Tera Term when you try to stream the video.

2. The screenshot of MIPI configuration utility settings

Please note that the MIPI configuration settings should be same as the sensor settings. Otherwise, the device will not stream the data. Please refer to the section 4.4 of the document  EzUsbSuite_UG to learn more about using the configuration utility. This can be found in the following location.

C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\doc\firmware

Best Regards,

Jayakrishna

Best Regards,
Jayakrishna
0 Likes