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.

PROCESSOR-SDK-J721E: Capture Test application error

Part Number: PROCESSOR-SDK-J721E
Other Parts Discussed in Thread: TDA4VM

Tool/software:

Hello TI,

we are trying to interface MAX96712 quad deserializer with TDA4VM on CSI port 0. we are able to configure the deserialzer , serializer and also the imager using the I2C interface. we are able to read the frame counters from the imager and also verified all the debug registers of serializer and deserializer. we could see that there are no errors and also the LINK lock and VIDEO lock status are fine. 

Now we are expecting the frames to be received by the SOC after running the app_single_cam application , but we are facing an issue "[ownDataRefQueueDequeueDoneRef:166] DQ (queue=45) .. NO BUFFER" and as a result of this, there is no frame captured.

can you please guide us in running the capture application for single cam ? 

please find the attached log for your reference.

Sensor selected : DUMMY_SENSOR
[MCU2_0]    119.002985 s: i2cRegisterSetWriteReq(): i2c reg-write success
Querying DUMMY_SENSOR
   119.003991 s: ISS: Querying sensor [DUMMY_SENSOR] ... !!!
   119.004120 s: ISS: Querying sensor [DUMMY_SENSOR] ... Done !!!
   119.004142 s:  VX_ZONE_INFO:[capture_test_init:168] CAM_input enabled : app_querry_sensor call returned 0
   119.004164 s:  VX_ZONE_INFO:[capture_test_init:170] Sensor dccId = 623
   119.004183 s:  VX_ZONE_INFO:[capture_test_init:171] Sensor rawImg width = 3840
   119.004201 s:  VX_ZONE_INFO:[capture_test_init:172] Sensor rawImg height = 2160
   119.004220 s:  VX_ZONE_INFO:[capture_test_init:173] Sensor numOfCamsEnabled = 1
   119.004238 s:  VX_ZONE_INFO:[capture_test_init:174] Sensor ch_mask = 1
   119.004520 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:147] registered kernel com.ti.fileio.write.vx_array on target MPU-0
   119.004554 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:147] registered kernel com.ti.fileio.write.vx_image on target MPU-0
   119.004580 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:147] registered kernel com.ti.fileio.write.tivx_raw_image on target MPU-0
   119.004611 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:147] registered kernel com.ti.fileio.write.vx_tensor on target MPU-0
   119.004638 s:  VX_ZONE_INFO:[ownAddTargetKernelInternal:147] registered kernel com.ti.fileio.write.vx_user_data_object on target MPU-0
   119.139139 s:  VX_ZONE_INFO:[capture_test_run:199] initing the Sensor
   119.139156 s: ISS: Initializing sensor [DUMMY_SENSOR], doing IM_SENSOR_CMD_PWRON ... !!!
   119.139263 s: ISS: Initializing sensor [DUMMY_SENSOR], doing IM_SENSOR_CMD_CONFIG ... !!!
   119.139363 s: ISS: Initializing sensor [DUMMY_SENSOR] ... Done !!!
   119.139387 s:  VX_ZONE_INFO:[capture_test_run:204] init sensor was successfull, now init capture
   119.139410 s:  VX_ZONE_INFO:[capture_test_run:208] enabling capture output write and error detection obj->sensorObj.ch_mask 1
configure_capture_params(): sensorObj->out_format=0
configure_capture_params(): sensorObj->num_cameras_enabled=1
captureObj->params.numDataLanes = 4
configure_capture_params(): sensorObj->laneBandSpeed=22
tivxMemBufferAlloc():mem_size = 216, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/0

MEM : SHM_alloc_aligned(216, 1024) : PASSED
MEM: Allocated memory - virt base address = 538bc68000, phy/0xb8000000 size = 216
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8000000 len/4096 for virtPtr/0x538bc68000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8000000 len/4096 for virtPtr/0x538bc68000
tivxMemBufferAlloc():mem_size = 512, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/1

MEM : SHM_alloc_aligned(512, 1024) : PASSED
MEM: Allocated memory - virt base address = 538bc69000, phy/0xb8001000 size = 512
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8001000 len/4096 for virtPtr/0x538bc69000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8001000 len/4096 for virtPtr/0x538bc69000
tivxMemBufferAlloc():mem_size = 256, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/2

MEM : SHM_alloc_aligned(256, 1024) : PASSED
MEM: Allocated memory - virt base address = 538bc6a000, phy/0xb8002000 size = 256
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8002000 len/4096 for virtPtr/0x538bc6a000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8002000 len/4096 for virtPtr/0x538bc6a000
   119.274897 s:  VX_ZONE_INFO:[app_create_graph:261] Inside app_create_graph !
   119.275159 s:  VX_ZONE_INFO:[app_create_graph:285] Capture graph done .... !
   119.275188 s:  VX_ZONE_INFO:[app_create_graph:295] img_width 3840, img_height 2160 !
   119.275218 s:  VX_ZONE_INFO:[app_create_graph:312] obj->captureObj.node added obj->captureObj.raw_image_arr to queue list graph_parameter_num 0
   119.275268 s:  VX_ZONE_INFO:[app_create_graph:326] vxSetGraphScheduleConfig done status 0
   119.275289 s:  VX_ZONE_INFO:[capture_test_run:216] app_create_graph done
   119.275401 s:  VX_ZONE_INFO:[ownNodeKernelValidate:255] Validating kernel com.ti.capture
   119.275431 s:  VX_ZONE_INFO:[ownNodeKernelValidate:255] Validating kernel com.ti.fileio.write.tivx_raw_image
