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.

TDA4VH-Q1: How to change the CSI2RX Port On TDA4VH?

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VH

Tool/software:

Hi, TI Experts:
    We are currently adapting a camera module based on TDA4VH, and our surround-view camera is connected to CSI-RX2, but the default configuration is set for CSI-RX0. How can we modify the CSI-RX interface in the PSDK (Platform Software Development Kit) code to change it to CSI-RX2?
    When I modify vxSetNodeTarget from TIVX_TARGET_CAPTURE1 to TIVX_TARGET_CAPTURE9 in app_create_graph_capture, is this change correct?
0
  • Hi Liangliang,

    No, no need to change the target. only change the instance id in the capture parameters and vcMap array.. 

    Regards,

    Brijesh

  • Hi,Brijesh:

         So,  you mean I need to modify the settings of my sensor? for my code, it is in the 'imaging/sensor_drv/src/isx031/iss_sensor_isx031.c'?  

    Based on my previous requirements, how should I modify it? I only need to configure CSIRX2.

  • Hi, Brijesh:

         I  have set the sensorObj->ch_mask to 0xF00, then the csirx2 can receive the imageData, But the capture node can't get the imageData. The log is below: 

           

        As I understand, the capture Node can't be matched with CSIRX2 driver.  Where else needs to be modified to make it match?

  • Hi Liangliang,

    But you are already able to capture data from CSIRX instance 2, Do you mean the graph is not running?  

    It seems you have connected capture output directly to display, is it correct?

    Is your display started? Are you seeing anything on the display? 

    Regards,

    Brijesh

  • Hi,Brijesh:

         I didn't see any display output on the display, and yes, i think the graph is not running correctly. From the log of my graph( i just use the app_multi_cam sample), when i print the 'p', there is no fps. So, how can I check this issue?

  • Hi,

    But somehow capture is running fine. I dont see any frame drops in the capture stats, its properly enqueueing and dequeueing frames.. 

    Is it possible to connect mcu2_0 using JTAG? and see where it is? Is it stuck somewhere? or if display is running? 

    Regards,

    Brijesh

  • Hi, 

          I don't have the JTAG here to connect to MCU2_0. Is there any other way to check? Can I read some registers for confirm the graph running correctly?

      How can I check if display is running?

  • hi,

    There isn't any register to check for graph running status. The above stats is the one telling us that graph fps is 0 and so its not running. Display and capture are as such running, i see that the average time for both of them are in real time. but somehow they are not exchanging buffers. I am just wondering if this is because of the channel mask 0xF00. Are you using multi-camera example? then what are the CSIRX parameters? Are you using channel 0 to 3 with instance id set to 2 ? or are you using multi camera mode with 12 channels? 

    Regards,

    Brijesh

  • Hi Brijesh,

    Queston 1: 

    I see that the average time for both of them are in real time. but somehow they are not exchanging buffers. I am just wondering if this is because of the channel mask 0xF00.
    Answer:
    I use channel mask 0xF00, because camera connected to CSI-RX2. CSI-RX0 and CSI-RX1 are not used.
    Queston 2: 
             Are you using multi-camera example?
    Answer:
    Yes, I use multi-camera example as my code base.
    Queston 2: 
    then what are the CSIRX parameters? Are you using channel 0 to 3 with instance id set to 2 ?
    Answer:
    I use CSI-RX2 that the instId = 2,and Yes,channel 0 to 3 with instance id set to 2 。
    log:

  • Hi Arthur,

    Do you have CCS + JTAG available on this board? if yes, can you please connect to mcu2_0 and put a breakpoint on tivxDisplayProcess API to see if it is getting called? If it is, then can you please go inside and see if tivxGetObjDescElement returns valid object image for the display?

    Regards,

    Brijesh

  • For my graph,   do I need check the configuration of display? if the configuration of display is error, it also influences the graph running? 

    by the way, we don't have the jtag now. 

  • Hi Liangliang,

    But your graph shows that even display node is running, isn't it? DisplayNode performance stats shows that avg performance is 2.7ms.

    Regards,

    Brijesh

  • If not CCS, can we please put some print statements in this API and see if it is printing some valid buffer address and submitting valid buffer address to the display driver?