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.

Preview on the fly issue

Here's the image loaded from the DDR when I open the CCDC.(640*480)

The sensor outputs raw bayer pattern without any processing, and I don't use any daughter card to capture the image.

I connect the databus to the DC_P1.& P2

Because the raw bayer pattern dosen't  go through the preview engine , it's gray scale when displayed on CCS.

Each pixel represents one color.

The preview sample C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\system\dm6437\bios\dm6437_evm\src\video\sample\previewer

There's an input image in the sample ,which is also raw bayer pattern like mine.

I should use the preview on the fly ,but it always gets error at CCDC exchange !!!

I have no clue what's the problem here .............

I find many topics like this in the forum ,but it seems there's no solution..........

thank you .

Ellen.

  • Hi :

    Few questions about the preview on the fly (DM6437):

    1. The data from the sensor must be 10-bits to the CCD controller ? or it can be 8-bit or ...etc ?

    2. Is there any way to check if the PSP_VIDEO_PATH_ENABLE is well defined ? I've de-comment the line .

    Thanks a lot .

    Ellen.

  • Hi,

    I am not a TI employee, but can confirm that a 8-bits bayer sensor can successfully work with a DM6437. Here are some hints you can look at:

    1- First I would recommend you to use the latest PSP package which is 1.10.03 (http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/psp/bios_psp/index.html#DSPBIOS_5.3x-based_Platform_Support_DM648)

    2- To make sure the PSP_VIDEO_PATH_ENABLE is defined, don't take any chance and reload the vpfe driver project (PSP_1_10_03\packages\ti\sdo\pspdrivers\drivers\vpfe) and rebuild it with the definition enabled. Then make sure to link the resulting library in your application.

    3- Make sure to carefully read the previewer and ccdc driver documentation (PSP_1_10_03\packages\ti\sdo\pspdrivers\drivers\vpfe\docs and PSP_1_10_03\packages\ti\sdo\pspdrivers\drivers\previewer\docs) to make sure you correctly follow the amazing number of constraints you must comply with when using on the fly mode. Also read the VPFE user guide (spru977d - TMS320DM643x DMP Video Processing Front End (VPFE) User's Guide.pdf) and more specifically sections about the CCDC and Previewer. Constraints that you must follow are listed in this document.

    4- When working on the fly, make sure to create the previewer channel driver before creating the CCDC channel driver. That is:

    GIO_create("/previewer", IOM_INOUT, NULL, &createMode, NULL);
    and GIO_control(PREV_Handle, PSP_PREVIEWER_IOCTL_SET_PARAMS, &PREV_Config);

    must come before

    FVID_create("/VPFE0", IOM_INOUT, NULL, &vpfeParams, NULL);

    5- Make sure to queue at least one buffer in the CCDC driver before calling exchange():

    FVID_queue(CCDC_Handle, PFrame)

    Hope it helps.

    Regards

    Franck

  • Thanks a lot , Franck:


    I 've installed the dvsdk_1_11_00_00 and pspdrivers_1_10_03


    And here's the problem when I open the preview on the fly project:

    ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/video/fvid.h

    I browse the file here and open the project:

    ti\sdo\pspdrivers\system\dm6437\bios\evmDM6437\video/fvid.h

    After I open the project and compile ,some error happens which are :

    "i2cParams_evmdm6437.c", line 47: fatal error: could not open source file "ti/sdo/pspdrivers/drivers/i2c/psp_i2c.h"

    "MT9001_extImageSensor.c", line 48: fatal error: could not open source file "ti/sdo/pspdrivers/system/dm6437/bios/evmDM6437/video/src/psp_i2c_interface.h"
    1 fatal error detected in the compilation of "MT9001_extImageSensor.c".

    "psp_i2c_interface.c", line 50: fatal error: could not open source file "ti/sdo/pspdrivers/common/psp_common.h"

    "psp_bios_vpfe_st_on_the_fly_sample.c", line 53: fatal error: could not open source file "ti/sdo/pspdrivers/pal_sys/dm6437/pal_sys.h"

    Could you give me some hint about the error ,it seems the path is not correct .

    Best regard.

    Ellen.

  • I never tried to compile sample projects for the EVMDM6437 eval board, but it looks like your include path is only missing the PSP package root directory. Only add the /package directory (just under the PSP installation directory) to your include path in your project and it should find those files....

  • thank you ,Frank .

    I really appreciate.

    I' ve successfully work on the preview on the fly.

    It's because I have to reload the vpfe driver !!!

    I used to de-comment the #define VIDEO_PATH_ENABLE,but I didn't rebuild the vpfe driver.

    thank you very much !!!!