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 + ccd sensor mt9031

Other Parts Discussed in Thread: TVP5146, PCA9543A

 

I connect mt9031 on board evm6437.

In PSP,  loopback example, when replace tvp5146 with mt9001 settings i recieve picture to screen.

But with mixed colors and winking luma. So conenction with sensor works but some conversions don't.

 

I suppose i need to use previewer.

But in example 'previewer on the fly' where they use mt9001 ,I have some ccdc exchange problem.

So, can somebody explain how to adjust mt9031 to work, or how to use/set previewer?

How can I check video path?

  • The previewer is how you could do a RGB to YCbCr conversion if that is what you need. To start out though, have you tried the example in dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\system\dm6437\bios\dm6437_evm\src\video\sample\rawcapture? This is probably the best place to start if you are planning on working with a camera sensor.

  •  

    Bernie Thompson said:

    The previewer is how you could do a RGB to YCbCr conversion if that is what you need. To start out though, have you tried the example in dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\system\dm6437\bios\dm6437_evm\src\video\sample\rawcapture? This is probably the best place to start if you are planning on working with a camera sensor.

     

    I need conversion from bayer pattern which comes from sensor, to RGB or YCbCr .

    Sensor is concted over DC1 i D2 slots.

    There are few examples with mt9001 but it's not working with mt9031.

    I suppose i need to set some sensor parameters. But there's no any explanation how to work with PSP modules.

     

  • The raw capture example does not appear to use the previewer, I believe it was tested with a sensor EVM, though I have never used it in that way myself.

    The best documentation on the PSP VPFE driver seems to be C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\drivers\vpfe\doc\BIOS_VPFE_Driver_UserGuide.pdf, if you do end up using the previewer driver there is some documentation in C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\drivers\previewer\docs that may be of help.

  • Bernie Thompson said:

    The raw capture example does not appear to use the previewer, I believe it was tested with a sensor EVM, though I have never used it in that way myself.

    The best documentation on the PSP VPFE driver seems to be C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\drivers\vpfe\doc\BIOS_VPFE_Driver_UserGuide.pdf, if you do end up using the previewer driver there is some documentation in C:\dvsdk_1_01_00_15\psp_1_00_02_00\pspdrivers\drivers\previewer\docs that may be of help.

    I still can't use previewer. When I use it,  queue command pass, but dequeue command send error.

    Every initialization before executed successfully.

    Is there anyone who use previewer?

  • FYI, Priviewer hardware coverts bayer pattern to YCbCr, no need (or hardware capability) to convert to RGB as a middle step.

     

  • Hi Vladimir,

    I am probably experiencing the your same problem. My goal is acquire image from a cmos color sensor, and perform debayer (color filter interpolation) with preview engine. I am using DM6437 and I am working with sample in the dir ......\video\sample\previewer_on_the_fly". I have linked a cmos color micron sensor, but dequeue command generate an error. The problem is because the Interrupt service routine named DDC_VPFEIsr() in file ddc_vpfe.c is not called. This is because in function DDC_VPFEConfigCcdcParams(..) the previewer is configured, and the interrupt number is set to CSL_INTC_EVENTID_PRVUINT, value 29, that is the interrupt of preview engine. If I not configure previewer the interrupt number is CSL_INTC_EVENTID_VDINT0 (value 24).  If function DDC_VPFEIsr(), linked to int 24,  is not called there are not video buffer processed in free queue, and when you call FVID_EXCHANGE it will fail, as it is mentioned at page 44 of BIOS_VPFE_Driver_UserGuide.  I think that I must change number interrupt setting. It seems a bug, but I don't sure Do you have fixed the problem? Please, can anyone help me?

    Regards

    Fabrizio

  • Do you enable  video path...in psp_vpfe.h? After that you must build vpfe driver. And make sure to use vpfe...lib you builded.

    That was my problem.

  • Hi Vladimir,

    thank you for your post.

    I have enabled VIDEO_PATH_ENABLE in file psp_vpfe.h and rebuilded vpfe driver and example  previewer_on_the_fly, so I am sure to use new vpfe driver rebuilded, but FVID_Exchange is still failing in dequeue command, probably because there aren't  buffer memory filled with video data. You have worked with previewer_on_the_fly example, is it right? I have studied in deep the sample, and I have doubt about the mechanism that fill video buffer, because when I configure preview driver VPFEIsr is not called. Do you have any suggest?

    Thanks and regards

    Fabrizio

  •  

    I dont remeber did I successfully run that example. I think not. But I have example I work with, which I can send it to you?

  • Thank you Vladimir,

    if you can send me your example you will do an useful thing!

    Many thanks

    Fabrizio

  •  

    I upload it in my files ( http://e2e.ti.com/members/1213195/files/default.aspx )

    Example works with my sensor (preview on the fly). Just set parameters for you sensor.

  • Hi,

    I will try to find correct parameters for my sensor and I will tell you the result of my tests.

    Thank you for your help.

    Fabrizio

  • well..........I face the same problem when connecting mt9p001.....

    I've seen your program already , I wonder what's the I2C_PCA9543A_SLAVE_ADDR in "MT9001_extImageSensor.h" ?

    Preview-on-the fly fails at FVID_exchange ( dequeue ),for no interrupt occurs....

    Have you solve this problem ?