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: After the successful initialization of csirx, it continuously outputs incomplete imagesVH,TDA4-VH

Part Number: TDA4VH-Q1

Tool/software:

Hello,linjun,brijesh

We have a project here where the output images of the probabilistic csirx initialization are all in the not_complte state. It has been confirmed that most of the output images have a few black lines, while the normal situation does not. You can see the comparison of different images in the attachment.

The image resolution is 3840 * 1909, and raw12 is unpacked into raw16 data, with the first row and the last 20 rows being ebd data

We have made several attempts based on this issue:

1.des re-disable and enable output, while csirx still outputs not_complte images

2. When the sensor is re-disabled or enabled for output, csirx still outputs the not_complte image

3. csirx deinit, init, csirx returns to normal output

For the main sdk calls of the corresponding csirx, please refer to the attached code screenshot.

In conclusion, it is highly likely that there is some kind of bug in csirx. Please assist in analyzing it, brijesh. Thank you.

releate log :

20250710_110123][26580.713][I][40181][MOD:BSPLOG][SMOD:T-MCU2_0]CSIRX0 udma debug: drop_frame_cnt = 1, td_frame_cnt = 0, not_complete_cnt = 50581, timeout_cnt = 50582, spuriousIntr_cnt = 0, while_err_cnt = 0, dequeue_err_cnt = 50582, umda_entry_cnt = 50582, per_while_cnt = 35628, completed_cnt = 0
[20250710_110124][26581.954][I][40265][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 0
[20250710_110124][26582.054][I][40266][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 0
[20250710_110124][26582.054][I][40267][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 1
[20250710_110124][26582.154][I][40268][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 0
[20250710_110124][26582.154][I][40269][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 1
[20250710_110124][26582.254][I][40286][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 0
[20250710_110124][26582.254][I][40287][MOD:BSPLOG][SMOD:T-MCU2_0] bsp enqueue not_complete back 2-0,csi:0 , cnn_id: 1
deinit:
[20250710_110124][26582.337][I][40288][MOD:BSPLOG][SMOD:T-MCU2_0]app_remote_service_handler: VIDEO_CAPTURE_CMD_DEINIT
[20250710_110124][26582.337][I][40289][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureStop ...
[20250710_110124][26582.339][I][40290][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2474639488, cam_id=0
[20250710_110124][26582.339][I][40291][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2390753408, cam_id=1
[20250710_110124][26582.339][I][40292][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2424307840, cam_id=0
[20250710_110124][26582.339][I][40293][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2659188864, cam_id=0
[20250710_110124][26582.339][I][40294][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3565158400, cam_id=0
[20250710_110124][26582.339][I][40295][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3579819520, cam_id=0
[20250710_110124][26582.339][I][40296][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3594480640, cam_id=0
[20250710_110124][26582.339][I][40297][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3609141760, cam_id=0
[20250710_110124][26582.339][I][40298][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2457862272, cam_id=0
[20250710_110124][26582.339][I][40299][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3623802880, cam_id=1
[20250710_110124][26582.339][I][40300][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3638464000, cam_id=1
[20250710_110124][26582.339][I][40301][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3653125120, cam_id=1
[20250710_110124][26582.339][I][40302][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 3667786240, cam_id=1
[20250710_110124][26582.339][I][40303][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2407530624, cam_id=1
[20250710_110124][26582.339][I][40304][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2357198976, cam_id=1
[20250710_110124][26582.339][I][40305][MOD:BSPLOG][SMOD:T-MCU2_0]addr64 = 2441085056, cam_id=1
[20250710_110124][26582.339][I][40306][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureStop Done !!!
[20250710_110124][26582.339][I][40307][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureDelete ...
[20250710_110124][26582.340][I][40308][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureDelete Done !!!
[20250710_110124][26582.340][I][40309][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureDeinit ...
[20250710_110124][26582.439][I][40311][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureDeinit Done !!!
init:
[20250710_110127][26585.270][I][40418][MOD:BSPLOG][SMOD:T-MCU2_0]app_remote_service_handler: VIDEO_CAPTURE_CMD_INIT
[20250710_110127][26585.270][I][40419][MOD:BSPLOG][SMOD:T-MCU2_0]djiAppCsi2RxDeInit: csi 0 deinit ... !!!
[20250710_110127][26585.270][I][40420][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState module=72 state=0
[20250710_110127][26585.270][I][40421][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState success
[20250710_110127][26585.270][I][40422][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState module=212 state=0
[20250710_110127][26585.270][I][40423][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState success
[20250710_110127][26585.270][I][40424][MOD:BSPLOG][SMOD:T-MCU2_0]djiAppCsi2RxDeInit: Deinit ... Done !!!
[20250710_110128][26585.724][I][40425][MOD:BSPLOG][SMOD:T-MCU2_0]CameraD_TaskFxn : csi_id=0 cameraD_task_flag[csi_id] = 0
20250710_110128][26586.269][I][40460][MOD:BSPLOG][SMOD:T-MCU2_0]djiAppCsi2RxInit: csi 0 Init ... !!!
[20250710_110128][26586.269][I][40461][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState module=72 state=2
[20250710_110128][26586.270][I][40462][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState success
[20250710_110128][26586.270][I][40463][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState module=212 state=2
[20250710_110128][26586.270][I][40464][MOD:BSPLOG][SMOD:T-MCU2_0]SCICLIENT: Sciclient_pmSetModuleState success
[20250710_110128][26586.270][I][40465][MOD:BSPLOG][SMOD:T-MCU2_0]djiAppCsi2RxInit: Init ... Done !!!
[20250710_110128][26586.270][I][40466][MOD:BSPLOG][SMOD:T-MCU2_0]video_capture_init : csi_id=0x0...
[20250710_110128][26586.270][I][40467][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureInit csi0...
[20250710_110128][26586.270][I][40468][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureInit: Init Done !!!
[20250710_110128][26586.270][I][40469][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate Start csi_id=0...
[20250710_110128][26586.271][I][40470][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate : Fvid2_create success !!!
[20250710_110128][26586.271][I][40471][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate : Fvid2_control IOCTL_CSIRX_SET_DPHY_CONFIG success !!!
[20250710_110128][26586.272][I][40472][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate : Fvid2_control IOCTL_CSIRX_REGISTER_EVENT success !!!
[20250710_110128][26586.272][I][40473][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate : start to create some task !!!
[20250710_110128][26586.272][I][40474][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate : start video_capture_enqueue, buffer_array_size=16
[20250710_110128][26586.272][I][40491][MOD:BSPLOG][SMOD:T-MCU2_0]csi0 start...
[20250710_110128][26586.273][I][40492][MOD:BSPLOG][SMOD:T-MCU2_0]csi0 start success
[20250710_110128][26586.273][I][40493][MOD:BSPLOG][SMOD:T-MCU2_0]BspCaptureCreate Done for csi0!!!
The not_complete image dumped
The normal image dumped after reinitializing csirx
  • not_complete image:

    normal image:

  • Could you please use the below CCS script to dump the CSIRX registers here for the further check? Thanks.

    /cfs-file/__key/communityserver-discussions-components-files/791/CSI_5F00_RX_5F00_livox_5F00_vh.tar.xz

  • hi,linjun,please check this ecu csirx0 status, when it is normal.

    root@QNX(TDA4-SLOT_B):/mnt/dji/partitions/user/jovan#./dump_reg.sh 0x4504000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_device_config:Reg_0x04504000 : 0x8421564C
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_soft_reset:Reg_0x04504004 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_static_cfg:Reg_0x04504008 : 0x43210410
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_bypass_cfg:Reg_0x04504010 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_monitor_irqs:Reg_0x04504018 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_monitor_irqs_mask_cfg:Reg_0x0450401C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_info_irqs:Reg_0x04504020 : 0x00000002
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_info_irqs_mask_cfg:Reg_0x04504024 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_irqs:Reg_0x04504028 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_irqs_mask_cfg:Reg_0x0450402C : 0x000F03F1
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_lane_control:Reg_0x04504040 : 0x0001F01F
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_status:Reg_0x04504048 : 0x00233306
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_err_status_irq:Reg_0x0450404C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_err_irq_mask_cfg:Reg_0x04504050 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_integration_debug:Reg_0x04504060 : 0x10000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_debug:Reg_0x04504074 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_test_generic:Reg_0x04504080 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_status:Reg_0x04504104 : 0x80000112
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_data_cfg:Reg_0x04504108 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_cfg:Reg_0x0450410C : 0x00000110
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_monitor_ctrl:Reg_0x04504110 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_monitor_frame:Reg_0x04504114 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_monitor_lb:Reg_0x04504118 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_timer:Reg_0x0450411C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_fcc_cfg:Reg_0x04504120 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_fcc_ctrl:Reg_0x04504124 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_fifo_fill_lvl:Reg_0x04504128 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_status:Reg_0x04504204 : 0x00000100
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_data_cfg:Reg_0x04504208 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_cfg:Reg_0x0450420C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_monitor_ctrl:Reg_0x04504210 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_monitor_frame:Reg_0x04504214 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_monitor_lb:Reg_0x04504218 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_timer:Reg_0x0450421C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_fcc_cfg:Reg_0x04504220 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_fcc_ctrl:Reg_0x04504224 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_fifo_fill_lvl:Reg_0x04504228 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_status:Reg_0x04504304 : 0x00000100
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_data_cfg:Reg_0x04504308 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_cfg:Reg_0x0450430C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_monitor_ctrl:Reg_0x04504310 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_monitor_frame:Reg_0x04504314 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_monitor_lb:Reg_0x04504318 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_timer:Reg_0x0450431C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_fcc_cfg:Reg_0x04504320 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_fcc_ctrl:Reg_0x04504324 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_fifo_fill_lvl:Reg_0x04504328 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_status:Reg_0x04504404 : 0x00000100
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_data_cfg:Reg_0x04504408 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_cfg:Reg_0x0450440C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_monitor_ctrl:Reg_0x04504410 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_monitor_frame:Reg_0x04504414 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_monitor_lb:Reg_0x04504418 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_timer:Reg_0x0450441C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_fcc_cfg:Reg_0x04504420 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_fcc_ctrl:Reg_0x04504424 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_fifo_fill_lvl:Reg_0x04504428 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_sram_corr_fault_status:Reg_0x04504920 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_sram_uncorr_fault_status:Reg_0x04504924 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_trans_to_ctrl:Reg_0x04504930 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_trans_to_fault_mask:Reg_0x04504934 : 0x00000001
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_trans_to_fault_status:Reg_0x04504938 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_protocol_fault_mask:Reg_0x04504940 : 0x00003FFF
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_protocol_fault_status:Reg_0x04504944 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_id_prod_ver:Reg_0x04504FFC : 0x50220200

  • The log is ok as a reference data. We can dump the error log when issue happens to compare. Thanks. 

  • when it is error,reg dump:

    root@QNX(TDA4-SLOT_B):/mnt/dji/partitions/user#./jovan_dump.sh 0x4504000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_device_config:Reg_0x04504000 : 0x8421564C
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_soft_reset:Reg_0x04504004 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_static_cfg:Reg_0x04504008 : 0x43210410
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_bypass_cfg:Reg_0x04504010 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_monitor_irqs:Reg_0x04504018 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_monitor_irqs_mask_cfg:Reg_0x0450401C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_info_irqs:Reg_0x04504020 : 0x00000002
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_info_irqs_mask_cfg:Reg_0x04504024 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_irqs:Reg_0x04504028 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_irqs_mask_cfg:Reg_0x0450402C : 0x000F03F1
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_lane_control:Reg_0x04504040 : 0x0001F01F
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_status:Reg_0x04504048 : 0x00233306
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_err_status_irq:Reg_0x0450404C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_dphy_err_irq_mask_cfg:Reg_0x04504050 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_integration_debug:Reg_0x04504060 : 0x10000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_error_debug:Reg_0x04504074 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_test_generic:Reg_0x04504080 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_status:Reg_0x04504104 : 0x80000113
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_data_cfg:Reg_0x04504108 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_cfg:Reg_0x0450410C : 0x00000110
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_monitor_ctrl:Reg_0x04504110 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_monitor_frame:Reg_0x04504114 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_monitor_lb:Reg_0x04504118 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_timer:Reg_0x0450411C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_fcc_cfg:Reg_0x04504120 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_fcc_ctrl:Reg_0x04504124 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_fifo_fill_lvl:Reg_0x04504128 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_status:Reg_0x04504204 : 0x00000100
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_data_cfg:Reg_0x04504208 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_cfg:Reg_0x0450420C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_monitor_ctrl:Reg_0x04504210 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_monitor_frame:Reg_0x04504214 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_monitor_lb:Reg_0x04504218 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_timer:Reg_0x0450421C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_fcc_cfg:Reg_0x04504220 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_fcc_ctrl:Reg_0x04504224 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream1_fifo_fill_lvl:Reg_0x04504228 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_status:Reg_0x04504304 : 0x00000100
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_data_cfg:Reg_0x04504308 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_cfg:Reg_0x0450430C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_monitor_ctrl:Reg_0x04504310 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_monitor_frame:Reg_0x04504314 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_monitor_lb:Reg_0x04504318 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_timer:Reg_0x0450431C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_fcc_cfg:Reg_0x04504320 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_fcc_ctrl:Reg_0x04504324 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream2_fifo_fill_lvl:Reg_0x04504328 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_status:Reg_0x04504404 : 0x00000100
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_data_cfg:Reg_0x04504408 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_cfg:Reg_0x0450440C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_monitor_ctrl:Reg_0x04504410 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_monitor_frame:Reg_0x04504414 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_monitor_lb:Reg_0x04504418 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_timer:Reg_0x0450441C : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_fcc_cfg:Reg_0x04504420 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_fcc_ctrl:Reg_0x04504424 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream3_fifo_fill_lvl:Reg_0x04504428 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_sram_corr_fault_status:Reg_0x04504920 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_sram_uncorr_fault_status:Reg_0x04504924 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_trans_to_ctrl:Reg_0x04504930 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_trans_to_fault_mask:Reg_0x04504934 : 0x00000001
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_trans_to_fault_status:Reg_0x04504938 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_protocol_fault_mask:Reg_0x04504940 : 0x00003FFF
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_asf_protocol_fault_status:Reg_0x04504944 : 0x00000000
    VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_id_prod_ver:Reg_0x04504FFC : 0x50220200

  • Abnormal state VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_status:Reg_0x04504104 : 0x80000113 

    Normal state  VBUS2APB_WRAP__VBUSP_APB__CSI2RX_REGS_stream0_status:Reg_0x04504104 : 0x80000112

    But this register can't provide valued info, 

    Input to Stream FSM states:
    0x0: PROT_IDLE
    0x1: PROT_WAIT_CTRL
    0x2: PROT_CTRL
    0x3: PROT_DATA

  • hi,

    Since it is reporting frame error ie incomplete capture frame, are there any issue from the input side? Is the transmitter sending complete frame? Any change in the frame size ? 

    What all other components are running in parallel to CSIRX? 

    Also which SDK release are you using? 

    Regards,

    Brijesh

  • hi,brijesh,

    are there any issue from the input side?

    There were no detected anomalies in the cam sensor input, as well as in the serializer and deserializer.

    Any change in the frame size ? 

    no,the images output by the sensor of cam are always stable and the resolution will not change

    Is the transmitter sending complete frame?

    From the ebd data of the first part of the abnormal image we dumped, it can be parsed that the image resolution is as expected.  However, due to the anomaly in the csirx part, a few lines to a dozen lines that are not fixed at the back have been output as black images.

    What all other components are running in parallel to CSIRX? 

    It appeared in the companion testing software, with related components running together such as codec\ipc\eth\acc\.  However, this is not the key point because when the problem occurred, all images were in the not_complete state.  I also tried to kill most of the processes that were not related to cam, but there was no improvement.  However, when I reset csirx without involving any operations related to cam hardware, the problem can be restored.  Therefore, it can be determined that the issue lies with csirx.

    Also which SDK release are you using? 

    tda4-vh  SDK8.5

    regards,

    Jovan

  • Hi Jovan,

    Any specific virtual channel or input channel that is showing this issue? Can we do one experiment? Can we avoid ch0 in the CSIRX and see if it helps? 

    Regards,

    Brijesh

  • Hi,Brijesh,

    Any specific virtual channel or input channel that is showing this issue? Can we do one experiment? Can we avoid ch0 in the CSIRX and see if it helps? 

    This project only has two GMSL cameras, connected to channel0 and channel1 of CSIRX0. When reproducing this problem, the cameras on both channels will continuously output not_complete frames.

    When the problem occurred, I tried to disconnect the output of channel0 or channel1, but it did not affect the other output to return to normal.

    jovan

  • Hi Jovan,

    Which SDK release are you using? I want to try out one simple change and see if it helps..

    I am assuming that this issue is easy to reproduce.. 

    Regards,

    Brijesh

  • Hi,brijesh

    The SDK we are using is SDK8.5 version. Unfortunately, this issue is not easy to reproduce. It occurs with a probability of about 1/8000 on/off. It will persist after initializing csirx until csirx is reset or the ecu is powered off and on again. Are there any effective modifications? If there is any, please give it to me. Also, we might need you to explain the principle of this modification and the possible causes of the problem. It is estimated that it will take us a week of stress testing to confirm whether it is effective.

    regards,

    jovan

  • Hi jovan,

    In the CsirxDrv_chInit API, in packages\ti\drv\csirx\src\csirx_drvInit.c file, can you please make a small high-lighted change and try it out?

    /* Keeping loops separate for Capture, OTF and Loopback channels as
    this can be helpful in future */
    for (; chNum < CSIRX_NUM_CH_CAPT ; chNum++)
    {
    /* For capture channels only */
    instObj[instCnt].chObj[chNum].instObj = &instObj[instCnt];
    instObj[instCnt].chObj[chNum].status = CSIRX_DRV_CH_STATE_IDLE;
    /* Only capture channel will have 'psilThreadId' other than
    'CSIRX_DRV_DEF_PSIL_THREAD_ID' */
    instObj[instCnt].chObj[chNum].psilThreadId = chNum + 1;
    }

    Regards,

    Brijesh

  • hi,brijesh,

    We can try to see if it works. May I ask what the reason is for "chNum + 1;" here?

    ragards,

    jovan

  • Hi Jovan,

    I would like to avoid using ch0. So can you please try it out? 

    Regards,

    Brijesh

  • hi,brijesh,

     I don't think this will be useful because I have already tried to stop the output of the camera corresponding to ch0 when the problem occurred to see if the issue of chn1 would be restored.  The result shows that it won't fix the problem of chn1.  This should have the same effect as your modification.

    regards,

    jovan

  • Hi Jovan,

    My suggestion is to try out these changes..

    Regards,

    Brijesh