1 2 3 Previous Next 35 Replies Latest reply on Jul 3, 2018 3:41 AM by vladimirostu_2251656

    How add resolution ov5640 CX3 using gpif II

    vladimirostu_2251656

      Hello.

      I have a denebola devboard (CX3 + OV5640)

      I hope add any resolutions to USB2 type connection.

       

      I made

      1) add frame descriptors in descriptor file (for example 1280*720)

       

          /* Class specific Uncompressed VS frame descriptor 2 - 720p@ 60fps*/

          0x1E,                               /* Descriptor size */

          ES_UVC_CS_INTRFC_DESCR,             /* Descriptor type*/

          0x05,                               /* Subtype: Uncompressed frame interface*/

          0x02,                               /* Frame Descriptor Index: 2 */

          0x00,                               /* No Still image capture method supported */

          0x00, 0x05,                         /* Width in pixel: 1280 */

          0xD0, 0x02,                         /* Height in pixel: 720 */

          0x00, 0x00, 0x57, 0x00,             /* Min bit rate

          0x00, 0x00, 0xBC, 0x34,             /* Max bit rate

          0x00, 0x20, 0x1C, 0x00,             /* Maximum video frame size in bytes(Deprecated): 1280 x 720 x 2   */

          0x0A, 0x8B, 0x0E, 0x00,             /* Default frame interval (in 100ns units): (1/60)x10^7 */

          0x01,                               /* Frame interval type : No of discrete intervals */

          0x0A, 0x8B, 0x02, 0x00,             /* Frame interval 3: Same as Default frame interval */

       

      2) add handler in code

       

      if(FrameIndex == 0x01)

      {

      /* Write VGA Settings */

      status = CyU3PMipicsiSetIntfParams (&cfgUvcVga30NoMclk, CyFalse);

      if (status != CY_U3P_SUCCESS)

      {

      CyU3PDebugPrint (4, "\n\rUSBStpCB:SetIntfParams HS Err = 0x%x", status);

      }

      esOV5640_VGA_config();

      esOV5640_VGA_HS_config();

      }

      else if(FrameIndex == 0x02)

      {

      /* Write VGA Settings */

      status = CyU3PMipicsiSetIntfParams (&cfgUvcVga30NoMclk, CyFalse);

      if (status != CY_U3P_SUCCESS)

      {

      CyU3PDebugPrint (4, "\n\rUSBStpCB:SetIntfParams HS Err = 0x%x", status);

      }

      esOV5640_VGA_config();

      esOV5640_VGA_HS_config();

      }

       

      But I not understand how setup gpif , mipi lanes and probes, and ov5640 registers with this resolution

       

      Many thanks

        1 2 3 Previous Next