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.

DM6437: Getting the Preview Engine to work with a CMOS sensor

Other Parts Discussed in Thread: TVP5146

Hello,

I have a DM6437 custom board with a 10-bit RGB Bayer CMOS sensor (an Aptina MT9V02x) connected on the CCDC video port. I had no problems getting a video loopback with the VPBE - it's working like a charm.

Now, I'd like to use the DaVinci Preview Engine to do mainly CFA interpolation. I'm having various problems dealing with the Preview engine driver (my emulator hangs...), and I'm looking for some help :)

My VPFE CCDC RAW parameters are the following:

Width: 752 px, Height: 480 px, Pitch: 1504 bytes, Frame Mode, BPP: 10 bits per pixel, 16-bit packing

And my preview engine parameters:

Sph: 4, Eph, : 752 - 4 -1; SLV: 0; ELV: 480 - 1; pixel_size: 10-bit; outPitch: 1504

Features: PSP_PREVIEWER_CFA
downSampleRate: PSP_PREVIEWER_DOWN_SAMPLE_RATE1

Any help or piece of advice, or sample would be much appreciated.

BR

Romain Farkas

 

 

  • Hi,

    I am working with the same cmos sensor with DM6437 eva board, and I have your same problems. When I try to run with Preview engine emulator sometimes hangs and CFA interpolation fail. Do you have fixed this problem and can you help me? In the next step I will change preview engine parameters.

    Best Regards

    Fabrizio

  • Fabrizio

    I've uploaded some snippets of my video/previewer driver here. It's 100% working :).

    Also check your pinmux.

    http://rapidshare.com/files/268696461/Previewer.zip.html

    I had some problems with the Previewer when I was debugging... so before trying anything new on my target, I just... "System Reset" the target, then use my GEL file initialization routine, then load the program in the memory. Every time I want to debug something. 

    Hope this helps

    Romain

     

     

     

  • Hi Romain,

    many thanks for your great and quick help.

    If I can do something for you......I will be very happy.

    Best Regards

    Fabrizio

  • Hi,

    I am working with the lupa-300 cmos sensor with DM6437 evm board, and I have your same problems. When I try to run with Preview engine emulator sometimes hangs and CFA interpolation fail. Do you have fixed this problem and can you help me?    http://rapidshare.com/files/268696461/Previewer.zip.html   disable  download

    Best Regards

    lang wenhui

  • Hello Lang,

    I used lupa-300 to interface with dm6446. I had also experienced similar problem where Previewer used to hang and VPFE has to be reset to come out of it.

    This was because If H3A is enabled when previewer is working in one-shot mode, previewer hangs in dm6446. This is mentioned in the silicon errata. I disabled H3A and the video port output to it to solve the problem.

    In dm6437 also check the errata, may be because of a similar problem previewer might hung.

    --

    Best Regards

    Arun

     

  • Hi Lang,

    I have not fixed my problems because I have not worked on this issue. I am developing a video camera and I am designing hardware. I will restart work on color cmos at the end of november. Last month I had experience of an issue of blocking in loopback sample. I have fixed this problem with upgrade of cgtools of Code Composer at latest release. When I will restart work on color cmos I will send you a post.

    Bye

    Fabrizio

     

  • Hi Lang,

    I had your same problem. I worked with wrong parameter in PrevParams->sizeParam.elv, the end line parameter was not correct. When this parameter was not correct the preview engine was always busy without generate interupt, and emulator was hanging.

    This was my problem. I hope this is useful to you.

    Hi

    Fabrizio

  • Hi Arun,

    I am interested in using the Lupa 300, can u or anyone tell me where I can buy a couple?? There is a worldwide shortage at the moment and I can't get any.

    Many thanks,

    Jim

  • Hi

     

    The link to the file is dead. Can someone please upload it to a different place?

     

    Thank you

    Ronen

  • Hello

    i see the post and i want to do some questions. we are now developing an application with the dm6446 for video streaming. We are not linux experts so we want to know if there is someone that use the Aptina sensor with the lsp 2.10 to acquire images from sensors, interpole with ycbcr, use the encode/decode demo. We are using thye demoboard of the dm6446 and a MT9T001 sensor. For use this sensor we pull the tvp5146 in reset mode becouse the chip have the same i2c address of the mt9t001 sensor. We translate the signals of the sensor to 1,8V. We use 8 bit and the Pixclock, Vertical and Horizzontal sync signals of the sensor. We want to know if there is anyone that have developed a driver to use with the dm6446 for sensors like this or if there is a link where to read some information about this.

     

    thanks for the help