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: How to debug CSI_RX port in TDA4VM?

Part Number: TDA4VM

Hi experts,

i am tring to driving the maxim 96722(deserilizer) which sends MIPI CSI2 signal to TDA4VM. Is there any way to get the debug information from CSI_RX port like FS frame,FE frame,DT, line counts?

Thanks,

hutian

  • Hi Hutian,

    These markes are typically parsed and then dropped in the module, They dont get passed beyond certain modules, so no CSI RX does not provide these marker information. 

    I have few questions,

    1, are you setting lane position and polarity correctly?

    2, are you setting up lane speed correctly?

    3, is the data type and virtual channel setup correctly?

    Could you please check above?

    Regards,

    Brijesh 

  • Hi Brijesh,

    1, are you setting lane position and polarity correctly?

    yes, i have check the schematic and use oscilloscope to check the signal.

    2, are you setting up lane speed correctly?

    I think so, just setting the speed by the following code:  "captureObj->params.instCfg[id].laneBandSpeed = TIVX_CAPTURE_LANE_BAND_SPEED_880_TO_1040_MBPS;" 

    3, is the data type and virtual channel setup correctly?

    I think so, i have set the VC and DT in the deseriser.

    I have noticed that there exists some register in deseriser to seting the HS-perpare, HS-Zero ,Tlps, HS-sync etc, are those paramters matter for the DPHY in TDA4VM to recevie the CSI signal?

    Thanks,

    Hutian

  • Hi Hutian,

    These parameter do mater, but i am not sure how to set them. Isn't default values good?

    Regards,

    Brijesh

  • Hi Brijesh,

    I use the the default setting,but TDA4VM's status register of CSI_RX stream 0 alway's runing at the " PROT_WAIT_CTRL". The following picture shows the data of the register.

    Could you please check with your colleague about the parameters if it is convenient for you?

    Many thanks,

    Hutian

  • Hi Hutian,

    Could you please continuously refresh memory window and see if value at VBUS2APB_DPHY_STATUS status register is changing?

    If it is changing, atleast, PHY is able to detect status on individual lanes. Then please check the virtual channel id and data type. It should match with the incoming data.

    Regards,

    Brijesh

  • Hi Brijesh,

    As you can see the below picture, the VBUS2APB_DPHY_STATUS status register is changing between two status: 0x00333306 and 0x00222206.

    1. If the DPHY is able to detect status on individual lanes, which means the parameters (HS_prepare, HS_Zero ...) setting correctly and i don't need to change it?

    2. How to check the virtual channel id and data type in TDA4 ,or only available in deserilzer side?

    Thanks,

    Hutian