7 Replies Latest reply on Oct 16, 2019 3:03 AM by JayakrishnaT_76

    does CX3 need GPIO when use gpif

    jawu_4351971

      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?

        • 1. Re: does CX3 need GPIO when use gpif
          JayakrishnaT_76

          Hello,

           

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

           

          Best Regards,

          Jayakrishna

          • 2. Re: does CX3 need GPIO when use gpif
            jawu_4351971

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

            • 3. Re: does CX3 need GPIO when use gpif
              JayakrishnaT_76

              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

              • 4. Re: does CX3 need GPIO when use gpif
                jawu_4351971

                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.

                • 5. Re: does CX3 need GPIO when use gpif
                  JayakrishnaT_76

                  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

                  • 6. Re: does CX3 need GPIO when use gpif
                    jawu_4351971

                    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);

                    • 7. Re: does CX3 need GPIO when use gpif
                      JayakrishnaT_76

                      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