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.
Hi,TI experts:
We need to debug the AR0220 sensor on our 5R5V project on TDA4VM, including BringUp and ISP tuning.
Firstly, when I bringup the ar0220, the graph of usecase that I used the app_single_cam or app_multi_app(set the camera-num to 1) can't run correctly. It blocked at the vxGraphParameterDequeueDoneRef.
The attachment is the log of app_multi_cam and the driver-configuration of ar0220. The configuration of dcc i used is ar0233 that PSDK8.2 is available in the default release. Does it block for dcc? How should I troubleshoot this issue?
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 !!! 1862.906644 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 1862.918415 s: VX_ZONE_INIT:Enabled 1862.918443 s: VX_ZONE_ERROR:Enabled 1862.918452 s: VX_ZONE_WARNING:Enabled 1862.922201 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!! 1862.922420 s: VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!! 1862.928828 s: ISS: Enumerating sensors ... !!! 1862.932316 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3 1862.932329 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS 1862.932337 s: ISS: Enumerating sensors ... found 2 : SENSOR_AR0220_MAX96712 1862.932342 s: ISS: Enumerating sensors ... found 3 : ISX019-MAX96712-MAX96707 1862.932346 s: ISS: Enumerating sensors ... found 4 : OX03D4C-MAX96712-MAX96717F 1862.932351 s: ISS: Enumerating sensors ... found 5 : ISX031-MAX96712-MAX96717F 1862.932355 s: ISS: Enumerating sensors ... found 6 : BYPS-MAX96712-MAX96717 1862.932360 s: ISS: Enumerating sensors ... found 7 : VIRT_ISX031 8 sensor(s) found Supported sensor list: a : IMX390-UB953_D3 b : AR0233-UB953_MARS c : SENSOR_AR0220_MAX96712 d : ISX019-MAX96712-MAX96707 e : OX03D4C-MAX96712-MAX96717F f : ISX031-MAX96712-MAX96717F g : BYPS-MAX96712-MAX96717 h : VIRT_ISX031 Select a sensor above or press '0' to autodetect the sensor [MCU2_0] 1862.932082 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE c Sensor selected : SENSOR_AR0220_MAX96712 Querying SENSOR_AR0220_MAX96712 1865.299351 s: ISS: Querying sensor [SENSOR_AR0220_MAX96712] ... !!! 1865.299869 s: ISS: Querying sensor [SENSOR_AR0220_MAX96712] ... Done !!! LDC Selection Yes(1)/No(0) Invalid selection . Try again LDC Selection Yes(1)/No(0) [MCU2_0] 1865.299602 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY [MCU2_0] 1865.299684 s: Received Query for SENSOR_AR0220_MAX96712 0 Max number of cameras supported by sensor SENSOR_AR0220_MAX96712 = 1 Please enter number of cameras to be enabled Invalid selection . Try again Max number of cameras supported by sensor SENSOR_AR0220_MAX96712 = 1 Please enter number of cameras to be enabled 1 Creating context done! Kernel loading done! 1870.192722 s: ISS: Initializing sensor [SENSOR_AR0220_MAX96712], doing IM_SENSOR_CMD_PWRON ... !!! [MCU2_0] 1870.192949 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON [MCU2_0] 1870.193033 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x1 [MCU2_0] 1870.193208 s: I2C: Success: I2C Open for instance 0 !!! [MCU2_0] 1870.193254 s: max96712 config start [MCU2_0] 1870.193514 s: max96712: i2cInstance=0:@29, 0013, 75 [MCU2_0] 1870.449651 s: max96712: i2cInstance=0:@29, 040b, 00 [MCU2_0] 1870.465642 s: max96712: i2cInstance=0:@29, 0010, 11 [MCU2_0] 1870.481651 s: max96712: i2cInstance=0:@29, 0006, f1 [MCU2_0] 1870.497637 s: max96712: i2cInstance=0:@29, 00f0, 62 [MCU2_0] 1870.513642 s: max96712: i2cInstance=0:@29, 00f1, ea [MCU2_0] 1870.529643 s: max96712: i2cInstance=0:@29, 00f4, 0f [MCU2_0] 1870.545648 s: max96712: i2cInstance=0:@29, 0018, 0f [MCU2_0] 1870.801692 s: max96712: i2cInstance=0:@29, 090b, 07 [MCU2_0] 1870.817675 s: max96712: i2cInstance=0:@29, 092d, 15 [MCU2_0] 1870.833681 s: max96712: i2cInstance=0:@29, 090d, 2c [MCU2_0] 1870.849685 s: max96712: i2cInstance=0:@29, 090e, 2c [MCU2_0] 1870.865678 s: max96712: i2cInstance=0:@29, 090f, 00 [MCU2_0] 1870.881685 s: max96712: i2cInstance=0:@29, 0910, 00 [MCU2_0] 1870.897674 s: max96712: i2cInstance=0:@29, 0911, 01 [MCU2_0] 1870.913672 s: max96712: i2cInstance=0:@29, 0912, 01 [MCU2_0] 1870.929681 s: max96712: i2cInstance=0:@29, 08a0, 04 [MCU2_0] 1870.945686 s: max96712: i2cInstance=0:@29, 08a3, e4 [MCU2_0] 1870.961680 s: max96712: i2cInstance=0:@29, 090a, c0 [MCU2_0] 1870.977674 s: max96712: i2cInstance=0:@29, 094a, c0 [MCU2_0] 1870.993677 s: max96712: i2cInstance=0:@29, 08a2, 30 [MCU2_0] 1871.009672 s: max96712: i2cInstance=0:@29, 1c00, f4 [MCU2_0] 1871.025676 s: max96712: i2cInstance=0:@29, 1d00, f4 [MCU2_0] 1871.041684 s: max96712: i2cInstance=0:@29, 1e00, f4 [MCU2_0] 1871.057700 s: max96712: i2cInstance=0:@29, 1f00, f4 [MCU2_0] 1871.073678 s: max96712: i2cInstance=0:@29, 0415, 26 [MCU2_0] 1871.089672 s: max96712: i2cInstance=0:@29, 0418, 26 [MCU2_0] 1871.105678 s: max96712: i2cInstance=0:@29, 1c00, f5 [MCU2_0] 1871.121692 s: max96712: i2cInstance=0:@29, 1d00, f5 [MCU2_0] 1871.137694 s: max96712: i2cInstance=0:@29, 1e00, f5 [MCU2_0] 1871.153685 s: max96712: i2cInstance=0:@29, 1f00, f5 [MCU2_0] 1871.169677 s: max96712: i2cInstance=0:@29, 0006, f1 1871.185690 s: ISS: Initializing sensor [SENSOR_AR0220_MAX96712], doing IM_SENSOR_CMD_CONFIG ... !!! [MCU2_0] 1871.185447 s: End of 96712 config [MCU2_0] 1871.185900 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG [MCU2_0] 1871.185965 s: Application requested features = 0x138 [MCU2_0] [MCU2_0] 1871.285450 s: i2c-0:max96707/96717 config start: slaveAddr = 0x42 [MCU2_0] 1871.285754 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.285830 s: max96707/max96717: i2cInstance=0:@42, 0383, 00 [MCU2_0] 1871.301674 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.301762 s: max96707/max96717: i2cInstance=0:@42, 0318, 6c [MCU2_0] 1871.557697 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.557790 s: max96707/max96717: i2cInstance=0:@42, 0002, f3 [MCU2_0] 1871.573669 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.573758 s: max96707/max96717: i2cInstance=0:@42, 03F0, 51 [MCU2_0] 1871.589671 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.589756 s: max96707/max96717: i2cInstance=0:@42, 0003, 03 [MCU2_0] 1871.605667 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.605755 s: max96707/max96717: i2cInstance=0:@42, 0006, b0 [MCU2_0] 1871.621684 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.621773 s: max96707/max96717: i2cInstance=0:@42, 0570, 0c [MCU2_0] 1871.637693 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.637781 s: max96707/max96717: i2cInstance=0:@42, 02C1, 10 [MCU2_0] 1871.653675 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 1871.653767 s: max96707/max96717: i2cInstance=0:@42, 02C2, 60 [MCU2_0] 1871.909449 s: End of max96707/max96717 config [MCU2_0] 1872.009852 s: AR0220_Probe SUCCESS : Read expected value 0xc54 at chip ID register 0x3000 [MCU2_0] 1872.009950 s: Configuring camera # 0 [MCU2_0] 1872.059453 s: dewey: Configuring AR0220 imager .. Please wait till it finishes 1872.089724 s: ISS: Initializing sensor [SENSOR_AR0220_MAX96712] ... Done !!! Sensor init done! dewey:captureObj->params.instCfg[id].laneBandSpeed = 11 [MCU2_0] 1872.089449 s: AR0220 config done [MCU2_0] 1872.089518 s: IM_SENSOR_CMD_CONFIG returning status = 0 read_test_image_raw : Unable to open file /opt/vision_apps/test_data//img_test.raw, setting error message as all 0s dewey:IssGetDCCSizeVISS: wdr-0 , size=-1 dewey:IssGetDCCSizeVISS: wdr-0 , size=17099 VISS init done! AEWB init done! Img Mosaic init done! Display init done! App Init Done! Graph create done! Capture graph done! VISS graph done! AEWB 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 1872.248098 s: ISS: Starting sensor [SENSOR_AR0220_MAX96712] ... !!! [MCU2_0] 1872.248637 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON [MCU2_0] 1872.248726 s: IM_SENSOR_CMD_STREAM_ON: channel_mask = 0x1 [MCU2_0] 1872.258460 s: max96712 config start [MCU2_0] 1872.258749 s: max96712: i2cInstance=0:@29, 040b, 62 [MCU2_0] 1872.274676 s: max96712: i2cInstance=0:@29, 08a0, 84 1872.290665 s: ISS: Starting sensor [SENSOR_AR0220_MAX96712] ... !!! app_run_graph_for_one_pipeline: frame 0 beginning dewey:----------------------------111 - 0 dewey:----------------------------222 - 0 app_run_graph_for_one_pipeline: frame 1 beginning dewey:----------------------------111 - 1 dewey:----------------------------222 - 1 app_run_graph_for_one_pipeline: frame 2 beginning dewey:----------------------------111 - 2 dewey:----------------------------222 - 2 dewey:----------------------------11 - 2 dewey:----------------------------22 - 2 dewey:----------------------------1 - 2 ========================= 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] 1872.290446 s: End of 96712 config p Summary of CPU load, ==================== CPU: mpu1_0: TOTAL LOAD = 0.45 % ( HWI = 0.10 %, SWI = 0. 2 % ) CPU: mcu2_0: TOTAL LOAD = 10. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) CPU: mcu2_1: TOTAL LOAD = 4. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) CPU: mcu3_0: TOTAL LOAD = 4. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) CPU: mcu3_1: TOTAL LOAD = 4. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) CPU: c6x_1: TOTAL LOAD = 0. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) CPU: c6x_2: TOTAL LOAD = 0. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) CPU: c7x_1: TOTAL LOAD = 0. 0 % ( HWI = 0. 0 %, SWI = 0. 0 % ) HWA performance statistics, =========================== DDR performance statistics, =========================== DDR: READ BW: AVG = 41 MB/s, PEAK = 4994 MB/s DDR: WRITE BW: AVG = 109 MB/s, PEAK = 2144 MB/s DDR: TOTAL BW: AVG = 150 MB/s, PEAK = 7138 MB/s Detailed CPU performance/memory statistics, =========================================== CPU: mcu2_0: TASK: IPC_RX: 0. 0 % CPU: mcu2_0: TASK: REMOTE_SRV: 0. 0 % CPU: mcu2_0: TASK: LOAD_TEST: 0. 0 % CPU: mcu2_0: TASK: TIVX_CPU_0: 0. 0 % CPU: mcu2_0: TASK: TIVX_NF: 0. 0 % CPU: mcu2_0: TASK: TIVX_LDC1: 0. 0 % CPU: mcu2_0: TASK: TIVX_MSC1: 0. 0 % CPU: mcu2_0: TASK: TIVX_MSC2: 0. 0 % CPU: mcu2_0: TASK: TIVX_VISS1: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT1: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT2: 0. 0 % CPU: mcu2_0: TASK: TIVX_DISP1: 0. 0 % CPU: mcu2_0: TASK: TIVX_DISP2: 0. 0 % CPU: mcu2_0: TASK: TIVX_CSITX: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT3: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT4: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT5: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT6: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT7: 0. 0 % CPU: mcu2_0: TASK: TIVX_CAPT8: 0. 0 % CPU: mcu2_0: TASK: TIVX_DISP_M: 0. 0 % CPU: mcu2_0: TASK: TIVX_DISP_M: 0. 0 % CPU: mcu2_0: TASK: TIVX_DISP_M: 0. 0 % CPU: mcu2_0: TASK: TIVX_DISP_M: 0. 0 % CPU: mcu2_0: HEAP: DDR_SHARED_MEM: size = 16777216 B, free = 16274176 B ( 97 % unused) CPU: mcu2_0: HEAP: L3_MEM: size = 262144 B, free = 261888 B ( 99 % unused) CPU: mcu2_1: TASK: IPC_RX: 0. 0 % CPU: mcu2_1: TASK: REMOTE_SRV: 0. 0 % CPU: mcu2_1: TASK: LOAD_TEST: 0. 0 % CPU: mcu2_1: TASK: TIVX_SDE: 0. 0 % CPU: mcu2_1: TASK: TIVX_DOF: 0. 0 % CPU: mcu2_1: TASK: TIVX_CPU_1: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_RX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu2_1: HEAP: DDR_SHARED_MEM: size = 16777216 B, free = 16773376 B ( 99 % unused) CPU: mcu2_1: HEAP: L3_MEM: size = 262144 B, free = 262144 B (100 % unused) CPU: mcu3_0: TASK: IPC_RX: 0. 0 % CPU: mcu3_0: TASK: REMOTE_SRV: 0. 0 % CPU: mcu3_0: TASK: LOAD_TEST: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_RX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_0: HEAP: DDR_SHARED_MEM: size = 8388608 B, free = 8384768 B ( 99 % unused) CPU: mcu3_0: HEAP: L3_MEM: size = 262144 B, free = 262144 B (100 % unused) CPU: mcu3_1: TASK: IPC_RX: 0. 0 % CPU: mcu3_1: TASK: REMOTE_SRV: 0. 0 % CPU: mcu3_1: TASK: LOAD_TEST: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_RX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: TASK: IPC_TEST_TX: 0. 0 % CPU: mcu3_1: HEAP: DDR_SHARED_MEM: size = 8388608 B, free = 8384768 B ( 99 % unused) CPU: mcu3_1: HEAP: L3_MEM: size = 262144 B, free = 262144 B (100 % unused) CPU: c6x_1: TASK: IPC_RX: 0. 0 % CPU: c6x_1: TASK: REMOTE_SRV: 0. 0 % CPU: c6x_1: TASK: LOAD_TEST: 0. 0 % CPU: c6x_1: TASK: TIVX_CPU: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_RX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_1: HEAP: DDR_SHARED_MEM: size = 16777216 B, free = 16773376 B ( 99 % unused) CPU: c6x_1: HEAP: L2_MEM: size = 229376 B, free = 229376 B (100 % unused) CPU: c6x_1: HEAP: DDR_SCRATCH_MEM: size = 50331648 B, free = 50331648 B (100 % unused) CPU: c6x_2: TASK: IPC_RX: 0. 0 % CPU: c6x_2: TASK: REMOTE_SRV: 0. 0 % CPU: c6x_2: TASK: LOAD_TEST: 0. 0 % CPU: c6x_2: TASK: TIVX_CPU: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_RX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: TASK: IPC_TEST_TX: 0. 0 % CPU: c6x_2: HEAP: DDR_SHARED_MEM: size = 16777216 B, free = 16773376 B ( 99 % unused) CPU: c6x_2: HEAP: L2_MEM: size = 229376 B, free = 229376 B (100 % unused) CPU: c6x_2: HEAP: DDR_SCRATCH_MEM: size = 50331648 B, free = 50331648 B (100 % unused) CPU: c7x_1: TASK: IPC_RX: 0. 0 % CPU: c7x_1: TASK: REMOTE_SRV: 0. 0 % CPU: c7x_1: TASK: LOAD_TEST: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: TIVX_CPU_PR: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_RX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: TASK: IPC_TEST_TX: 0. 0 % CPU: c7x_1: HEAP: DDR_SHARED_MEM: size = 268435456 B, free = 268435200 B ( 99 % unused) CPU: c7x_1: HEAP: L3_MEM: size = 8159232 B, free = 8159232 B (100 % unused) CPU: c7x_1: HEAP: L2_MEM: size = 458752 B, free = 458752 B (100 % unused) CPU: c7x_1: HEAP: L1_MEM: size = 16384 B, free = 16384 B (100 % unused) CPU: c7x_1: HEAP: DDR_SCRATCH_MEM: size = 385875968 B, free = 385875968 B (100 % unused) GRAPH: app_multi_cam_graph (#nodes = 5, #executions = 0) NODE: CAPTURE1: capture_node: avg = 0 usecs, min/max = 18446744073709551 / 0 usecs, #executions = 0 NODE: VPAC_VISS1: viss_node: avg = 0 usecs, min/max = 18446744073709551 / 0 usecs, #executions = 0 NODE: IPU1-0: aewb_node: avg = 0 usecs, min/max = 18446744073709551 / 0 usecs, #executions = 0 NODE: VPAC_MSC1: mosaic_node: avg = 0 usecs, min/max = 18446744073709551 / 0 usecs, #executions = 0 NODE: DISPLAY1: DisplayNode: avg = 0 usecs, min/max = 18446744073709551 / 0 usecs, #executions = 0 PERF: FILEIO: avg = 0 usecs, min/max = 4294967295 / 0 usecs, #executions = 0 PERF: TOTAL: avg = 24 usecs, min/max = 8 / 40 usecs, #executions = 2 PERF: TOTAL: 41666.66 FPS ========================= 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] 3704.157724 s: ========================================================== [MCU2_0] 3704.157832 s: Capture Status: Instance|0 [MCU2_0] 3704.157875 s: ========================================================== [MCU2_0] 3704.157924 s: overflowCount: 0 [MCU2_0] 3704.157958 s: spuriousUdmaIntrCount: 0 [MCU2_0] 3704.157992 s: frontFIFOOvflCount: 0 [MCU2_0] 3704.158023 s: crcCount: 0 [MCU2_0] 3704.158051 s: eccCount: 0 [MCU2_0] 3704.158081 s: correctedEccCount: 0 [MCU2_0] 3704.158113 s: dataIdErrorCount: 0 [MCU2_0] 3704.158145 s: invalidAccessCount: 0 [MCU2_0] 3704.158178 s: invalidSpCount: 0 [MCU2_0] 3704.158214 s: strmFIFOOvflCount[0]: 0 [MCU2_0] 3704.158245 s: Channel Num | Frame Queue Count | Frame De-queue Count | Frame Drop Count | Error Frame Count | [MCU2_0] 3704.158323 s: 0 | 4 | 2 | 55076 | 0 |
Additionally, if I disable the DCC configuration, it can cause one frame of image to freeze. The log below is for this issue:
root@j7-evm:/opt/vision_apps# ./run_app_single_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 !!! 170351.853246 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 170351.865017 s: VX_ZONE_INIT:Enabled 170351.865043 s: VX_ZONE_ERROR:Enabled 170351.865052 s: VX_ZONE_WARNING:Enabled 170351.868746 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!! 170351.868961 s: VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!! Invalid token [ ] sensor_selection = [2] Invalid token [ ] ldc_enable = [0] Invalid token [ ] num_frames_to_run = [100] Invalid token [ ] is_interactive = [1] IttCtrl_registerHandler: command echo registered at location 0 IttCtrl_registerHandler: command iss_read_2a_params registered at location 1 IttCtrl_registerHandler: command iss_write_2a_params registered at location 2 IttCtrl_registerHandler: command iss_raw_save registered at location 3 IttCtrl_registerHandler: command iss_yuv_save registered at location 4 IttCtrl_registerHandler: command iss_read_sensor_reg registered at location 5 IttCtrl_registerHandler: command iss_write_sensor_reg registered at location 6 IttCtrl_registerHandler: command dev_ctrl registered at location 7 IttCtrl_registerHandler: command iss_send_dcc_file registered at location 8 NETWORK: Opened at IP Addr = 1.4.16.64, socket port=5000!!! tivxImagingLoadKernels done 170351.891579 s: ISS: Enumerating sensors ... !!! 170351.892039 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3 170351.892053 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS 170351.892122 s: ISS: Enumerating sensors ... found 2 : SENSOR_AR0220_MAX96712 170351.892176 s: ISS: Enumerating sensors ... found 3 : ISX019-MAX96712-MAX96707 170351.892232 s: ISS: Enumerating sensors ... found 4 : OX03D4C-MAX96712-MAX96717F 170351.892285 s: ISS: Enumerating sensors ... found 5 : ISX031-MAX96712-MAX96717F 170351.892337 s: ISS: Enumerating sensors ... found 6 : BYPS-MAX96712-MAX96717 170351.892384 s: ISS: Enumerating sensors ... found 7 : VIRT_ISX031 Select camera port index 0-7 : [MCU2_0] 170351.891806 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE 0 8 registered sensor drivers a : IMX390-UB953_D3 b : AR0233-UB953_MARS c : SENSOR_AR0220_MAX96712 d : ISX019-MAX96712-MAX96707 e : OX03D4C-MAX96712-MAX96717F f : ISX031-MAX96712-MAX96717F g : BYPS-MAX96712-MAX96717 h : VIRT_ISX031 Select a sensor above or press '0' to autodetect the sensor : Invalid selection . Try again 8 registered sensor drivers a : IMX390-UB953_D3 b : AR0233-UB953_MARS c : SENSOR_AR0220_MAX96712 d : ISX019-MAX96712-MAX96707 e : OX03D4C-MAX96712-MAX96717F f : ISX031-MAX96712-MAX96717F g : BYPS-MAX96712-MAX96717 h : VIRT_ISX031 Select a sensor above or press '0' to autodetect the sensor : c Sensor selected : SENSOR_AR0220_MAX96712 LDC Selection Yes(1)/No(0) : LDC Selection Yes(1)/No(0) : 0 app_init done Querying SENSOR_AR0220_MAX96712 170357.108717 s: ISS: Querying sensor [SENSOR_AR0220_MAX96712] ... !!! 170357.109271 s: ISS: Querying sensor [SENSOR_AR0220_MAX96712] ... Done !!! WDR mode is not supported. Defaulting to linear Expsoure control is supported Gain control is supported obj->aewb_cfg.ae_mode = 0 obj->aewb_cfg.awb_mode = 0 Sensor DCC is enabled Sensor width = 1828 Sensor height = 944 Sensor DCC ID = 233 Sensor Supported Features = 0x138 Sensor Enabled Features = 0x138 170357.109325 s: ISS: Initializing sensor [SENSOR_AR0220_MAX96712], doing IM_SENSOR_CMD_PWRON ... !!! [MCU2_0] 170357.108947 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY [MCU2_0] 170357.109031 s: Received Query for SENSOR_AR0220_MAX96712 [MCU2_0] 170357.109515 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON [MCU2_0] 170357.109580 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x1 [MCU2_0] 170357.109753 s: I2C: Success: I2C Open for instance 0 !!! [MCU2_0] 170357.109800 s: max96712 config start [MCU2_0] 170357.109992 s: max96712: i2cInstance=0:@29, 0013, 75 [MCU2_0] 170357.365360 s: max96712: i2cInstance=0:@29, 040b, 00 [MCU2_0] 170357.381359 s: max96712: i2cInstance=0:@29, 0010, 11 [MCU2_0] 170357.397368 s: max96712: i2cInstance=0:@29, 0006, f1 [MCU2_0] 170357.413343 s: max96712: i2cInstance=0:@29, 00f0, 62 [MCU2_0] 170357.429360 s: max96712: i2cInstance=0:@29, 00f1, ea [MCU2_0] 170357.445366 s: max96712: i2cInstance=0:@29, 00f4, 0f [MCU2_0] 170357.461348 s: max96712: i2cInstance=0:@29, 0018, 0f [MCU2_0] 170357.717392 s: max96712: i2cInstance=0:@29, 090b, 07 [MCU2_0] 170357.733387 s: max96712: i2cInstance=0:@29, 092d, 15 [MCU2_0] 170357.749381 s: max96712: i2cInstance=0:@29, 090d, 2c [MCU2_0] 170357.765381 s: max96712: i2cInstance=0:@29, 090e, 2c [MCU2_0] 170357.781385 s: max96712: i2cInstance=0:@29, 090f, 00 [MCU2_0] 170357.797380 s: max96712: i2cInstance=0:@29, 0910, 00 [MCU2_0] 170357.813384 s: max96712: i2cInstance=0:@29, 0911, 01 [MCU2_0] 170357.829381 s: max96712: i2cInstance=0:@29, 0912, 01 [MCU2_0] 170357.845406 s: max96712: i2cInstance=0:@29, 08a0, 04 [MCU2_0] 170357.861387 s: max96712: i2cInstance=0:@29, 08a3, e4 [MCU2_0] 170357.877389 s: max96712: i2cInstance=0:@29, 090a, c0 [MCU2_0] 170357.893391 s: max96712: i2cInstance=0:@29, 094a, c0 [MCU2_0] 170357.909376 s: max96712: i2cInstance=0:@29, 08a2, 30 [MCU2_0] 170357.925379 s: max96712: i2cInstance=0:@29, 1c00, f4 [MCU2_0] 170357.941388 s: max96712: i2cInstance=0:@29, 1d00, f4 [MCU2_0] 170357.957376 s: max96712: i2cInstance=0:@29, 1e00, f4 [MCU2_0] 170357.973386 s: max96712: i2cInstance=0:@29, 1f00, f4 [MCU2_0] 170357.989387 s: max96712: i2cInstance=0:@29, 0415, 26 [MCU2_0] 170358.005384 s: max96712: i2cInstance=0:@29, 0418, 26 [MCU2_0] 170358.021387 s: max96712: i2cInstance=0:@29, 1c00, f5 [MCU2_0] 170358.037380 s: max96712: i2cInstance=0:@29, 1d00, f5 [MCU2_0] 170358.053380 s: max96712: i2cInstance=0:@29, 1e00, f5 [MCU2_0] 170358.069380 s: max96712: i2cInstance=0:@29, 1f00, f5 [MCU2_0] 170358.085389 s: max96712: i2cInstance=0:@29, 0006, f1 170358.101408 s: ISS: Initializing sensor [SENSOR_AR0220_MAX96712], doing IM_SENSOR_CMD_CONFIG ... !!! [MCU2_0] 170358.101164 s: End of 96712 config [MCU2_0] 170358.101622 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG [MCU2_0] 170358.101689 s: Application requested features = 0x138 [MCU2_0] [MCU2_0] 170358.201163 s: i2c-0:max96707/96717 config start: slaveAddr = 0x42 [MCU2_0] 170358.201463 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.201538 s: max96707/max96717: i2cInstance=0:@42, 0383, 00 [MCU2_0] 170358.217391 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.217481 s: max96707/max96717: i2cInstance=0:@42, 0318, 6c [MCU2_0] 170358.473385 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.473479 s: max96707/max96717: i2cInstance=0:@42, 0002, f3 [MCU2_0] 170358.489383 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.489473 s: max96707/max96717: i2cInstance=0:@42, 03F0, 51 [MCU2_0] 170358.505378 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.505465 s: max96707/max96717: i2cInstance=0:@42, 0003, 03 [MCU2_0] 170358.521379 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.521465 s: max96707/max96717: i2cInstance=0:@42, 0006, b0 [MCU2_0] 170358.537377 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.537468 s: max96707/max96717: i2cInstance=0:@42, 0570, 0c [MCU2_0] 170358.553376 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.553468 s: max96707/max96717: i2cInstance=0:@42, 02C1, 10 [MCU2_0] 170358.569372 s: slaveI2CAddr=42,write16bit:0 , MSD=0 [MCU2_0] 170358.569459 s: max96707/max96717: i2cInstance=0:@42, 02C2, 60 [MCU2_0] 170358.825154 s: End of max96707/max96717 config [MCU2_0] 170358.925557 s: AR0220_Probe SUCCESS : Read expected value 0xc54 at chip ID register 0x3000 [MCU2_0] 170358.925658 s: Configuring camera # 0 [MCU2_0] 170358.975156 s: dewey: Configuring AR0220 imager .. Please wait till it finishes 170359.005433 s: ISS: Initializing sensor [SENSOR_AR0220_MAX96712] ... Done !!! Creating graph Initializing params for capture node capture_config = 0x0xffff81a80a10 Creating capture node obj->capture_node = 0x0xffff81a2f310 read_test_image_raw : Unable to open file /opt/vision_apps/test_data/img_test.raw app_create_viss : sensor_dcc_id = 233 dewey:sensor_dcc_enabled :0 AEWB Set Reference done Display Set Target done vxSetGraphScheduleConfig done [MCU2_0] 170359.005153 s: AR0220 config done [MCU2_0] 170359.005226 s: IM_SENSOR_CMD_CONFIG returning status = 0 [MCU2_0] 170359.015621 s: VX_ZONE_WARNING:[tivxVpacVissCreate:365] VISS H3A output is not generated due to DCC not being enabled [MCU2_0] 170359.022030 s: VX_ZONE_WARNING:[tivxAewbCreate:1050] No DCC buffer passed. Disabling 2A Scaler is disabled app_create_graph exiting app_create_graph done 170359.034975 s: ISS: Starting sensor [SENSOR_AR0220_MAX96712] ... !!! ========================== 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 Enter Choice: [MCU2_0] 170359.035319 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON [MCU2_0] 170359.035408 s: IM_SENSOR_CMD_STREAM_ON: channel_mask = 0x1 [MCU2_0] 170359.045182 s: max96712 config start [MCU2_0] 170359.045461 s: max96712: i2cInstance=0:@29, 040b, 62 [MCU2_0] 170359.061381 s: max96712: i2cInstance=0:@29, 08a0, 84 170359.077373 s: ISS: Starting sensor [SENSOR_AR0220_MAX96712] ... !!! 1--------------------------------------- [MCU2_0] 170359.077155 s: End of 96712 config 2--------------------------------------- 3--------------------------------------- dewey: i 0... RAW file name /opt/vision_apps/test_data/img_0000.raw in width = 1828 in height = 944 in format = 1052672 [MCU2_0] 170359.117188 s: src/csirx_drvUdma.c @ Line 438: [MCU2_0] 170359.117242 s: dewey:csirx---------cb 3451264 bytes written to /opt/vision_apps/test_data/img_0000.raw YUV file name /opt/vision_apps/test_data/img_viss_0000.yuv imgaddr_width = 1828 imgaddr_height = 944 imgaddr_stride = 1856 width = 1828 height = 944 Written 2588448 bytes 2588448 bytes written to /opt/vision_apps/test_data/img_viss_0000.yuv H3A file name /opt/vision_apps/test_data/h3a_0000.bin 24576 bytes saved from H3A output buffer 1---------------------------------------
So I can't bringup the ar0220 with app_multi_cam/app_single_cam.
For DCC settings, you may use the latest python script https://git.ti.com/cgit/processor-sdk/imaging/tree/tools/default_DCC_profile_gen?h=main
It will generates a set of xml files for your sensor for brining-up.
Hi,TI:
hi:
I checked with the module manufacturer, they said that the sensor side did not process AWB, is there any other reason?
We encountered a new problem, when taking photos indoors, we found that there was a serious halo near the flash. The attachment has yuv and raw for reference, and the basic information of the image can be referred to the previous post. Please help to confirm whether it is the problem on the raw graph or the isp has not adjusted it properly. Please give us some suggestions for improvement.
/cfs-file/__key/communityserver-discussions-components-files/791/halo.zip
Hi,
The same halo can be seen in your raw image with your knee points in "ar0220_kneepoints.txt".
Either your knee points are not correct or the sensor has some problem in WDR merging.