tivxMemBufferAlloc():mem_size = 16704000, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/3

MEM : SHM_alloc_aligned(16704000, 1024) : PASSED
MEM: Allocated memory - virt base address = 538bc6b000, phy/0xb8003000 size = 16704000
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8003000 len/4096 for virtPtr/0x538bc6b000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8003000 len/4096 for virtPtr/0x538bc6b000
tivxMemBufferAlloc():mem_size = 16704000, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/4

MEM : SHM_alloc_aligned(16704000, 1024) : PASSED
MEM: Allocated memory - virt base address = 538cc5a000, phy/0xb8ff2000 size = 16704000
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8ff2000 len/4096 for virtPtr/0x538cc5a000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb8ff2000 len/4096 for virtPtr/0x538cc5a000
tivxMemBufferAlloc():mem_size = 16704000, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/5

MEM : SHM_alloc_aligned(16704000, 1024) : PASSED
MEM: Allocated memory - virt base address = 538dc49000, phy/0xb9fe1000 size = 16704000
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb9fe1000 len/4096 for virtPtr/0x538dc49000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xb9fe1000 len/4096 for virtPtr/0x538dc49000
tivxMemBufferAlloc():mem_size = 16704000, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/6

MEM : SHM_alloc_aligned(16704000, 1024) : PASSED
MEM: Allocated memory - virt base address = 538ec38000, phy/0xbafd0000 size = 16704000
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xbafd0000 len/4096 for virtPtr/0x538ec38000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xbafd0000 len/4096 for virtPtr/0x538ec38000
   119.548335 s:  VX_ZONE_INFO:[ownNodeKernelInit:562] Calling create callback for node capture_node
   119.551841 s:  VX_ZONE_INFO:[ownNodeKernelInit:581] Create callback for node capture_node completed
   119.551928 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:603] kernel init for node 0, kernel com.ti.capture ...
   119.551952 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:614] kernel init for node 0, kernel com.ti.capture ... done !!!
   119.551976 s:  VX_ZONE_INFO:[ownNodeKernelInit:562] Calling create callback for node capture_write_node
   119.552090 s:  VX_ZONE_INFO:[ownTargetKernelInstanceAlloc:117] attempting to call kernel com.ti.fileio.write.tivx_raw_image on this CPU
   119.552130 s:  VX_ZONE_INFO:[ownTargetKernelCreate:326] Executing create callback for kernel [com.ti.fileio.write.tivx_raw_image]
MEM: appMemAlloc ... !!!
MEM: Using buf/7

MEM : SHM_alloc_aligned(24, 1024) : PASSED
MEM: Allocated memory - virt base address = 538fc27000, phy/0xbbfbf000 size = 24
   119.552239 s:  VX_ZONE_INFO:[ownTargetKernelCreate:332] Done executing create callback for kernel [com.ti.fileio.write.tivx_raw_image]
   119.552276 s:  VX_ZONE_INFO:[ownNodeKernelInit:581] Create callback for node capture_write_node completed
   119.552361 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:603] kernel init for node 1, kernel com.ti.fileio.write.tivx_raw_image ...
   119.552387 s:  VX_ZONE_INFO:[ownGraphNodeKernelInit:614] kernel init for node 1, kernel com.ti.fileio.write.tivx_raw_image ... done !!!
tivxMemBufferAlloc():mem_size = 12, mem_region = 0
MEM: appMemAlloc ... !!!
MEM: Using buf/8

MEM : SHM_alloc_aligned(12, 1024) : PASSED
MEM: Allocated memory - virt base address = 538fc28000, phy/0xbbfc0000 size = 12
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xbbfc0000 len/4096 for virtPtr/0x538fc28000
MEM: appMemGetDmaBufFd ... !!!
MEM: appMemGetVirt2PhyBufPtr ... !!!
MEM: phyPtr 0xbbfc0000 len/4096 for virtPtr/0x538fc28000
   119.703829 s:  VX_ZONE_INFO:[ownTargetKernelControl:430] Executing control callback for kernel [com.ti.fileio.write.tivx_raw_image]
   119.703859 s:  VX_ZONE_INFO:[ownTargetKernelControl:436] Done executing control callback for kernel [com.ti.fileio.write.tivx_raw_image]
   119.784594 s:  VX_ZONE_INFO:[capture_test_run:218] app_verify_graph done
   119.784615 s: ISS: Starting sensor [DUMMY_SENSOR] ... !!!
