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.

OMAPL138-LCDK example for camera sensor

Other Parts Discussed in Thread: CDCE913, OMAPL138, TMS320C6748

Hello!

I want to develop a video streaming application using OMAPL138-LCDK and LI-M024DUAL camera board from Leopard Imaging.As far as I am concerned, the available face detect demo is built on composite input,and I want to use the camera sensor input...Are there any examples available in order to use camera sensor input?

Thank you in advance!

  • Hi katerina,

    As you already mentioned, Face detect demo is available only for supporting composite camera sensors.

    No examples or demo are readily available to support Leopard Imaging sensors.

    But there are Source codes available and validated on EVM ( not on LCDK) for ARM and DSP to interface with image sensors.With reference to this source code, you can modify it for LCK platform.

    You can refer the below thread for more info and download the code as well.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/200759.aspx

    Regards,

    Shankari.

    --------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hello !
    I have downloaded the example code provided by logicPD and I am trying to modify the vpif_lcd_loopback example  in order to capture raw data from a Leopard Imaging sensor.

    In the example code provided by logicPD, in the function MT9V032_init()  (initialization and configuration of the camera sensor)
    one of the first steps is to initialize a clock synthesizer  (via calling the CDCE913Init() function ) in order to supply the camera sensor with an external clock.
    The problem is that when I try to do the same in the vpif_lcd_loopback example, when I use the function CDCE913Init() the execution gets stuck  in a while loop that indicates that the data (i.e. value for one of cdce913 registers) hasn't been sent to cdce913 via i2c.More precisely:

    My function for initializing my camera sensor:

    void MT9M024_Init(unsigned int baseAddr)
    {
    /    /extclk=27Mhz
        CDCE913Init(baseAddr);
        
        //soft reset - i2c configuration is preserved
        //R0-301A[0]=1 for 1ms
        CameraRegWrite(baseAddr,0x301A, 0x0001);
        Delay(1000000);
        CameraRegWrite(baseAddr,0x301A, 0x0000);
        Delay(1000000);
                .
                .
                .
    }

    Program flow:

    MT9M024_Init() -> CDCE913Init() -> CodecRegWrite() -> I2CCodecSendBlocking() -> while loop


    Point that program gets stuck:

    static void I2CCodecSendBlocking(unsigned int baseAddr, unsigned int dataCnt)
    {            .
                .
                .
        I2CMasterStart(baseAddr);
        
        /* Wait till the data is sent */
        
        while(txCompFlag);
    }



    Any ideas why the clock synthesizer can't receive data via I2C?
    I am using OMAPL138-LCDK with a dual camera module from Leopard Imaging and I am modifying the vpif_lcd _loopback example code from OMAPL138_StarterWare_1_10_03_03 .
    Thank you in advance!




  • I’m interested too, please help us.

     

    By the way Katerina, which is your Leopard camera?

     

  • Hello Ilich,

    I have the LI-M024DUAL camera board.

    Regards,

    Katerina

  • Hi Katerina,

    I am now working on the same issue, using the C6748 LCDK to drive the Leopard image sensor and my module is AR0331, which comes with a LI-CAM_AR0331 board.

    The same question exists here, plz help!

    Xing

  • Hi Shankari,

    I am facing with the similar problem here for the image sensor driving staff. 

    I download the example code from the above link, and I try to transfer the code to be compatible with my current device (Aptina AR0331 image sensor, comes with the Leopard LI-CAM-AR0331 board). During the development, I found that it needs the clock setting procedure from the CDCE913 (CDCE913_init()). However, there is no such device on my current C6748 LCDK ( TMDXLCDK6748). How should I deal with it at current stage? Do i need to change my hardware peripherals?

    Thanks.

    Xing 

  • Hi Xing,

    I am not sure ,but I think that the oscillator for the sensor might be on the Leopard header board.Inform me if you reach to such a conclusion too.

    Regards,
    Katerina
  • Hi Katerina,

    Thanks, yep, u r just right there.

    I checked the circuit schematics of the camera head board, it does have a local oscillator to supply the clock signal, which means I do not need to deal with missed CDCE913.

    Now I am working on getting the RAW data out and processing it with the C6748.

    Do you have any progress with your camera and LCDK interface? 

    Best,

  • Hi Xing,

    I also have removed the CDC913 function ,but again the executions gets stuck in I2CCodecSendBlocking() when I try to send via i2c a  value for a camera's register....

    Have you managed to set  the camera's registers via i2c ?

    Regards,

    Katerina

  • Hi Katerina,

    I see, these days I'm also working on the register stuff, no progress yet. Will give out some update once get some thing out.

    Best,

  • hey guys,

    i am working on a similar board omap L138 lcdk which has dsp tms320c6748.

    could you please suggest some camera modules which are compatible with my board? the image from camera needs to be processed by the dsp.

    any help is important.

    regards.

  • Hello,

    Please refer below thread where you can find relevant information.

    e2e.ti.com/.../573192

    Regards,
    Senthil