This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Raw image Data not captured in VPIF

Hi,

  I would like to thank the TI E2E community for helping me understand VPIF of TI.

  I am trying to get the raw image data from a Omnivision sensor,  Following arethe partial success achieved,

a.  I have successfully able to read and write register data to image sensor using I2C protocol.

b. I have successfully registered VPIF interrupt to generate FRAME0 and FRAME1 interrupt and successfully change the C0TLUMA buffer address.

c. Also the raw_v_valid and raw_h_valid are signal are in perfect order as expected by the VPIF documentation of OMAPL13X.

d. The clock input CLKIN0 and CLKIN1 are clocked at 48 Mhz, image capture type is 1280 * 720p

 issues faced by me:

1. Not able to see the data captured by VPIF port at buffer addresses.

2. Is there any document to understand Image analyzer of CCS.

3. When is a frame interrupt and line interrupt are generated.

  • Vaishak,

    The Image Analyzer being used to display a raw YUV 4:2:2 interleaved data on target memory.
    Note:
    How the 'Load Memory' feature is used to load the raw YUV image from the PC to target memory and the Image Analyzer properties is imported from an existing properties file to avoid re-entering the properties.

    Please have a look at the below wiki article, this will help you.
    http://processors.wiki.ti.com/index.php/Image_Analyzer
    http://processors.wiki.ti.com/index.php/Demonstration_of_VPIF_raw_capture_using_MT9T031_sensor_on_AM18X/DA850/OMAP-L138_running_Linux

  • Hi Pubesh,

              Thanks for your suggestion,

    I am trying to interface OV2643 to OMAPL13X. I'm able to read the product id of the device via I2C

    The signals outputted by Vsync and Href lines are in accordance with OMAPL13X VPIF document.

    The PCLK signal (i.e. commonly fed to VP_CLKIN0 and VP_CLKIN1) are at 48Mhz
     , while master clock fed into the image sensor from UI board of EVM board  is 24Mhz

    I'm trying to capture raw image data in progressive mode with 1280 * 720p format

    Following are the register configuration used:

    For Channel 0

    Clkedge : Capture data on rising edge

    Datawidth: 8 bits per pixel

    INTLINE: 720p

    FIDINV: 0

    VVINV: 0

    HVINV: 0

    FIELDFRAME: FRAME

    INTRPROG: PROGRESSIVE

    VANC: 0

    HVANC: 0

    INTFRAME: TOP_ONLY

    FID: TOP FIELD

    YCMUX: 0

    CAPMODE: CCD/CMOS RAW capture mode

    CHANEN: 1

    For Channel 1

    Clkedge : Capture data on rising edge

    INTRPROG: PROGRESSIVE

    VANC: 0

    HVANC: 0

    INTFRAME: TOP_ONLY

    FID: TOP FIELD

    YCMUX: 0

    CAPMODE: CCD/CMOS RAW capture mode

    CHANEN: 1

    Interrupt enable

    INTEN: FRAME0 and FRAME1

    Interrupt set register

    INTSET: FRAME0 and FRAME1

    Interrupt Enable Clear

    INTENCLR: FRAME0 and FRAME1

    Emulation Control Register

    EMUCTRL: 0

    DMA size control register

    REQSIZE: 256

    C0TLUMA: 0xC0000000

    C0IMGOFFSET : 1280 * 720 * 2

    The sequence followed is

    - Disable VPIF Interrupts

    - Disable Channel Enable

    - Disable Horizontal and Vertical Ancillary Data

    - Setup the above register values

    - Enable interrupts for FRAME0 and FRAME1

    - Enable clear interrupts for FRAME 0 and FRAME1

    - Enable set interrupts for FRAME 0 and FRAME1

    - Then setup interrupt service routine that gets called for both frame and line interrupt

    Please have a look at the steps taken by me and kindly guide.

    Also it would be more helpful if pseudo code for omapl13x starterware

  • Enabling VPIF raw capture:
    Support for VPIF raw capture is added in PSP release 03.21.00.04.
    Please refer this wiki article to get the sample code.
    http://processors.wiki.ti.com/index.php/Demonstration_of_VPIF_raw_capture_using_MT9T031_sensor_on_AM18X/DA850/OMAP-L138_running_Linux

  • Hi Vaishak R,

         Recently, I am trying to add the ov7670 driver to OMAPL13X,but when i add the driver and could not read the ov7670 register successfully.my software package is dvsdk_omapl138-evm_04_03_00_06.

       As you said you  have successfully able to read and write register data to image sensor using I2C protocol.

        Could you tell me what place you have changed ,I mainly modified the board-da850-evm.c file ,Is there any files that i should modfied?

        Thanks very much.

  • Hi Ouyang Zhao,

     Sorry for late reply . Can you kindly post the original and the modified files for better understanding of the problem, if it is not solved.

    Thanks

    Vaishak