[MCU2_0]    119.784790 s: i2cRegisterSetWriteReq(): entry - numOfRegs=1
[MCU2_0]    119.785045 s: i2cRegisterSetWriteReq(): i2c reg-write success
[MCU2_0]    119.785099 s: i2cRegisterSetWriteReq(): entry - numOfRegs=3
[MCU2_0]    119.785570 s: i2cRegisterSetWriteReq(): i2c reg-write success
[MCU2_0]    120.784953 s: IssSensor_Start():start stream register read status=0, value[0] = 0, value[1] = 1
[MCU2_0]    120.785242 s: IssSensor_Start(): frame counter read success for loop 0, value[0] = 0, value[1]=15
[MCU2_0]    120.884949 s: IssSensor_Start(): frame counter read success for loop 1, value[0] = 0, value[1]=17
[MCU2_0]    120.984941 s: IssSensor_Start(): frame counter read success for loop 2, value[0] = 0, value[1]=18
[MCU2_0]    121.084944 s: IssSensor_Start(): frame counter read success for loop 3, value[0] = 0, value[1]=20
[MCU2_0]    121.184949 s: IssSensor_Start(): frame counter read success for loop 4, value[0] = 0, value[1]=21
[MCU2_0]    121.284945 s: IssSensor_Start(): frame counter read success for loop 5, value[0] = 0, value[1]=23
[MCU2_0]    121.384945 s: IssSensor_Start(): frame counter read success for loop 6, value[0] = 0, value[1]=24
[MCU2_0]    121.484942 s: IssSensor_Start(): frame counter read success for loop 7, value[0] = 0, value[1]=26
[MCU2_0]    121.584943 s: IssSensor_Start(): frame counter read success for loop 8, value[0] = 0, value[1]=27
[MCU2_0]    121.684946 s: IssSensor_Start(): frame counter read success for loop 9, value[0] = 0, value[1]=29

   133.114839 s: ISS: Starting sensor [DUMMY_SENSOR] ... Done !!!
   133.114916 s:  VX_ZONE_INFO:[app_run_graph:396] CAM Input used start streaming command sent, status 0
   133.114940 s:  VX_ZONE_INFO:[ownDataRefQueueEnqueueReadyRef:91] Q (queue=44, ref=18)
   133.114970 s:  VX_ZONE_INFO:[app_run_graph:408] vxGraphParameterEnqueueReadyRef raw , obj->graph_parameters_queue_params_list[0].refs_list[0] 16abfca698, status 0
   133.114999 s:  VX_ZONE_INFO:[ownDataRefQueueEnqueueReadyRef:91] Q (queue=44, ref=20)
   133.115025 s:  VX_ZONE_INFO:[app_run_graph:408] vxGraphParameterEnqueueReadyRef raw , obj->graph_parameters_queue_params_list[0].refs_list[1] 16abfca840, status 0
   133.115054 s:  VX_ZONE_INFO:[ownDataRefQueueEnqueueReadyRef:91] Q (queue=44, ref=22)
   133.115084 s:  VX_ZONE_INFO:[ownGraphScheduleGraph:819] Scheduling Graph (graph=48, pipe=0)
   133.115106 s:  VX_ZONE_INFO:[ownNodeKernelSchedule:801] Scheduling Node (node=26, pipe=0)
   133.115163 s:  VX_ZONE_INFO:[app_run_graph:408] vxGraphParameterEnqueueReadyRef raw , obj->graph_parameters_queue_params_list[0].refs_list[2] 16abfca9e8, status 0
   133.115195 s:  VX_ZONE_INFO:[ownDataRefQueueEnqueueReadyRef:91] Q (queue=44, ref=24)
   133.115222 s:  VX_ZONE_INFO:[ownGraphScheduleGraph:819] Scheduling Graph (graph=49, pipe=1)
   133.115244 s:  VX_ZONE_INFO:[ownNodeKernelSchedule:801] Scheduling Node (node=28, pipe=1)
   133.115295 s:  VX_ZONE_INFO:[app_run_graph:408] vxGraphParameterEnqueueReadyRef raw , obj->graph_parameters_queue_params_list[0].refs_list[3] 16abfcab90, status 0
   133.115325 s:  VX_ZONE_INFO:[app_run_graph:421] start to DequeueRef raw
   133.115346 s:  VX_ZONE_INFO:[ownDataRefQueueDequeueDoneRef:166] DQ (queue=45) .. NO BUFFER

  • Hi Deepak,

    can you please make sure 

    1, the number of lanes and lane polarity are matching as per the hardware connection. Please note that lane polarity is not configurable in CSIRX. So please check if they are connected correctly to the CSIRX input. 

    2, the lane speed is configured correctly and matching with the output from the deserializer

    3, if the lane speed is more than 1.5Gbps, then skew calibration sequence is enabled as output from deserializer

    4, data type and virtual channel id configured in CSIRX are exactly matching with what is getting output from deserializer

    5, deserializer and sensor outputs are enabled only in streamon callback and not before that. 

    Regards,

    Brijesh

  • Hi Brijesh,

    Thanks for sending this detailed check list with us, we have updated the de skew calibration and now we are able to capture the RAW Images.

    Thanks.