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.

TDA4VM: UB960 CSI and multi YUV cameras issue

Part Number: TDA4VM


Our camera stream is  OVX3C--->Gw5200(ISP)---->UB935(SER)------>UB960----->TDA4 CSI 

During Debuging ,I have some problems :

1. When I set  one camera work , the camera is working  successful,and the dispaly has image.But I try  two cameras with UB960 , the dispaly is nothing,and the  vx_app_multi_cam  is hanged .

=========================
Demo : Camera Demo
=========================

s: Save CSIx, VISS and LDC outputs

p: Print performance statistics

x: Exit

Enter Choice: x

2. In the camera config with one ,I set the Ub960 CSI  speed 1600 {0x1F,0x00,}

and the TDA4VM CSI 1600{captureObj->params.instCfg[id].laneBandSpeed         = TIVX_CAPTURE_LANE_BAND_SPEED_1500_TO_1750_MBPS},

they will be not working ,and the  vx_app_multi_cam  is also hanged .

Here is my config for ub960:

One camera config:

{0x4C,0x010x10},   //for port 0

{0x58,0x5D0x10},

    {0x5C,0xB00x10},
    {0x5D,0x060x10},
    {0x65,0xB20x10},
    {0x5E,0xDA0x10},
    {0x66,0xDA0x10},
    {0x5F,0xD80x10},
    {0x67,0xD80x10},
    {0x6D,0x7C0x10},

    {0x6E,0xA80x10},  //BC_GPIO0=0, GC_GPIO1=Fsync
    {0x70,0x1E0x10},  //vc0,YUV422
    {0x72,0xE40x10},  //vc0
    {0x7C,0xC10x10},

    {0x32,0x01,0x10},
    {0x33,0x03,0x10}, 
    //{0x21,0x3C,0x10}, 
    {0x20,0xC0,0x10}, 
    {0x1F,0x00,0x10}, 
    {0x6E,0xA0,0x10},
    {0x19,0x0C,0x10},//FS_HIGH_TIME_1
    {0x1A,0x81,0x10},//FS_HIGH_TIME_0
    {0x1B,0x60,0x10},//FS_LOW_TIME_1
    {0x1C,0x00,0x10},//FS_LOW_TIME_0    30hz   
    
    {0x18,0x01,0x10},//FrameSync Enable
    {0xFFFF0x000x0} /*End of script */

Two cameras config:

 {0x4C,0x010x10},   //for port 0
    {0x58,0x5D0x10},
    {0x5C,0xB00x10},
    {0x5D,0x060x10},
    {0x65,0xB20x10},
    {0x5E,0xDA0x10},
    {0x66,0xDA0x10},
    {0x5F,0xD80x10},
    {0x67,0xD80x10},
    {0x6D,0x7C0x10},

    {0x4C,0x120x10},   //for port 1
    {0x58,0x5D0x10},
    {0x5C,0xB40x10},
    {0x5E,0xDA0x10},
    {0x66,0xDA0x10},
    {0x5F,0xD80x10},
    {0x67,0xD80x10},
    {0x6D,0x7C0x10},
    {0x6E,0xA80x10},
    {0x70,0x1E0x10},
    {0x72,0xE40x10},
    {0x7C,0xC10x10},

    {0x6E,0xA80x10},  //BC_GPIO0=0, GC_GPIO1=Fsync
    {0x70,0x1E0x10},  //vc0,YUV422
    {0x72,0xE40x10},  //vc0
    {0x7C,0xC10x10},

    {0x32,0x01,0x10},
    {0x33,0x03,0x10}, // #CSI OUT ENABLE
    {0x21,0x2C,0x10}, // Synchronous forwarding with line concatenation
    {0x20,0xC0,0x10}, // #CSI FORWARDING PORT0,1,2,3,4
    {0x1F,0x02,0x10}, // #CSI rate 800

    //frame sync settings, For 25-Mbps backchannel operation, 
    //the frame period is 1200 ns (30 bits x 40 ns/bit).
    //30fps, 33333333/1200=27777=0x6C81
    {0x6E,0xA0,0x10},
    {0x19,0x0C,0x10},//FS_HIGH_TIME_1
    {0x1A,0x81,0x10},//FS_HIGH_TIME_0
    {0x1B,0x60,0x10},//FS_LOW_TIME_1
    {0x1C,0x00,0x10},//FS_LOW_TIME_0    30hz   

    
    {0x18,0x01,0x10},//FrameSync Enable
    {0xFFFF0x000x0} /*End of script */