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: Add new sensor code in TI RTOS and verify it on TDA4

Part Number: TDA4VM

I have a new TOF sensor named 75027 from Melexis, how can I add new sensor driver and application code to verify the sensor in TI RTOS SDK? is there any help document?

Currently, I have an evalution board J21EXCP01EVM, ADAS sensor fusion rev3(with deserializer ds90ub960) and melexis75027 with serializer ds90ub953.

  • I have followed the instruction the driver is copied and modified from IMX390. But when I run the run_app_single_cam.sh, there are some errors, see it as below. Could you help me to solve it?

    Querying MELEXIS75027-UB953_D3
    287.089899 s: ISS: Querying sensor [MELEXIS75027-UB953_D3] ... !!!
    287.090386 s: ISS: Querying sensor [MELEXIS75027-UB953_D3] ... Done !!!
    287.090396 s: ISS: Initializing sensor [MELEXIS75027-UB953_D3], doing IM_SENSOR_CMD_PWRON ... !!!
    287.090817 s: ISS: Initializing sensor [MELEXIS75027-UB953_D3], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0] 287.090657 s: MELEXIS75027_PowerOn : chId = 0x0
    [MCU2_0] 287.797126 s: MELEXIS75027_Probe SUCCESS : Read expected value 0xd8 at chip ID register 0x308
    [MCU2_0] 287.991365 s: Configuring MELEXIS75027 imager 0x40.. Please wait till it finishes
    288.322475 s: ISS: Initializing sensor [MELEXIS75027-UB953_D3] ... Done !!!
    read_test_image_raw : Unable to open file /opt/vision_apps/test_data/img_test.raw
    app_create_viss : sensor_dcc_id = 75027
    288.340986 s: VX_ZONE_ERROR:[ownContextSendCmd:814] Command ack message returned failure cmd_status: -1
    288.341005 s: VX_ZONE_ERROR:[ownContextSendCmd:850] tivxEventWait() failed.
    288.341012 s: VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node VISS_Processing
    288.341018 s: VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
    288.341024 s: VX_ZONE_ERROR:[ownNodeKernelInit:540] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
    288.341183 s: VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 1, kernel com.ti.hwa.vpac_viss ... failed !!!
    288.341194 s: VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
    288.341200 s: VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    Scaler is disabled
    288.343856 s: ISS: Starting sensor [MELEXIS75027-UB953_D3] ... !!!
    [MCU2_0] 288.340653 s: Invalid Camera Id 75027
    [MCU2_0] 288.340723 s: VX_ZONE_ERROR:[tivxVpacVissSetParamsFromDcc:206] dcc_update Failed !!!
    [MCU2_0] 288.340781 s: VX_ZONE_ERROR:[tivxVpacVissCreate:571] Failed to Parse and Set DCC Params
    [MCU2_0] 288.341385 s: ==========================================================
    [MCU2_0] 288.341476 s: Capture Status: Instance|0
    [MCU2_0] 288.341514 s: ==========================================================
    [MCU2_0] 288.341563 s: overflowCount: 0
    [MCU2_0] 288.341599 s: spuriousUdmaIntrCount: 0
    [MCU2_0] 288.341636 s: frontFIFOOvflCount: 0
    [MCU2_0] 288.341670 s: crcCount: 0
    [MCU2_0] 288.341700 s: eccCount: 0
    [MCU2_0] 288.341732 s: correctedEccCount: 0
    [MCU2_0] 288.341767 s: dataIdErrorCount: 0
    [MCU2_0] 288.341801 s: invalidAccessCount: 0
    [MCU2_0] 288.341835 s: invalidSpCount: 0
    [MCU2_0] 288.341873 s: strmFIFOOvflCount[0]: 0
    [MCU2_0] 288.341902 s: Channel Num | Frame Queue Count | Frame De-queue Count | Frame Drop Count | Error Frame Count |
    [MCU2_0] 288.341977 s: 0 | 0 | 0 | 0 | 0 |
    [MCU2_0] 288.342716 s: ==========================================================
    [MCU2_0] 288.342808 s: Capture Status: Instance|1
    [MCU2_0] 288.342846 s: ==========================================================
    [MCU2_0] 288.342893 s: overflowCount: 0
    [MCU2_0] 288.342929 s: spuriousUdmaIntrCount: 0
    [MCU2_0] 288.342966 s: frontFIFOOvflCount: 0
    [MCU2_0] 288.342999 s: crcCount: 0
    [MCU2_0] 288.343028 s: eccCount: 0
    [MCU2_0] 288.343059 s: correctedEccCount: 0
    [MCU2_0] 288.343092 s: dataIdErrorCount: 0
    [MCU2_0] 288.343127 s: invalidAccessCount: 0
    [MCU2_0] 288.343162 s: invalidSpCount: 0
    [MCU2_0] 288.343263 s: strmFIFOOvflCount[0]: 0
    [MCU2_0] 288.343302 s: Channel Num | Frame Queue Count | Frame De-queue Count | Frame Drop Count | Error Frame Count |
    288.898485 s: ISS: Starting sensor [MELEXIS75027-UB953_D3] ... !!!
    get_dcc_dir_size : Could not open directory or directory is empty /opt/vision_apps/dcc/MELEXIS75027-UB953_D3/wdr

    ==========================
    Demo : Single Camera w/ 2A
    ==========================

    p: Print performance statistics

    s: Save Sensor RAW, VISS Output and H3A output images to File System

    e: Export performance statistics

    u: Update DCC from File System


    x: Exit

    Enter Choice:
    Unsupported command

    ==========================
    Demo : Single Camera w/ 2A
    ==========================

    p: Print performance statistics

    s: Save Sensor RAW, VISS Output and H3A output images to File System

    e: Export performance statistics

    u: Update DCC from File System


    x: Exit

     

  • Hi,

    The issue is coming due to incorrect DCC file. Please regenerate DCC file, or if you are reusing dcc file from imx390, please use 390 as dcc id in sensor structures.

    [MCU2_0] 288.340653 s: Invalid Camera Id 75027

    Regards,

    Brijesh