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.

[FAQ] TDA4VM: Image freezes when trying to save ldc images in demo 'app_multi_cam'

Part Number: TDA4VM

Tool/software:

Hello,

I want to save the images. In the cfg file, when I set en-out_img_write=1, The image on the monitor is severely stuck and there are many dropped frames.

when I set set en_out_ldc_write=1, the image is completely stuck and no longer changes, and the options x, s, p do not work;

But when I set them all to 0, the application works fine.

Have you ever encountered this situation?

The following is the log when en_out_ldc_write = 1

SDK : 08_06, sensor outputs yuv422

root@j7-evm:/opt/vision_apps# vi app_multi_cam.cfg
root@j7-evm:/opt/vision_apps# ./run_app_multi_cam.sh
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=4) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
   552.792165 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
   552.792239 s:  VX_ZONE_INIT:Enabled
   552.792246 s:  VX_ZONE_ERROR:Enabled
   552.792252 s:  VX_ZONE_WARNING:Enabled
   552.792909 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
   552.794141 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
   552.794378 s: ISS: Enumerating sensors ... !!!
   553.194355 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3
   553.194387 s: ISS: Enumerating sensors ... found 1 : SG2-IMX390C-5200-FPDLINK
   553.194409 s: ISS: Enumerating sensors ... found 2 : AR0233-UB953_MARS
   553.194414 s: ISS: Enumerating sensors ... found 3 : AR0820-UB953_LI
   553.194420 s: ISS: Enumerating sensors ... found 4 : UB9xxx_RAW12_TESTPATTERN
   553.194425 s: ISS: Enumerating sensors ... found 5 : UB96x_UYVY_TESTPATTERN
   553.194429 s: ISS: Enumerating sensors ... found 6 : GW_AR0233_UYVY
7 sensor(s) found
Supported sensor list:
a : IMX390-UB953_D3
b : SG2-IMX390C-5200-FPDLINK
c : AR0233-UB953_MARS
d : AR0820-UB953_LI
e : UB9xxx_RAW12_TESTPATTERN
f : UB96x_UYVY_TESTPATTERN
g : GW_AR0233_UYVY
Select a sensor above or press '0' to autodetect the sensor
b
Sensor selected : SG2-IMX390C-5200-FPDLINK
Querying SG2-IMX390C-5200-FPDLINK
   555.624821 s: ISS: Querying sensor [SG2-IMX390C-5200-FPDLINK] ... !!!
   555.625204 s: ISS: Querying sensor [SG2-IMX390C-5200-FPDLINK] ... Done !!!
LDC Selection Yes(1)/No(0)
1
Max number of cameras supported by sensor SG2-IMX390C-5200-FPDLINK = 4
Please enter number of cameras to be enabled
4
WDR mode is not supported. Defaulting to linear
Sensor DCC is enabled
Sensor width = 1920
Sensor height = 1080
Sensor DCC ID = 6100
Sensor Supported Features = 0x00000100
Sensor Enabled Features = 0x00000120
YUV Input selected. VISS, AEWB and Mosaic nodes will be bypassed.
Creating context done!
Kernel loading done!
   558.212615 s: ISS: Initializing sensor [SG2-IMX390C-5200-FPDLINK], doing IM_SENSOR_CMD_PWRON ... !!!
   558.213011 s: ISS: Initializing sensor [SG2-IMX390C-5200-FPDLINK], doing IM_SENSOR_CMD_CONFIG ... !!!
[MCU2_0]    558.856963 s: ===ub953_cfgScript chId=0 i2cAddrSer=74
[MCU2_0]    559.349967 s: ===ub953_cfgScript chId=1 i2cAddrSer=76
[MCU2_0]    559.842962 s: ===ub953_cfgScript chId=2 i2cAddrSer=78
[MCU2_0]    560.335962 s: ===ub953_cfgScript chId=3 i2cAddrSer=7a
   560.697182 s: ISS: Initializing sensor [SG2-IMX390C-5200-FPDLINK] ... Done !!!
Sensor init done!
captureObj->params.numDataLanes = 4
captureObj->params.dataLanesMap[0] = 1
captureObj->params.dataLanesMap[1] = 2
captureObj->params.dataLanesMap[2] = 3
captureObj->params.dataLanesMap[3] = 4
LDC init done!
Img Mosaic init done!
Display init done!
App Init Done!
Graph create done!
Capture graph done!
dcc->config nonempty
LDC graph done!
Img Mosaic graph done!
Display graph done!
Pipeline params setup done!
App Create Graph Done!
Graph verify done!
App Verify Graph Done!
App Send Error Frame Done!
app_pipeline_params_defaults returned
   560.833119 s: ISS: Starting sensor [SG2-IMX390C-5200-FPDLINK] ... !!!
   561.473178 s: ISS: Starting sensor [SG2-IMX390C-5200-FPDLINK] ... !!!
appStartImageSensor returned with status: 0


 =========================
 Demo : Camera Demo
 =========================

 s: Save CSIx, VISS and LDC outputs

 p: Print performance statistics

 x: Exit

 Enter Choice:


 =========================
 Demo : Camera Demo
 =========================

 s: Save CSIx, VISS and LDC outputs

 p: Print performance statistics

 x: Exit

 Enter Choice: [MCU2_0]    561.473821 s:  VX_ZONE_WARNING:[tivxCaptureSetTimeout:786]  CAPTURE: WARNING: Error frame not provided using tivxCaptureRegisterErrorFrame, defaulting to waiting forever !!!
x

x
p