Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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-Q1: How to debug max9296, max9295 driver using pdk example?

Part Number: TDA4VM-Q1

Hi,experts:

We are trying to debug a video sensor driver on a TDA4 board, but have encountered some problems.


Our existing software debugging environment is as follows:
1) TDA4 SDK version:
    ti-processor-sdk-linux-j7-evm-08_01_00_07
    ti-processor-sdk-rtos-j721e-evm-08_01_00_13
2) CCS debug emulator: XDS560v2
3) The video link is as follows:
    [AR0233] --4-lane CSI-> [MAX9295] --GMSL2-> [MAX9296] --4-lane CSI-> [J721E]
4) Camera module parameters:
    sensor resolution: 1920x1080@30fps
    sensor data format: RAW12
5) Current debugging progress: I2C communication between TDA4 and MAX9295, MAX9296, AR0233 has been adjusted, and their registers can be read and written normally.

【Q1】: Which sample programs can be used under pdk to better configure and debug the registers of MAX9296, MAX9295 and AR0233?
【Q2】: Can you provide an example of the same type as MAX9295+MAX9296 for reference?

Thank you for your support, I will work hard to learn your products and keep improving.

Thanks!

  • Hi youhua liu,

    Please find below answers to your questions.

    【Q1】: Which sample programs can be used under pdk to better configure and debug the registers of MAX9296, MAX9295 and AR0233?

    If you want to use PDK driver/example, then there is only one example in PDK, which supports CSIRX. You could find this example in ti-processor-sdk-rtos-j721e-evm-08_00_00_12\pdk_jacinto_08_00_00_37\packages\ti\drv\csirx\examples\csirx_capture_test\src folder. In this example, API App_sensorConfig configures SERDES and even sensor using i2c. 

    If you want to use vision apps, you could follow below application note, which explains how to add a new sensor module in the imaging component and then can use single-camera or multi-camera demo to bring up this sensor. 

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/latest/exports/docs/psdk_rtos/docs/user_guide/developer_notes_image_sensor.html

    【Q2】: Can you provide an example of the same type as MAX9295+MAX9296 for reference?

    SDK does not support this SERDES combo. Can you please search in the community for the reference ? 

    Regards,

    Brijesh

  • Hi, Brijesh:

    I'm sorry to reply you so late, I'm debugging the AR0233 camera module driver recently, and I plan to ask questions about the camera driver on this thread.

    Please see the problem:

    Our camera link is as follows:

    [AR0233*2] --> [MAX9295A] --> [MAX9296A] --> [TDA4 CSI1]

    Camera module output data format: Resolution:

    1920x1080@30fps

    Data format: RAW12

    The configuration in iss_sensor_ar0233.c is as follows:

    static IssSensor_CreateParams  ar0233CreatePrms = {
    	SENSOR_ONSEMI_AR0233_MAX9295_SG2,
    	0x0,							 /*i2cInstId*/
    	{
    		0x10, 0, 0, 0,
    		0, 0, 0, 0
    	},/*i2cAddrSensor*/
    	{
    		0x40, 0, 0, 0,
    		0, 0, 0, 0
    	},/*i2cAddrSer*/
    	/*IssSensor_Info*/
    	{
    		{
    			AR0233_OUT_WIDTH,				/*width*/
    			AR0233_OUT_HEIGHT,			    /*height*/
    			1,								/*num_exposures*/
    			vx_false_e, 					/*line_interleaved*/
    			{
    				{TIVX_RAW_IMAGE_16_BIT, 11},	/*dataFormat and MSB [0]*/
    			},
    			0,								/*meta_height_before*/
    			0,								/*meta_height_after*/
    		},
    		ISS_SENSOR_AR0233_FEATURES, 	/*features*/
    		ALGORITHMS_ISS_AEWB_MODE_AEWB,	/*aewbMode*/
    		30, 							/*fps*/
    		2,								/*numDataLanes*/
    		{1, 2, 3, 4},					/*dataLanesMap*/
    		{0, 0, 0, 0},					/*dataLanesPolarity*/
    		CSIRX_LANE_BAND_SPEED_1350_TO_1500_MBPS, /*csi_laneBandSpeed*/
    	},
    	1,									/*numChan*/
    	233,	
    };

    The log information of running source /opt/vision_apps/vision_apps_init.sh is as follows:

    root@j7-evm:~# source /opt/vision_apps/vision_apps_init.sh
    root@j7-evm:~# [MCU2_0]   6752.544647 s: CIO: Init ... Done !!!
    [MCU2_0]   6752.544720 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]   6752.544761 s: APP: Init ... !!!
    [MCU2_0]   6752.544785 s: SCICLIENT: Init ... !!!
    [MCU2_0]   6752.545050 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [MCU2_0]   6752.545118 s: SCICLIENT: DMSC FW revision 0x16
    [MCU2_0]   6752.545153 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_0]   6752.545192 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]   6752.545221 s: UDMA: Init ... !!!
    [MCU2_0]   6752.546611 s: UDMA: Init ... Done !!!
    [MCU2_0]   6752.546681 s: MEM: Init ... !!!
    [MCU2_0]   6752.546725 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ d9000000 of size 16777216 bytes !!!
    [MCU2_0]   6752.546804 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 3600000 of size 262144 bytes !!!
    [MCU2_0]   6752.546868 s: MEM: Init ... Done !!!
    [MCU2_0]   6752.546894 s: IPC: Init ... !!!
    [MCU2_0]   6752.546956 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_0]   6752.547007 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_0]   6764.439152 s: IPC: HLOS is ready !!!
    [MCU2_0]   6764.454499 s: IPC: Init ... Done !!!
    [MCU2_0]   6764.454569 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_0]   6764.817636 s: APP: Syncing with 5 CPUs ... Done !!!
    [MCU2_0]   6764.817894 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_0]   6764.819494 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_0]   6764.819567 s: FVID2: Init ... !!!
    [MCU2_0]   6764.819640 s: FVID2: Init ... Done !!!
    [MCU2_0]   6764.819689 s: DSS: Init ... !!!
    [MCU2_0]   6764.819719 s: DSS: Display type is DSI !!!
    [MCU2_0]   6764.819748 s: DSS: M2M Path is enabled !!!
    [MCU2_0]   6764.819775 s: DSS: SoC init ... !!!
    [MCU2_0]   6764.819802 s: SCICLIENT: Sciclient_pmSetModuleState module=152 state=2
    [MCU2_0]   6764.820034 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6764.820091 s: SCICLIENT: Sciclient_pmSetModuleState module=150 state=2
    [MCU2_0]   6764.820601 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6764.820640 s: SCICLIENT: Sciclient_pmSetModuleState module=296 state=2
    [MCU2_0]   6764.821024 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6764.821060 s: SCICLIENT: Sciclient_pmSetModuleClkParent module=152 clk=9 parent=11
    [MCU2_0]   6764.821593 s: SCICLIENT: Sciclient_pmSetModuleClkParent success
    [MCU2_0]   6764.821635 s: SCICLIENT: Sciclient_pmSetModuleClkFreq module=152 clk=9 freq=74250000
    [MCU2_0]   6764.823028 s: SCICLIENT: Sciclient_pmSetModuleClkFreq success
    [MCU2_0]   6764.823075 s: SCICLIENT: Sciclient_pmModuleClkRequest module=152 clk=9 state=2 flag=0
    [MCU2_0]   6764.823627 s: SCICLIENT: Sciclient_pmModuleClkRequest success
    [MCU2_0]   6764.823664 s: DSS: SoC init ... Done !!!
    [MCU2_0]   6764.823691 s: [ybcs-dbg]: display_type = 0x2
    [MCU2_0]   6764.823724 s: DSS: Configuring SERDES ... !!!
    [MCU2_0]   6764.823797 s: [ybcs-dbg]: baseAddr=0x2010000 nableIntr=0x0
    [MCU2_0]   6764.823862 s: [ybcs-dbg]: ownSlaverAddr: 0x71 0x0 0x0 0x0
    [MCU2_0]   6764.829370 s: [ybcs-dbg]: baseAddr=0x2010000 nableIntr=0x0
    [MCU2_0]   6764.829453 s: [ybcs-dbg]: ownSlaverAddr: 0x71 0x0 0x0 0x0
    [MCU2_0]   6765.090713 s: I2C1: Passed for address 0x2c !!!
    [MCU2_0]   6765.106172 s: I2C1: Passed for address 0x50 !!!
    [MCU2_0]   6765.286072 s: DSS: SERDES Configuration... Done !!!
    [MCU2_0]   6765.289295 s: DSS: Init ... Done !!!
    [MCU2_0]   6765.289368 s: VHWA: VPAC Init ... !!!
    [MCU2_0]   6765.289401 s: SCICLIENT: Sciclient_pmSetModuleState module=290 state=2
    [MCU2_0]   6765.289612 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6765.289657 s: VHWA: LDC Init ... !!!
    [MCU2_0]   6765.293120 s: VHWA: LDC Init ... Done !!!
    [MCU2_0]   6765.293185 s: VHWA: MSC Init ... !!!
    [MCU2_0]   6765.304607 s: VHWA: MSC Init ... Done !!!
    [MCU2_0]   6765.304673 s: VHWA: NF Init ... !!!
    [MCU2_0]   6765.306478 s: VHWA: NF Init ... Done !!!
    [MCU2_0]   6765.306540 s: VHWA: VISS Init ... !!!
    [MCU2_0]   6765.317300 s: VHWA: VISS Init ... Done !!!
    [MCU2_0]   6765.317366 s: VHWA: VPAC Init ... Done !!!
    [MCU2_0]   6765.317415 s:  VX_ZONE_INIT:Enabled
    [MCU2_0]   6765.317448 s:  VX_ZONE_ERROR:Enabled
    [MCU2_0]   6765.317477 s:  VX_ZONE_WARNING:Enabled
    [MCU2_0]   6765.318650 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target IPU1-0
    [MCU2_0]   6765.318892 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target VPAC_NF
    [MCU2_0]   6765.319129 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target VPAC_LDC1
    [MCU2_0]   6765.319352 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target VPAC_MSC1
    [MCU2_0]   6765.319577 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target VPAC_MSC2
    [MCU2_0]   6765.319892 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target VPAC_VISS1
    [MCU2_0]   6765.320182 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE1
    [MCU2_0]   6765.320444 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE2
    [MCU2_0]   6765.320694 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DISPLAY1
    [MCU2_0]   6765.320946 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DISPLAY2
    [MCU2_0]   6765.321184 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CSITX
    [MCU2_0]   6765.321453 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE3
    [MCU2_0]   6765.321702 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE4
    [MCU2_0]   6765.321961 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE5
    [MCU2_0]   6765.322235 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE6
    [MCU2_0]   6765.322496 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE7
    [MCU2_0]   6765.322745 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target CAPTURE8
    [MCU2_0]   6765.323030 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DSS_M2M1
    [MCU2_0]   6765.323279 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DSS_M2M2
    [MCU2_0]   6765.323510 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DSS_M2M3
    [MCU2_0]   6765.323727 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DSS_M2M4
    [MCU2_0]   6765.323783 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [MCU2_0]   6765.323822 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_0]   6765.343347 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_0]   6765.343411 s: CSI2RX: Init ... !!!
    [MCU2_0]   6765.343441 s: SCICLIENT: Sciclient_pmSetModuleState module=25 state=2
    [MCU2_0]   6765.343580 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6765.343622 s: SCICLIENT: Sciclient_pmSetModuleState module=26 state=2
    [MCU2_0]   6765.343768 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6765.343807 s: SCICLIENT: Sciclient_pmSetModuleState module=27 state=2
    [MCU2_0]   6765.343938 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6765.343973 s: SCICLIENT: Sciclient_pmSetModuleState module=147 state=2
    [MCU2_0]   6765.344075 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6765.344113 s: SCICLIENT: Sciclient_pmSetModuleState module=148 state=2
    [MCU2_0]   6765.344203 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   6765.345027 s: CSI2RX: Init ... Done !!!
    [MCU2_0]   6765.345105 s: ISS: Init ... !!!
    [MCU2_0]   6765.345146 s: IssSensor_Init ... Done !!!
    [MCU2_0]   6765.345233 s: vissRemoteServer_Init ... Done !!!
    [MCU2_0]   6765.345300 s: IttRemoteServer_Init ... Done !!!
    [MCU2_0]   6765.345340 s: UDMA Copy: Init ... !!!
    [MCU2_0]   6765.347177 s: UDMA Copy: Init ... Done !!!
    [MCU2_0]   6765.347281 s: APP: Init ... Done !!!
    [MCU2_0]   6765.347320 s: APP: Run ... !!!
    [MCU2_0]   6765.347346 s: IPC: Starting echo test ...
    [MCU2_0]   6765.349892 s: APP: Run ... Done !!!
    [MCU2_0]   6765.351393 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[.] C66X_1[P] C66X_2[.] C7X_1[.]
    [MCU2_0]   6765.351692 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C66X_1[P] C66X_2[.] C7X_1[.]
    [MCU2_0]   6765.351810 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[.]
    [MCU2_0]   6765.351903 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[P]
    [MCU2_1]   6752.551062 s: CIO: Init ... Done !!!
    [MCU2_1]   6752.551133 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_1]   6752.551176 s: APP: Init ... !!!
    [MCU2_1]   6752.551201 s: SCICLIENT: Init ... !!!
    [MCU2_1]   6752.551462 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [MCU2_1]   6752.551515 s: SCICLIENT: DMSC FW revision 0x16
    [MCU2_1]   6752.551550 s: SCICLIENT: DMSC FW ABI revision 3.1
    [MCU2_1]   6752.551588 s: SCICLIENT: Init ... Done !!!
    [MCU2_1]   6752.551634 s: UDMA: Init ... !!!
    [MCU2_1]   6752.553049 s: UDMA: Init ... Done !!!
    [MCU2_1]   6752.553115 s: MEM: Init ... !!!
    [MCU2_1]   6752.553158 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ da000000 of size 16777216 bytes !!!
    [MCU2_1]   6752.553235 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 3640000 of size 262144 bytes !!!
    [MCU2_1]   6752.553298 s: MEM: Init ... Done !!!
    [MCU2_1]   6752.553326 s: IPC: Init ... !!!
    [MCU2_1]   6752.553387 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_1]   6752.553436 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_1]   6764.802066 s: IPC: HLOS is ready !!!
    [MCU2_1]   6764.817501 s: IPC: Init ... Done !!!
    [MCU2_1]   6764.817574 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_1]   6764.817634 s: APP: Syncing with 5 CPUs ... Done !!!
    [MCU2_1]   6764.817675 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_1]   6764.819453 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_1]   6764.819527 s: FVID2: Init ... !!!
    [MCU2_1]   6764.819616 s: FVID2: Init ... Done !!!
    [MCU2_1]   6764.819658 s: VHWA: DMPAC: Init ... !!!
    [MCU2_1]   6764.819688 s: SCICLIENT: Sciclient_pmSetModuleState module=48 state=2
    [MCU2_1]   6764.819910 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]   6764.819957 s: SCICLIENT: Sciclient_pmSetModuleState module=305 state=2
    [MCU2_1]   6764.820504 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]   6764.820545 s: VHWA: DOF Init ... !!!
    [MCU2_1]   6764.830377 s: VHWA: DOF Init ... Done !!!
    [MCU2_1]   6764.830445 s: VHWA: SDE Init ... !!!
    [MCU2_1]   6764.833029 s: VHWA: SDE Init ... Done !!!
    [MCU2_1]   6764.833095 s: VHWA: DMPAC: Init ... Done !!!
    [MCU2_1]   6764.833148 s:  VX_ZONE_INIT:Enabled
    [MCU2_1]   6764.833184 s:  VX_ZONE_ERROR:Enabled
    [MCU2_1]   6764.833216 s:  VX_ZONE_WARNING:Enabled
    [MCU2_1]   6764.834416 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DMPAC_SDE
    [MCU2_1]   6764.834687 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target DMPAC_DOF
    [MCU2_1]   6764.834923 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:54] Added target IPU1-1
    [MCU2_1]   6764.834982 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [MCU2_1]   6764.835020 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_1]   6764.835307 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_1]   6764.835353 s: UDMA Copy: Init ... !!!
    [MCU2_1]   6764.837220 s: UDMA Copy: Init ... Done !!!
    [MCU2_1]   6764.837297 s: APP: Init ... Done !!!
    [MCU2_1]   6764.837330 s: APP: Run ... !!!
    [MCU2_1]   6764.837357 s: IPC: Starting echo test ...
    [MCU2_1]   6764.839922 s: APP: Run ... Done !!!
    [MCU2_1]   6764.841142 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[.] C7X_1[.]
    [MCU2_1]   6764.841261 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[.]
    [MCU2_1]   6764.841355 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[P]
    [MCU2_1]   6765.351357 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[P]
    [C6x_1 ]   6752.616615 s: CIO: Init ... Done !!!
    [C6x_1 ]   6752.616642 s: ### CPU Frequency = 1350000000 Hz
    [C6x_1 ]   6752.616654 s: APP: Init ... !!!
    [C6x_1 ]   6752.616663 s: SCICLIENT: Init ... !!!
    [C6x_1 ]   6752.616913 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [C6x_1 ]   6752.616931 s: SCICLIENT: DMSC FW revision 0x16
    [C6x_1 ]   6752.616942 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_1 ]   6752.616953 s: SCICLIENT: Init ... Done !!!
    [C6x_1 ]   6752.616964 s: UDMA: Init ... !!!
    [C6x_1 ]   6752.618696 s: UDMA: Init ... Done !!!
    [C6x_1 ]   6752.618722 s: MEM: Init ... !!!
    [C6x_1 ]   6752.618737 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ dc000000 of size 16777216 bytes !!!
    [C6x_1 ]   6752.618758 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_1 ]   6752.618776 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ dd000000 of size 50331648 bytes !!!
    [C6x_1 ]   6752.618794 s: MEM: Init ... Done !!!
    [C6x_1 ]   6752.618804 s: IPC: Init ... !!!
    [C6x_1 ]   6752.618829 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_1 ]   6752.618846 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_1 ]   6763.355902 s: IPC: HLOS is ready !!!
    [C6x_1 ]   6763.360552 s: IPC: Init ... Done !!!
    [C6x_1 ]   6763.360582 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_1 ]   6764.817633 s: APP: Syncing with 5 CPUs ... Done !!!
    [C6x_1 ]   6764.817651 s: REMOTE_SERVICE: Init ... !!!
    [C6x_1 ]   6764.818380 s: REMOTE_SERVICE: Init ... Done !!!
    [C6x_1 ]   6764.818419 s:  VX_ZONE_INIT:Enabled
    [C6x_1 ]   6764.818431 s:  VX_ZONE_ERROR:Enabled
    [C6x_1 ]   6764.818442 s:  VX_ZONE_WARNING:Enabled
    [C6x_1 ]   6764.819405 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [C6x_1 ]   6764.819424 s: APP: OpenVX Target kernel init ... !!!
    [C6x_1 ]   6764.819872 s: APP: OpenVX Target kernel init ... Done !!!
    [C6x_1 ]   6764.819894 s: UDMA Copy: Init ... !!!
    [C6x_1 ]   6764.824684 s: UDMA Copy: Init ... Done !!!
    [C6x_1 ]   6764.824709 s: APP: Init ... Done !!!
    [C6x_1 ]   6764.825456 s: APP: Run ... !!!
    [C6x_1 ]   6764.825471 s: IPC: Starting echo test ...
    [C6x_1 ]   6764.826587 s: APP: Run ... Done !!!
    [C6x_1 ]   6764.826993 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[s] C66X_2[x] C7X_1[P]
    [C6x_1 ]   6764.827481 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[s] C66X_2[P] C7X_1[P]
    [C6x_[   31.539421] process 'docker/tmp/qemu-check460860925/check' started with executable stack
    1 ]   6764.840899 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[s] C66X_2[P] C7X_1[P]
    [C6x_1 ]   6765.351193 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C66X_1[s] C66X_2[P] C7X_1[P]
    [C6x_2 ]   6752.705171 s: CIO: Init ... Done !!!
    [C6x_2 ]   6752.705199 s: ### CPU Frequency = 1350000000 Hz
    [C6x_2 ]   6752.705211 s: APP: Init ... !!!
    [C6x_2 ]   6752.705220 s: SCICLIENT: Init ... !!!
    [C6x_2 ]   6752.705466 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [C6x_2 ]   6752.705484 s: SCICLIENT: DMSC FW revision 0x16
    [C6x_2 ]   6752.705494 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C6x_2 ]   6752.705506 s: SCICLIENT: Init ... Done !!!
    [C6x_2 ]   6752.705517 s: UDMA: Init ... !!!
    [C6x_2 ]   6752.707264 s: UDMA: Init ... Done !!!
    [C6x_2 ]   6752.707289 s: MEM: Init ... !!!
    [C6x_2 ]   6752.707304 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ e0000000 of size 16777216 bytes !!!
    [C6x_2 ]   6752.707326 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 800000 of size 229376 bytes !!!
    [C6x_2 ]   6752.707344 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ e1000000 of size 50331648 bytes !!!
    [C6x_2 ]   6752.707363 s: MEM: Init ... Done !!!
    [C6x_2 ]   6752.707372 s: IPC: Init ... !!!
    [C6x_2 ]   6752.707399 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_2 ]   6752.707415 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_2 ]   6763.468985 s: IPC: HLOS is ready !!!
    [C6x_2 ]   6763.473605 s: IPC: Init ... Done !!!
    [C6x_2 ]   6763.473634 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_2 ]   6764.817634 s: APP: Syncing with 5 CPUs ... Done !!!
    [C6x_2 ]   6764.817651 s: REMOTE_SERVICE: Init ... !!!
    [C6x_2 ]   6764.818403 s: REMOTE_SERVICE: Init ... Done !!!
    [C6x_2 ]   6764.818445 s:  VX_ZONE_INIT:Enabled
    [C6x_2 ]   6764.818457 s:  VX_ZONE_ERROR:Enabled
    [C6x_2 ]   6764.818468 s:  VX_ZONE_WARNING:Enabled
    [C6x_2 ]   6764.819421 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [C6x_2 ]   6764.819441 s: APP: OpenVX Target kernel init ... !!!
    [C6x_2 ]   6764.819891 s: APP: OpenVX Target kernel init ... Done !!!
    [C6x_2 ]   6764.819912 s: UDMA Copy: Init ... !!!
    [C6x_2 ]   6764.824994 s: UDMA Copy: Init ... Done !!!
    [C6x_2 ]   6764.825020 s: APP: Init ... Done !!!
    [C6x_2 ]   6764.825762 s: APP: Run ... !!!
    [C6x_2 ]   6764.825777 s: IPC: Starting echo test ...
    [C6x_2 ]   6764.826989 s: APP: Run ... Done !!!
    [C6x_2 ]   6764.827478 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[s] C7X_1[.]
    [C6x_2 ]   6764.827524 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[s] C7X_1[P]
    [C6x_2 ]   6764.840925 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[P] C66X_2[s] C7X_1[P]
    [C6x_2 ]   6765.351222 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C66X_1[P] C66X_2[s] C7X_1[P]
    [C7x_1 ]   6752.932156 s: CIO: Init ... Done !!!
    [C7x_1 ]   6752.932171 s: ### CPU Frequency = 1000000000 Hz
    [C7x_1 ]   6752.932182 s: APP: Init ... !!!
    [C7x_1 ]   6752.932190 s: SCICLIENT: Init ... !!!
    [C7x_1 ]   6752.932407 s: SCICLIENT: DMSC FW version [22.1.1--v2022.01 (Terrific Llam]
    [C7x_1 ]   6752.932422 s: SCICLIENT: DMSC FW revision 0x16
    [C7x_1 ]   6752.932434 s: SCICLIENT: DMSC FW ABI revision 3.1
    [C7x_1 ]   6752.932445 s: SCICLIENT: Init ... Done !!!
    [C7x_1 ]   6752.932455 s: UDMA: Init ... !!!
    [C7x_1 ]   6752.933596 s: UDMA: Init ... Done !!!
    [C7x_1 ]   6752.933609 s: MEM: Init ... !!!
    [C7x_1 ]   6752.933620 s: MEM: Created heap (DDR_SHARED_MEM, id=0, flags=0x00000004) @ 100000000 of size 268435456 bytes !!!
    [C7x_1 ]   6752.933643 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000001) @ 70020000 of size 8159232 bytes !!!
    [C7x_1 ]   6752.933661 s: MEM: Created heap (L2_MEM, id=2, flags=0x00000001) @ 64800000 of size 458752 bytes !!!
    [C7x_1 ]   6752.933679 s: MEM: Created heap (L1_MEM, id=3, flags=0x00000001) @ 64e00000 of size 16384 bytes !!!
    [C7x_1 ]   6752.933697 s: MEM: Created heap (DDR_SCRATCH_MEM, id=4, flags=0x00000001) @ e4000000 of size 385875968 bytes !!!
    [C7x_1 ]   6752.933717 s: MEM: Init ... Done !!!
    [C7x_1 ]   6752.933725 s: IPC: Init ... !!!
    [C7x_1 ]   6752.933740 s: IPC: 6 CPUs participating in IPC !!!
    [C7x_1 ]   6752.933755 s: IPC: Waiting for HLOS to be ready ... !!!
    [C7x_1 ]   6764.117469 s: IPC: HLOS is ready !!!
    [C7x_1 ]   6764.119595 s: IPC: Init ... Done !!!
    [C7x_1 ]   6764.119610 s: APP: Syncing with 5 CPUs ... !!!
    [C7x_1 ]   6764.817635 s: APP: Syncing with 5 CPUs ... Done !!!
    [C7x_1 ]   6764.817653 s: REMOTE_SERVICE: Init ... !!!
    [C7x_1 ]   6764.817838 s: REMOTE_SERVICE: Init ... Done !!!
    [C7x_1 ]   6764.817860 s:  VX_ZONE_INIT:Enabled
    [C7x_1 ]   6764.817871 s:  VX_ZONE_ERROR:Enabled
    [C7x_1 ]   6764.817882 s:  VX_ZONE_WARNING:Enabled
    [C7x_1 ]   6764.818048 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1
    [C7x_1 ]   6764.818150 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_2
    [C7x_1 ]   6764.818249 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_3
    [C7x_1 ]   6764.818323 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_4
    [C7x_1 ]   6764.818393 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_5
    [C7x_1 ]   6764.818462 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_6
    [C7x_1 ]   6764.818551 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_7
    [C7x_1 ]   6764.818638 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:59] Added target DSP_C7-1_PRI_8
    [C7x_1 ]   6764.818660 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
    [C7x_1 ]   6764.818675 s: APP: OpenVX Target kernel init ... !!!
    [C7x_1 ]   6764.818915 s: APP: OpenVX Target kernel init ... Done !!!
    [C7x_1 ]   6764.818931 s: APP: Init ... Done !!!
    [C7x_1 ]   6764.818942 s: APP: Run ... !!!
    [C7x_1 ]   6764.818952 s: IPC: Starting echo test ...
    [C7x_1 ]   6764.819169 s: APP: Run ... Done !!!
    [C7x_1 ]   6764.826990 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[x] C7X_1[s]
    [C7x_1 ]   6764.827466 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[P] C7X_1[s]
    [C7x_1 ]   6764.840942 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[s]
    [C7x_1 ]   6765.351265 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[s]

    The log information of running run_app_single_cam.sh is as follows:

    root@j7-evm:~/app# ./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 !!!
      6843.458210 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
      6843.464515 s:  VX_ZONE_INIT:Enabled
      6843.464540 s:  VX_ZONE_ERROR:Enabled
      6843.464545 s:  VX_ZONE_WARNING:Enabled
      6843.471580 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
      6843.471782 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
    sensor_selection = [1]
    ldc_enable = [0]
    num_frames_to_run = [1000000000]
    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 = 192.168.31.165, socket port=5000!!!
      6843.481351 s: ISS: Enumerating sensors ... !!!
    [MCU2_0]   6843.533110 s: [ybcs-dbg]: MAIN_GPIO0_30 muxData: 0x50007
    [MCU2_0]   6843.533181 s: [ybcs-dbg]: MAIN_GPIO0_31 muxData: 0x50007
    [MCU2_0]   6843.533235 s: [ybcs-dbg]: WKUP_GPIO0_29 muxData: 0x50007
    [MCU2_0]   6843.533303 s: [ybcs-dbg]: WKUP_GPIO0_29 muxData: 0x50007
    [MCU2_0]   6843.583105 s: [ybcs-dbg]: baseAddr=0x2000000 nableIntr=0x0
    [MCU2_0]   6843.583173 s: [ybcs-dbg]: ownSlaverAddr: 0x48 0x29 0x0 0x0
    [MCU2_0]   6843.583239 s: [setupI2CInst]: Sensor I2C open success.
    [MCU2_0]   6843.590548 s: I2C0: Passed for address 0x10 !!!
    [MCU2_0]   6843.601308 s: I2C0: Passed for address 0x29 !!!
    [MCU2_0]   6843.611172 s: I2C0: Passed for address 0x40 !!!
    [MCU2_0]   6843.614630 s: I2C0: Passed for address 0x48 !!!
    [MCU2_0]   6843.638999 s: [ybcs-dbg] Board_fpd9296DetectDeserializer: cameras_detected = 0x8
    [MCU2_0]   6843.640208 s: MAX9296 read reg[0x320] value=0x28
    [MCU2_0]   6843.840458 s: MAX9295 read reg[0x2be] value=0x18
    [MCU2_0]   6844.040455 s: MAX9295 read reg[0x318] value=0x6c
    [MCU2_0]   6844.240525 s: AR0233C read reg[0x302a] value=0x0
    [MCU2_0]   6844.440513 s: AR0233C read reg[0x302c] value=0x701
    [MCU2_0]   6844.640513 s: AR0233C read reg[0x302e] value=0x0
    [MCU2_0]   6844.840520 s: AR0233C read reg[0x3030] value=0x8
    [MCU2_0]   6845.040520 s: AR0233C read reg[0x3036] value=0x0
    [MCU2_0]   6845.240522 s: AR0233C read reg[0x3038] value=0x0
    [MCU2_0]   6845.440517 s: AR0233C read reg[0x31dc] value=0x1fa0
    [MCU2_0]   6845.640529 s: AR0233C read reg[0x30b0] value=0x8800
    [MCU2_0]   6845.840517 s: AR0233C read reg[0x31b0] value=0x0
    [MCU2_0]   6846.040518 s: AR0233C read reg[0x31b2] value=0x0
    [MCU2_0]   6846.240518 s: AR0233C read reg[0x31b4] value=0x11c6
    [MCU2_0]   6846.440517 s: AR0233C read reg[0x31b6] value=0x2191
    [MCU2_0]   6846.640515 s: AR0233C read reg[0x31b8] value=0x6048
    [MCU2_0]   6846.840513 s: AR0233C read reg[0x31ba] value=0x187
    [MCU2_0]   6847.040520 s: AR0233C read reg[0x31bc] value=0x8986
    [MCU2_0]   6847.240516 s: AR0233C read reg[0x3342] value=0x122c
    [MCU2_0]   6847.440521 s: AR0233C read reg[0x3344] value=0x1
    [MCU2_0]   6847.640518 s: AR0233C read reg[0x3346] value=0x122c
    [MCU2_0]   6847.840514 s: AR0233C read reg[0x3348] value=0x1
    [MCU2_0]   6848.040523 s: AR0233C read reg[0x334a] value=0x122c
    [MCU2_0]   6848.240511 s: AR0233C read reg[0x334c] value=0x1
    [MCU2_0]   6848.440517 s: AR0233C read reg[0x334e] value=0x122c
    [MCU2_0]   6848.640521 s: AR0233C read reg[0x3350] value=0x1
    [MCU2_0]   6848.840522 s: AR0233C read reg[0x336e] value=0x147
    [MCU2_0]   6849.040533 s: AR0233C read reg[0x3004] value=0xa
    [MCU2_0]   6849.240518 s: AR0233C read reg[0x3008] value=0x709
    [MCU2_0]   6849.440524 s: AR0233C read reg[0x3002] value=0x0
    [MCU2_0]   6849.640520 s: AR0233C read reg[0x3006] value=0x407
    [MCU2_0]   6849.840517 s: AR0233C read reg[0x30a2] value=0x0
    [MCU2_0]   6850.040523 s: AR0233C read reg[0x30a6] value=0x0
    [MCU2_0]   6850.240511 s: AR0233C read reg[0x3402] value=0x680
    [MCU2_0]   6850.440513 s: AR0233C read reg[0x3404] value=0x418
    [MCU2_0]   6850.640517 s: AR0233C read reg[0x3040] value=0x5
    [MCU2_0]   6850.840524 s: AR0233C read reg[0x3044] value=0x0
    [MCU2_0]   6851.040521 s: AR0233C read reg[0x3082] value=0x8
    [MCU2_0]   6851.240517 s: AR0233C read reg[0x30ba] value=0x122
    [MCU2_0]   6851.440516 s: AR0233C read reg[0x33e0] value=0xf80
    [MCU2_0]   6851.640520 s: AR0233C read reg[0x3180] value=0x1000
    [MCU2_0]   6851.840515 s: AR0233C read reg[0x31d0] value=0x0
    [MCU2_0]   6852.040521 s: AR0233C read reg[0x31ae] value=0x200
    [MCU2_0]   6852.240524 s: AR0233C read reg[0x31ac] value=0x140c
    [MCU2_0]   6852.440540 s: AR0233C read reg[0x300a] value=0x814
    [MCU2_0]   6852.640518 s: AR0233C read reg[0x300c] value=0x6cc
    [MCU2_0]   6852.840519 s: AR0233C read reg[0x3012] value=0x704
    [MCU2_0]   6853.040512 s: AR0233C read reg[0x3212] value=0x40
    [MCU2_0]   6853.240522 s: AR0233C read reg[0x3216] value=0x4
    [MCU2_0]   6853.440521 s: AR0233C read reg[0x321a] value=0x1
    [MCU2_0]   6853.640516 s: AR0233C read reg[0x3238] value=0x403
    [MCU2_0]   6853.840514 s: AR0233C read reg[0x32ec] value=0x7220
    [MCU2_0]   6854.040524 s: AR0233C read reg[0x31c6] value=0x0
    [MCU2_0]   6854.240517 s: AR0233C read reg[0x301a] value=0x1c
      6854.440245 s: ISS: Enumerating sensors ... found 0 : AR0233-MAX9295_SG2
    Select camera port index 0-7 : 0
    1 registered sensor drivers
    a : AR0233-MAX9295_SG2
    Select a sensor above or press '0' to autodetect the sensor : a
    Sensor selected : AR0233-MAX9295_SG2
    LDC Selection Yes(1)/No(0) : 0
    Querying AR0233-MAX9295_SG2
      6862.869060 s: ISS: Querying sensor [AR0233-MAX9295_SG2] ... !!!
      6862.869398 s: ISS: Querying sensor [AR0233-MAX9295_SG2] ... Done !!!
      6862.869407 s: ISS: Initializing sensor [AR0233-MAX9295_SG2], doing IM_SENSOR_CMD_PWRON ... !!!
      6862.869699 s: ISS: Initializing sensor [AR0233-MAX9295_SG2], doing IM_SENSOR_CMD_CONFIG ... !!!
      6863.069601 s: ISS: Initializing sensor [AR0233-MAX9295_SG2] ... Done !!!
    read_test_image_raw : Unable to open file /opt/vision_apps/test_data/img_test.raw
    app_create_viss : sensor_dcc_id = 233
    Invalid DCC size for VISS. Disabling DCC
    Invalid DCC size for 2A. Disabling DCC
    [MCU2_0]   6863.080284 s:  VX_ZONE_WARNING:[tivxVpacVissCreate:365] VISS H3A output is not generated due to DCC not being enabled
    Scaler is enabled
    [MCU2_0]   6863.086497 s:  VX_ZONE_WARNING:[tivxAewbCreate:1050] No DCC buffer passed. Disabling 2A
      6863.098482 s: ISS: Starting sensor [AR0233-MAX9295_SG2] ... !!!
    
    
     ==========================
     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]   6863.098826 s: #################stream on camera#0#################
    [MCU2_0]   6863.109462 s: MAX9296 read reg[0x313] value=0x2
      6863.309230 s: ISS: Starting sensor [AR0233-MAX9295_SG2] ... !!!
    
    
    

    Please help us analyze the problem, thank you very much for your support!

    Regards,

    youhua liu

  • Hi Youhua Liu,

    Can you please check below?

    • Is the AR233 or Maxim SERDES outputting data at 1.5Gbps lane speed? 
    • Is AR0233 configured to output in RAW12 (0x2c) data format? 
    • Are the number of lanes from Maxim SERDES set to 0x4?
    • Please make sure to start/enable output from AR0233 and SERDES only after VerifyGraph is called. 
    Regards,
    Brijesh
  • Hi Brijesh:

    Sorry to reply you so late as the first two days are weekends

    I will answer a few questions you mentioned above:

    • The AR233 or Maxim SERDES output data at 1.18Gbps lane speed
    • The AR0233 Configure the data format of output RAW12
    • The number of lanes for Maxim SERDES is set to 0x4
    • By looking at the logs you can confirm that VerifyGraph is called before the AR0233 and SERDES outputs are started/enabled.

    root@j7-evm:~/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 !!!
        45.086988 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
        45.093105 s:  VX_ZONE_INIT:Enabled
        45.093117 s:  VX_ZONE_ERROR:Enabled
        45.093131 s:  VX_ZONE_WARNING:Enabled
        45.095364 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
        45.097159 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
    Invalid token [
    ]
    sensor_selection = [0]
    Invalid token [
    ]
    ldc_enable = [0]
    Invalid token [
    ]
    num_frames_to_run = [1000]
    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 = 192.168.31.170, socket port=5000!!!
    tivxImagingLoadKernels done
        45.108064 s: ISS: Enumerating sensors ... !!!
    [MCU2_0]     45.108272 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE
    [MCU2_0]     45.108530 s: [ybcs-dbg]: WKUP_GPIO0_29 before muxData: 0x8214007
    [MCU2_0]     45.108610 s: [ybcs-dbg]: WKUP_GPIO0_29 after muxData: 0x50007
    [MCU2_0]     45.108662 s: [ybcs-dbg]: MAIN_GPIO0_30 before muxData: 0x50007
    [MCU2_0]     45.108720 s: [ybcs-dbg]: MAIN_GPIO0_30 after muxData: 0x50007
    [MCU2_0]     45.108769 s: [ybcs-dbg]: MAIN_GPIO0_76 before muxData: 0x50007
    [MCU2_0]     45.108826 s: [ybcs-dbg]: MAIN_GPIO0_76 after muxData: 0x50007
    [MCU2_0]     45.158428 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0
    [MCU2_0]     45.208429 s: [Board_fpd9296Pwr9295]: GPIO0_76 Direction regVal = 0x1 before set.
    [MCU2_0]     45.208493 s: [Board_fpd9296Pwr9295]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]     45.208548 s: [Board_fpd9296Pwr9295]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]     45.258428 s: [Board_fpd9296PwrAR0233]: GPIO0_76 Direction regVal = 0x1 before set.
    [MCU2_0]     45.258493 s: [Board_fpd9296PwrAR0233]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]     45.258549 s: [Board_fpd9296PwrAR0233]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]     45.308427 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x1 before set.
    [MCU2_0]     45.308496 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]     45.308553 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]     45.358424 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 before set.
    [MCU2_0]     45.358488 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]     45.358560 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]     45.408442 s:
    [MCU2_0]     45.408496 s:
    [MCU2_0] Probing for 0 is in progress...
    [MCU2_0]     45.415820 s: I2C0: Passed for address 0x10 !!!
    [MCU2_0]     45.426550 s: I2C0: Passed for address 0x29 !!!
    [MCU2_0]     45.436455 s: I2C0: Passed for address 0x40 !!!
    [MCU2_0]     45.439927 s: I2C0: Passed for address 0x48 !!!
        45.463614 s: ISS: Enumerating sensors ... found 0 : AR0233-MAX9295-SG2
    Select camera port index 0-7 : 
    4
    1 registered sensor drivers
    a : AR0233-MAX9295-SG2
    Select a sensor above or press '0' to autodetect the sensor : a
    
    Sensor selected : AR0233-MAX9295-SG2
    LDC Selection Yes(1)/No(0) : 
    1
    [app_single_cam_main]: app_init done
    Querying AR0233-MAX9295-SG2
        51.461354 s: ISS: Querying sensor [AR0233-MAX9295-SG2] ... !!!
        51.461806 s: ISS: Querying sensor [AR0233-MAX9295-SG2] ... Done !!!
    WDR mode is supported
    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 = 1920
    Sensor height = 1080
    Sensor DCC ID = 233
    Sensor Supported Features = 0x178
    Sensor Enabled Features = 0x158
        51.461845 s: ISS: Initializing sensor [AR0233-MAX9295-SG2], doing IM_SENSOR_CMD_PWRON ... !!!
        51.462243 s: ISS: Initializing sensor [AR0233-MAX9295-SG2], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0]     51.461561 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY
    [MCU2_0]     51.461623 s: Received Query for AR0233-MAX9295-SG2
    [MCU2_0]     51.462021 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON
    [MCU2_0]     51.462074 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x10
    [MCU2_0]     51.462419 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG
    [MCU2_0]     51.462473 s: Application requested features = 0x158
    [MCU2_0]
    [MCU2_0]     51.462510 s: IM_SENSOR_CMD_CONFIG: channel_mask=0x10
    [MCU2_0]     51.562397 s: max9295 config start : slaveAddr = 0x40
    [MCU2_0]     51.563072 s:  End of MAX9295 config
    [MCU2_0]     51.662803 s: AR0233_Probe SUCCESS : Read expected value 0x956 at chip ID register 0x3000
    [MCU2_0]     51.662871 s: Configuring camera # 4
    [MCU2_0]     51.662903 s: AR0233_Config: chId = 0x4
    [MCU2_0]     51.662938 s: [AR0233_Config]: i2cInstId=0x0 sensorI2cAddr=0x10
    [MCU2_0]     51.662979 s: MAX9296 config start
    [MCU2_0]     51.664646 s: [max9296_cfgScript] Read dev[0x48] reg[0x320] value=0x28
    [MCU2_0]     51.666635 s: [max9296_cfgScript] Read dev[0x48] reg[0xffff] value=0x0
    [MCU2_0]     51.666675 s: End of MAX9296 config
    [MCU2_0]     51.716397 s: max9295 config start : slaveAddr = 0x40
    [MCU2_0]     51.717060 s:  End of MAX9295 config
    [MCU2_0]     51.766399 s:  Configuring AR0233 imager .. Please wait till it finishes
    [MCU2_0]     51.766686 s: [AR0233_WriteReg]: Error writing to register 0x301a value=0x58
    [MCU2_0]
    [MCU2_0]     51.766737 s:
    [MCU2_0]
    [MCU2_0]  AR0233: Sensor[0x10] Reg Write Failed for regAddr 0x301a
    [MCU2_0]
        52.242641 s: ISS: Initializing sensor [AR0233-MAX9295-SG2] ... Done !!!
    Creating graph
    Initializing params for capture node
    capture_config = 0x0xffffb03dc080
    Creating capture node
    obj->capture_node = 0x0xffffb038a980
    [MCU2_0]     52.242396 s:  AR0233 config done
    [MCU2_0]     52.242439 s: IM_SENSOR_CMD_CONFIG returning status = 0
    imgaddr_width = 1920
    imgaddr_height = 1080
    imgaddr_stride = 3840
    4147200 bytes read from /opt/vision_apps/test_data/psdkra/app_single_cam/IMX390_001/input2.raw
    app_create_viss : sensor_dcc_id = 233
    AEWB Set Reference done
    Enabling LDC
    Creating LDC
    Display Set Target done
    vxSetGraphScheduleConfig done
    Scaler is enabled
    app_create_graph exiting
    [app_single_cam_main]: app_create_graph done
    [app_run_task]: Enter app_run_graph()
    [app_run_graph] enter...
        52.386199 s: ISS: Starting sensor [AR0233-MAX9295-SG2] ... !!!
    
    
     ==========================
     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
    
    
     i: Dump sensor reg status info
    
    
     x: Exit
    
     Enter Choice: [MCU2_0]     52.386495 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON
    [MCU2_0]     52.386576 s: IM_SENSOR_CMD_STREAM_ON:  channel_mask = 0x10
        52.400842 s: ISS: Starting sensor [AR0233-MAX9295-SG2] ... !!!
    [MCU2_0]     52.396800 s: [AR0233_StreamOn] Read dev[0x10] reg[0x301a] value=0x5c
    [MCU2_0]     52.396867 s: MAX9296 config start
    [MCU2_0]     52.398648 s: [max9296_cfgScript] Read dev[0x48] reg[0x313] value=0x2
    [MCU2_0]     52.400634 s: [max9296_cfgScript] Read dev[0x48] reg[0xffff] value=0x0
    [MCU2_0]     52.400676 s: End of MAX9296 config
    

    Save the raw file after typing 's' on the command line, and the image effect is as shown in the screenshot below:

    Please pay attention to the position marked by the red arrow on the right. Only by selecting the Endianess:BE,Bits:15 parameter configuration can the image outline be displayed.

    The suspects are:

    1. There may be a problem with the data output by the deserializer max9296. How can I directly read the data output by the max9296?

    Attached is the file saved by typing 's' from the command line.

    Can you give me some help and advice?

    Thanks!

  • Hi Youhua Liu,

    Since you are able to capture some valid images, all the above points are already taken care.. These points are helpful, if you are not seeing any captured image. 

    Are you sure that the sensor and SERDES are configured to output in RAW12bit format? Can you please check?

    Also can you please share one captured raw image to analysis? 

    Regards,

    Brijesh 

  • Hi,Brijesh:

    Through communication with the camera module manufacturer FAE, FAE confirmed that the output is in RAW12 format, but I am not sure, because there is no specific description in the specification.

    I will upload the raw file first, please help to analyze and guide:

    img_0000.rar

    Thanks!

  • Hi youhua liu,

    I do see correct 12bit image. so you do are able to capture valid image. 

    Regards,

    Brijesh

  • Hi,Brijesh:

    Thanks for your support and reply!

    1. Which software tool did you use to open the RAW file?

    2. You mean to say that the image output by deserializer max9296 is in correct RAW12 format, right? Thanks!

    3. In the execution of the vx_app_single_cam.out program, the following files are saved by typing 's' on the command line: img_0000.raw, img_ldc_0000.yuv, img_msc_0000.yuv, img_viss_0000.yuv.

        Please help to analyze the img_ldc_0000.yuv, img_msc_0000.yuv, img_viss_0000.yuv files, because I cannot display the correct image after opening the files through the 7yuv software tool:

    1663.img_0000.rarimg_ldc_0000.rarimg_msc_0000.rarimg_viss_0000.rar

    Thanks!

  • Hi youhua liu,

    1. Which software tool did you use to open the RAW file?

    Irfan viewer

    2. You mean to say that the image output by deserializer max9296 is in correct RAW12 format, right? Thanks!

    Yes, output looks correct

    3. In the execution of the vx_app_single_cam.out program, the following files are saved by typing 's' on the command line: img_0000.raw, img_ldc_0000.yuv, img_msc_0000.yuv, img_viss_0000.yuv.

    I checked VISS output, it is complete blank. It looks like some gain parameter in the viss is set 0x0. Can you please review your DCC file and check different gains? 

    REgards,

    Brijesh

  • Hi,Brijesh:

    Thank you for your support and reply!

    How to configure DCC file and different parameters?

    Our target board is using the ti-processor-sdk-rtos-j721e-evm-08_02_00_05\imaging\sensor_drv\src\ar0233/dcc_xmls file without any changes. Please help to look at the attached dcc files and tell me how to modify them, thank you for your support!

    ar0233_dcc_file.rar

    Thanks!

  • Hi Youhua Liu,

    Let me check it with ISP expert, .

    Regards,

    Brijesh

  • Hi,

    It seems that the sensor is working in linear mode.

    Have you changed the single cam app to run in linear mode and have you changed anything in AR0233 sensor driver from PSDK?

    The AR0233 xml settings in PSDK are tested on TDA4 EVM with OnSemi's AR0233 MARS module.

    Best,
    Gang

  • Hi,Gang Hua:

    Thank you for your supportive reply!

    I will communicate with the sensor FAE to confirm the working mode of the sensor (linear or wdr).

    Through the log information output by run_app_single_cam, it can be clearly seen that it is in WDR mode. The log information is as follows:

    root@j7-evm:~/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 !!!
        38.565209 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
        38.571613 s:  VX_ZONE_INIT:Enabled
        38.571637 s:  VX_ZONE_ERROR:Enabled
        38.571643 s:  VX_ZONE_WARNING:Enabled
        38.573982 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
        38.575768 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
    sensor_selection = [0]
    ldc_enable = [0]
    num_frames_to_run = [1000]
    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
        38.586339 s: ISS: Enumerating sensors ... !!!
    [MCU2_0]     38.586546 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE
    [MCU2_0]     38.586795 s: [ybcs-dbg]: WKUP_GPIO0_29 before muxData: 0x8214007
    [MCU2_0]     38.586891 s: [ybcs-dbg]: WKUP_GPIO0_29 after muxData: 0x50007
    [MCU2_0]     38.586950 s: [ybcs-dbg]: MAIN_GPIO0_30 before muxData: 0x50007
    [MCU2_0]     38.587015 s: [ybcs-dbg]: MAIN_GPIO0_30 after muxData: 0x50007
    [MCU2_0]     38.587067 s: [ybcs-dbg]: MAIN_GPIO0_76 before muxData: 0x50007
    [MCU2_0]     38.587126 s: [ybcs-dbg]: MAIN_GPIO0_76 after muxData: 0x50007
    [MCU2_0]     38.636888 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0
    [MCU2_0]     38.686887 s: [Board_fpd9296Pwr9295]: GPIO0_30 Direction regVal = 0x1 before set.
    [MCU2_0]     38.686955 s: [Board_fpd9296Pwr9295]: GPIO0_30 Direction regVal = 0x0 after set.
    [MCU2_0]     38.687016 s: [Board_fpd9296Pwr9295]: GPIO0_30 Level regVal = 0x0 before set.
    [MCU2_0]     38.736887 s: [Board_fpd9296PwrAR0233]: GPIO0_29 Direction regVal = 0x1 before set.
    [MCU2_0]     38.736953 s: [Board_fpd9296PwrAR0233]: GPIO0_29 Direction regVal = 0x0 after set.
    [MCU2_0]     38.737011 s: [Board_fpd9296PwrAR0233]: GPIO0_29 Level regVal = 0x0 before set.
    [MCU2_0]     38.786887 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x1 before set.
    [MCU2_0]     38.786955 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]     38.787016 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]     38.836885 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 before set.
    [MCU2_0]     38.836952 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]     38.837009 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]     38.886908 s:
    [MCU2_0]     38.886959 s:
    [MCU2_0] Probing for 0 is in progress...
    [MCU2_0]     38.894300 s: I2C0: Passed for address 0x10 !!!
    [MCU2_0]     38.905057 s: I2C0: Passed for address 0x29 !!!
    [MCU2_0]     38.914932 s: I2C0: Passed for address 0x40 !!!
    [MCU2_0]     38.918402 s: I2C0: Passed for address 0x48 !!!
        38.942114 s: ISS: Enumerating sensors ... found 0 : AR0233-MAX9295-SG2
    Select camera port index 0-7 : 
    4
    1 registered sensor drivers
    a : AR0233-MAX9295-SG2
    Select a sensor above or press '0' to autodetect the sensor : a
    Sensor selected : AR0233-MAX9295-SG2
    LDC Selection Yes(1)/No(0) : 1
    [app_single_cam_main]: app_init done
    Querying AR0233-MAX9295-SG2
        42.331737 s: ISS: Querying sensor [AR0233-MAX9295-SG2] ... !!!
        42.332187 s: ISS: Querying sensor [AR0233-MAX9295-SG2] ... Done !!!
    WDR mode is supported
    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 = 1920
    Sensor height = 1080
    Sensor DCC ID = 233
    Sensor Supported Features = 0x178
    Sensor Enabled Features = 0x158
        42.332225 s: ISS: Initializing sensor [AR0233-MAX9295-SG2], doing IM_SENSOR_CMD_PWRON ... !!!
        42.332622 s: ISS: Initializing sensor [AR0233-MAX9295-SG2], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0]     42.331941 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY
    [MCU2_0]     42.332006 s: Received Query for AR0233-MAX9295-SG2
    [MCU2_0]     42.332397 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON
    [MCU2_0]     42.332451 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x10
    [MCU2_0]     42.332794 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG
    [MCU2_0]     42.332846 s: Application requested features = 0x158
    [MCU2_0]
    [MCU2_0]     42.332897 s: IM_SENSOR_CMD_CONFIG: channel_mask=0x10
    [MCU2_0]     42.432858 s: max9295 config start : slaveAddr = 0x40
    [MCU2_0]     42.433536 s:  End of MAX9295 config
    [MCU2_0]     42.533258 s: AR0233_Probe SUCCESS : Read expected value 0x956 at chip ID register 0x3000
    [MCU2_0]     42.533328 s: Configuring camera # 4
    [MCU2_0]     42.533364 s: AR0233_Config: chId = 0x4
    [MCU2_0]     42.533396 s: [AR0233_Config]: i2cInstId=0x0 sensorI2cAddr=0x10
    [MCU2_0]     42.533439 s: [AR0233_Config]: ISS_SENSOR_FEATURE_COMB_COMP_WDR_MODE.
    [MCU2_0]     42.533475 s: MAX9296 config start
    [MCU2_0]     42.535107 s: [max9296_cfgScript] Read dev[0x48] reg[0x320] value=0x28
    [MCU2_0]     42.537103 s: [max9296_cfgScript] Read dev[0x48] reg[0xffff] value=0x0
    [MCU2_0]     42.537147 s: End of MAX9296 config
    [MCU2_0]     42.586858 s: max9295 config start : slaveAddr = 0x40
    [MCU2_0]     42.587523 s:  End of MAX9295 config
    [MCU2_0]     42.636858 s:  Configuring AR0233 imager .. Please wait till it finishes
    [MCU2_0]     42.637148 s: [AR0233_WriteReg]: Error writing to register 0x301a value=0x58
    [MCU2_0]
    [MCU2_0]     42.637203 s:
    [MCU2_0]
    [MCU2_0]
        43.112110 s: ISS: Initializing sensor [AR0233-MAX9295-SG2] ... Done !!!
    Creating graph
    Initializing params for capture node
    capture_config = 0x0xffffa2c3c080
    Creating capture node
    obj->capture_node = 0x0xffffa2bea980
    [MCU2_0]     43.111857 s:  AR0233 config done
    [MCU2_0]     43.111903 s: IM_SENSOR_CMD_CONFIG returning status = 0
    imgaddr_width = 1920
    imgaddr_height = 1080
    imgaddr_stride = 3840
    4147200 bytes read from /opt/vision_apps/test_data/psdkra/app_single_cam/IMX390_001/input2.raw
    app_create_viss : sensor_dcc_id = 233
    AEWB Set Reference done
    Enabling LDC
    Creating LDC
    Display Set Target done
    vxSetGraphScheduleConfig done
    Scaler is enabled
    app_create_graph exiting
    [app_single_cam_main]: app_create_graph done
    [app_run_task]: Enter app_run_graph()
    [app_run_graph] enter...
        43.259043 s: ISS: Starting sensor [AR0233-MAX9295-SG2] ... !!!
    [MCU2_0]     43.259543 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON
    [MCU2_0]     43.259622 s: IM_SENSOR_CMD_STREAM_ON:  channel_mask = 0x10
        43.274319 s: ISS: Starting sensor [AR0233-MAX9295-SG2] ... !!!
    
    
     ==========================
     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
    
    
     i: Dump sensor reg status info
    
    
     x: Exit
    
     Enter Choice: 
     
    s
     
    get_dcc_dir_data : /opt/vision_apps/dcc/AR0233-MAX9295-SG2/wdr
    [MCU2_0]     43.270268 s: [AR0233_StreamOn] Read dev[0x10] reg[0x301a] value=0x5c
    [MCU2_0]     43.270338 s: MAX9296 config start
    [MCU2_0]     43.272106 s: [max9296_cfgScript] Read dev[0x48] reg[0x313] value=0x2
    [MCU2_0]     43.274102 s: [max9296_cfgScript] Read dev[0x48] reg[0xffff] value=0x0
    [MCU2_0]     43.274145 s: End of MAX9296 config
    read 30792 bytes from dcc_2a_wdr.bin
    read 2360 bytes from dcc_ldc_wdr.bin
    read 2360 bytes from dcc_ldc.bin
    read 17099 bytes from dcc_viss_wdr.bin
    read 17099 bytes from dcc_viss.bin
    read 26307 bytes from dcc_2a.bin
    
    
    RAW file name /opt/vision_apps/test_data/img_0000.raw
    in width =  1920
    in height =  1080
    in format =  1052672
    4147200 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 = 1920
    imgaddr_height = 1080
    imgaddr_stride = 1920
    width = 1920
    height = 1080
    Written 3110400 bytes
    3110400 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
    YUV file name /opt/vision_apps/test_data/img_msc_0000.yuv
    imgaddr_width = 1920
    imgaddr_height = 1080
    imgaddr_stride = 1920
    width = 1920
    height = 1080
    Written 3110400 bytes
    3110400 bytes written to /opt/vision_apps/test_data/img_msc_0000.yuv
    YUV file name /opt/vision_apps/test_data/img_ldc_0000.yuv
    imgaddr_width = 1920
    imgaddr_height = 1080
    imgaddr_stride = 1920
    width = 1920
    height = 1080
    Written 3110400 bytes
    3110400 bytes written to /opt/vision_apps/test_data/img_ldc_0000.yuv

    Thanks!

  • I don't find anything wrong from the log.

    One quick test you may do is to change "obj->aewb_cfg.awb_mode" to 2 to disable AWB.

  • Hi,Gang Hua:

    Thank you for your supportive reply!

    According to your suggestion, I changed the iss_sensor_ar0233.h file to linear mode, the image can be displayed by DSI, but the image will have ripples and jumps, please help analyze the attachment

    tda4_max92xx_ar0233_video.rarraw_yuv_pic.rar

    After executing the app_single_cam program, app_single_cam will automatically load the dcc_xxx.bin file, dcc_xxx.bin is the file ti-processor-sdk-rtos-j721e-evm-08_02_00_05/imaging/sensor_drv/src/ar0233/dcc_bins file, dcc_xxx.bin is the file inside the SDK Comes with files. Do I need to regenerate the dcc_xxx.bin file for Linear mode?

    Thanks!

  • Hi Youhua,

    The color artifacts around lights are present in the raw sensor images.

    It looks like the sensor is not configured properly in this case (supposed to be linear mode).
    If you are using TI PSDK AR0233 driver, maybe it does not match your sensor revision.
    You may confirm with Onsemi with the raw image and sensor register settings.

    If your sensor was working in WDR mode previously, I cannot tell why ISP output is black if AWB is not giving 0 gains.
    Even if your sensor settings are different from TDA4 TI PSDK + AR0233 MARS, ISP shall still give some output image.

    Best,
    Gang

  • Hi Gang Hua:

    Thank you for your supportive reply!

    As you said, there should be some problems with the sensor register configuration. I adjusted the sensor register configuration. The image is much better, but the image display will fluctuate, as shown in the attachment:

    video.rar

    Upload files saved by typing 's' from the command line:

    8308.img_0000.rar

    The following is the app_single_cam run log information:

    root@j7-evm:~/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 !!!
       260.888592 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       260.895105 s:  VX_ZONE_INIT:Enabled
       260.895136 s:  VX_ZONE_ERROR:Enabled
       260.895142 s:  VX_ZONE_WARNING:Enabled
       260.897595 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
       260.899405 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
    Invalid token [
    ]
    sensor_selection = [0]
    Invalid token [
    ]
    ldc_enable = [0]
    Invalid token [
    ]
    num_frames_to_run = [1000]
    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
       260.909967 s: ISS: Enumerating sensors ... !!!
    [MCU2_0]    260.910174 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE
    [MCU2_0]    260.910424 s: [ybcs-dbg]: WKUP_GPIO0_29 before muxData: 0x8214007
    [MCU2_0]    260.910515 s: [ybcs-dbg]: WKUP_GPIO0_29 after muxData: 0x50007
    [MCU2_0]    260.910575 s: [ybcs-dbg]: MAIN_GPIO0_30 before muxData: 0x50007
    [MCU2_0]    260.910639 s: [ybcs-dbg]: MAIN_GPIO0_30 after muxData: 0x50007
    [MCU2_0]    260.910687 s: [ybcs-dbg]: MAIN_GPIO0_76 before muxData: 0x50007
    [MCU2_0]    260.910746 s: [ybcs-dbg]: MAIN_GPIO0_76 after muxData: 0x50007
    [MCU2_0]    260.960136 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0
    [MCU2_0]    261.010136 s: [Board_fpd9296Pwr9295]: GPIO0_30 Direction regVal = 0x1 before set.
    [MCU2_0]    261.010202 s: [Board_fpd9296Pwr9295]: GPIO0_30 Direction regVal = 0x0 after set.
    [MCU2_0]    261.010262 s: [Board_fpd9296Pwr9295]: GPIO0_30 Level regVal = 0x0 before set.
    [MCU2_0]    261.060135 s: [Board_fpd9296PwrAR0233]: GPIO0_29 Direction regVal = 0x1 before set.
    [MCU2_0]    261.060201 s: [Board_fpd9296PwrAR0233]: GPIO0_29 Direction regVal = 0x0 after set.
    [MCU2_0]    261.060260 s: [Board_fpd9296PwrAR0233]: GPIO0_29 Level regVal = 0x0 before set.
    [MCU2_0]    261.110132 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x1 before set.
    [MCU2_0]    261.110198 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]    261.110256 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]    261.160136 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 before set.
    [MCU2_0]    261.160201 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Direction regVal = 0x0 after set.
    [MCU2_0]    261.160259 s: [Board_fpd9296PWDNB_Set]: GPIO0_76 Level regVal = 0x0 before set.
    [MCU2_0]    261.210157 s:
    [MCU2_0]    261.210203 s:
    [MCU2_0] Probing for 0 is in progress...
    [MCU2_0]    261.217532 s: I2C0: Passed for address 0x10 !!!
    [MCU2_0]    261.228306 s: I2C0: Passed for address 0x29 !!!
    [MCU2_0]    261.238186 s: I2C0: Passed for address 0x40 !!!
    [MCU2_0]    261.241653 s: I2C0: Passed for address 0x48 !!!
       261.265353 s: ISS: Enumerating sensors ... found 0 : AR0233-MAX9295-SG2
    Select camera port index 0-7 : [   61.563659] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
    4
    1 registered sensor drivers
    a : AR0233-MAX9295-SG2
    Select a sensor above or press '0' to autodetect the sensor : a
    Sensor selected : AR0233-MAX9295-SG2
    LDC Selection Yes(1)/No(0) : 1
    [app_single_cam_main]: app_init done
    Querying AR0233-MAX9295-SG2
       265.293620 s: ISS: Querying sensor [AR0233-MAX9295-SG2] ... !!!
       265.294069 s: ISS: Querying sensor [AR0233-MAX9295-SG2] ... 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 = 1920
    Sensor height = 1080
    Sensor DCC ID = 233
    Sensor Supported Features = 0x138
    Sensor Enabled Features = 0x138
       265.294109 s: ISS: Initializing sensor [AR0233-MAX9295-SG2], doing IM_SENSOR_CMD_PWRON ... !!!
       265.294502 s: ISS: Initializing sensor [AR0233-MAX9295-SG2], doing IM_SENSOR_CMD_CONFIG ... !!!
    [MCU2_0]    265.293821 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY
    [MCU2_0]    265.293887 s: Received Query for AR0233-MAX9295-SG2
    [MCU2_0]    265.294278 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON
    [MCU2_0]    265.294331 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x10
    [MCU2_0]    265.294668 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG
    [MCU2_0]    265.294720 s: Application requested features = 0x138
    [MCU2_0]
    [MCU2_0]    265.294759 s: IM_SENSOR_CMD_CONFIG: channel_mask=0x10
    [MCU2_0]    265.394110 s: max9295 config start : slaveAddr = 0x40
    [MCU2_0]    265.394789 s:  End of MAX9295 config
    [MCU2_0]    265.494515 s: AR0233_Probe SUCCESS : Read expected value 0x956 at chip ID register 0x3000
    [MCU2_0]    265.494583 s: Configuring camera # 4
    [MCU2_0]    265.494620 s: AR0233_Config: chId = 0x4
    [MCU2_0]    265.494653 s: [AR0233_Config]: i2cInstId=0x0 sensorI2cAddr=0x10
    [MCU2_0]    265.494695 s: [AR0233_Config]: ISS_SENSOR_FEATURE_LINEAR_MODE.
    [MCU2_0]    265.494729 s: MAX9296 config start
    [MCU2_0]    265.496348 s: [max9296_cfgScript] Read dev[0x48] reg[0x320] value=0x28
    [MCU2_0]    265.498347 s: [max9296_cfgScript] Read dev[0x48] reg[0xffff] value=0x0
    [MCU2_0]    265.498392 s: End of MAX9296 config
    [MCU2_0]    265.548108 s: max9295 config start : slaveAddr = 0x40
    [MCU2_0]    265.548771 s:  End of MAX9295 config
    [MCU2_0]    265.598111 s:  Configuring AR0233 imager .. Please wait till it finishes
    [MCU2_0]    265.600143 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x302a] value=0x6
    [MCU2_0]    265.601005 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x302a] value=0x6
    [MCU2_0]    265.603143 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x302c] value=0x701
    [MCU2_0]    265.603997 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x302c] value=0x701
    [MCU2_0]    265.606139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x302e] value=0x3
    [MCU2_0]    265.606998 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x302e] value=0x3
    [MCU2_0]    265.609140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3030] value=0x48
    [MCU2_0]    265.609999 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3030] value=0x48
    [MCU2_0]    265.612140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3036] value=0x6
    [MCU2_0]    265.613000 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3036] value=0x6
    [MCU2_0]    265.615138 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3038] value=0x2
    [MCU2_0]    265.615993 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3038] value=0x2
    [MCU2_0]    265.618139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31dc] value=0x1fa0
    [MCU2_0]    265.618996 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31dc] value=0x1fa0
    [MCU2_0]    265.621138 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x30b0] value=0x8800
    [MCU2_0]    265.621991 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x30b0] value=0x8800
    [MCU2_0]    265.624139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31b0] value=0x4a
    [MCU2_0]    265.624992 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31b0] value=0x4a
    [MCU2_0]    265.627137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31b2] value=0x28
    [MCU2_0]    265.627994 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31b2] value=0x28
    [MCU2_0]    265.630139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31b4] value=0x11c6
    [MCU2_0]    265.630995 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31b4] value=0x11c6
    [MCU2_0]    265.633145 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31b6] value=0x2191
    [MCU2_0]    265.634007 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31b6] value=0x2191
    [MCU2_0]    265.636141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31b8] value=0x6048
    [MCU2_0]    265.636998 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31b8] value=0x6048
    [MCU2_0]    265.639139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31ba] value=0x187
    [MCU2_0]    265.639992 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31ba] value=0x187
    [MCU2_0]    265.642137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31bc] value=0x8986
    [MCU2_0]    265.642990 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31bc] value=0x8986
    [MCU2_0]    265.645137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3342] value=0x122c
    [MCU2_0]    265.645999 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3342] value=0x122c
    [MCU2_0]    265.648141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3344] value=0x11
    [MCU2_0]    265.648996 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3344] value=0x11
    [MCU2_0]    265.651141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3346] value=0x122c
    [MCU2_0]    265.651999 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3346] value=0x122c
    [MCU2_0]    265.654138 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3348] value=0x11
    [MCU2_0]    265.654991 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3348] value=0x11
    [MCU2_0]    265.657140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x334a] value=0x122c
    [MCU2_0]    265.658003 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x334a] value=0x122c
    [MCU2_0]    265.660141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x334c] value=0x11
    [MCU2_0]    265.661002 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x334c] value=0x11
    [MCU2_0]    265.663140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x334e] value=0x122c
    [MCU2_0]    265.664002 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x334e] value=0x122c
    [MCU2_0]    265.666143 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3350] value=0x11
    [MCU2_0]    265.667011 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3350] value=0x11
    [MCU2_0]    265.669142 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x336e] value=0x147
    [MCU2_0]    265.669996 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x336e] value=0x147
    [MCU2_0]    265.672140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3004] value=0x4a
    [MCU2_0]    265.672994 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3004] value=0x4a
    [MCU2_0]    265.675137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3008] value=0x7c9
    [MCU2_0]    265.675989 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3008] value=0x7c9
    [MCU2_0]    265.678139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3002] value=0x68
    [MCU2_0]    265.678991 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3002] value=0x68
    [MCU2_0]    265.681142 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3006] value=0x49f
    [MCU2_0]    265.681990 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3006] value=0x49f
    [MCU2_0]    265.684137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x30a2] value=0x1
    [MCU2_0]    265.684989 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x30a2] value=0x1
    [MCU2_0]    265.687137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x30a6] value=0x1
    [MCU2_0]    265.687991 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x30a6] value=0x1
    [MCU2_0]    265.690140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3402] value=0x780
    [MCU2_0]    265.690989 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3402] value=0x780
    [MCU2_0]    265.693139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3404] value=0x438
    [MCU2_0]    265.693991 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3404] value=0x438
    [MCU2_0]    265.696138 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3040] value=0x5
    [MCU2_0]    265.696997 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3040] value=0x5
    [MCU2_0]    265.699140 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3044] value=0x400
    [MCU2_0]    265.699991 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3044] value=0x400
    [MCU2_0]    265.702145 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3082] value=0x8
    [MCU2_0]    265.703000 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3082] value=0x8
    [MCU2_0]    265.705138 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x30ba] value=0x1122
    [MCU2_0]    265.706001 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x30ba] value=0x1122
    [MCU2_0]    265.708141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x33e0] value=0xf80
    [MCU2_0]    265.708995 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x33e0] value=0xf80
    [MCU2_0]    265.711138 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3180] value=0x1081
    [MCU2_0]    265.711995 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3180] value=0x1081
    [MCU2_0]    265.714141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31d0] value=0x1
    [MCU2_0]    265.714998 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31d0] value=0x1
    [MCU2_0]    265.717139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31ae] value=0x204
    [MCU2_0]    265.717990 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31ae] value=0x204
    [MCU2_0]    265.720139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31ac] value=0x140c
    [MCU2_0]    265.720998 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31ac] value=0x140c
    [MCU2_0]    265.723139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x300a] value=0x814
    [MCU2_0]    265.723996 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x300a] value=0x814
    [MCU2_0]    265.726141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x300c] value=0x6cc
    [MCU2_0]    265.726994 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x300c] value=0x6cc
    [MCU2_0]    265.729141 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3012] value=0x704
    [MCU2_0]    265.729994 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3012] value=0x704
    [MCU2_0]    265.732139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3212] value=0x40
    [MCU2_0]    265.733002 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3212] value=0x40
    [MCU2_0]    265.735139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3216] value=0x4
    [MCU2_0]    265.736005 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3216] value=0x4
    [MCU2_0]    265.738143 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x321a] value=0x1
    [MCU2_0]    265.739005 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x321a] value=0x1
    [MCU2_0]    265.741142 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x3238] value=0x443
    [MCU2_0]    265.741994 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x3238] value=0x443
    [MCU2_0]    265.744139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x32ec] value=0x72a0
    [MCU2_0]    265.744993 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x32ec] value=0x72a0
    [MCU2_0]    265.747139 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x31c6] value=0x0
    [MCU2_0]    265.747999 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x31c6] value=0x0
    [MCU2_0]    265.750137 s: [Board_fpd9296CfgAR0233]-[AR0233C]: write reg[0x301a] value=0x1c
    [MCU2_0]    265.750990 s: [Board_fpd9296CfgAR0233]-[AR0233C]: read reg[0x301a] value=0x1c
       265.960327 s: ISS: Initializing sensor [AR0233-MAX9295-SG2] ... Done !!!
    Creating graph
    Initializing params for capture node
    capture_config = 0x0xffff90a2c080
    Creating capture node
    obj->capture_node = 0x0xffff909da980
    [MCU2_0]    265.960107 s:  AR0233 config done
    [MCU2_0]    265.960148 s: IM_SENSOR_CMD_CONFIG returning status = 0
    read_test_image_raw : Unable to open file /opt/vision_apps/test_data/.raw
    app_create_viss : sensor_dcc_id = 233
    AEWB Set Reference done
    Enabling LDC
    Creating LDC
    Display Set Target done
    vxSetGraphScheduleConfig done
    Scaler is enabled
    app_create_graph exiting
    [app_single_cam_main]: app_create_graph done
    [app_run_task]: Enter app_run_graph()
    [app_run_graph] enter...
       266.009736 s: ISS: Starting sensor [AR0233-MAX9295-SG2] ... !!!
    
    
     ==========================
     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
    
    
     i: Dump sensor reg status info
    
    
     x: Exit
    
     Enter Choice: [MCU2_0]    266.010001 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON
    [MCU2_0]    266.010080 s: IM_SENSOR_CMD_STREAM_ON:  channel_mask = 0x10
    [MCU2_0]    266.020517 s: [AR0233_StreamOn] Read dev[0x10] reg[0x301a] value=0x5c
    [MCU2_0]    266.020591 s: MAX9296 config start
    [MCU2_0]    266.022350 s: [max9296_cfgScript] Read dev[0x48] reg[0x313] value=0x2
       266.024553 s: ISS: Starting sensor [AR0233-MAX9295-SG2] ... !!!
    get_dcc_dir_data : /opt/vision_apps/dcc/AR0233-MAX9295-SG2/wdr
    read 30792 bytes from dcc_2a_wdr.bin
    read 2360 bytes from dcc_ldc_wdr.bin
    read 2360 bytes from dcc_ldc.bin
    read 17099 bytes from dcc_viss_wdr.bin
    read 17099 bytes from dcc_viss.bin
    read 26307 bytes from dcc_2a.bin
    [MCU2_0]    266.024346 s: [max9296_cfgScript] Read dev[0x48] reg[0xffff] value=0x0
    [MCU2_0]    266.024387 s: End of MAX9296 config
     i 0...
     i 1...
     i 2...
     i 3...
     i 4...
     i 5...
     i 6...
     i 7...
     i 8...
     i 9...
     i 10...
     i 11...
     i 12...
     i 13...
     i 14...
     i 15...
     i 16...
     i 17...
     i 18...
     i 19...
     i 20...
     i 21...
     i 22...
     i 23...
     i 24...
     i 25...
     i 26...
     i 27...
     i 28...
     i 29...
     i 30...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 31...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 32...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 33...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 34...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 35...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 36...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 37...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 38...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 39...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 40...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 41...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 42...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 43...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 44...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 45...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 46...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 47...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 48...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 49...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 50...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 51...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 52...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
     i 53...
    calculated checksum = 0x21d174aa vs. expected = 0x4d0a61d6
    

    Please help us analyze and guide, thanks!

  • Hi Youhua,

    The flickering seems to be around the lights.
    Please work with Onsemi for good sensor settings.

    Best,
    Gang

  • Hi, Gang Hua:

    Thank you for your support and reply!

    A few days ago, I was communicating with Onsemi FAE about the configuration of the Sensor registers.

    I am now configuring another type of camera OX03C10+MAX96717+MAX96712 on the TDA4, and I also encountered some problems, and I am still sorting out the problems.

    Thanks!

  • Yes, in that case, OVT can give you the sensor settings.