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: Single cam application produces random pixelated image

Part Number: TDA4VM
Other Parts Discussed in Thread: TCA6408

Hello,

When trying the run_app_single_cam.sh application, after the sensor configuration and setup, the output on the eDP is a junk pixelated image. Could you help in debugging this? 

To figure out the issue, I enabled the debug prints in both the application and the sensor driver. I see there is an error when writing to a register in sensor as seen in the log. I am not sure if it has anything to do with the final output. 

I am using a AR0233 + UB953 camera

Here is the log

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 !!!

 10188.145503 s: GTC Frequency = 200 MHz

APP: Init ... Done !!!

 10188.151858 s:  VX_ZONE_INIT:Enabled

 10188.151867 s:  VX_ZONE_ERROR:Enabled

 10188.151881 s:  VX_ZONE_WARNING:Enabled

 10188.154335 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!

 10188.156325 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 = [1000000000]

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.1.1, socket port=5000!!!

tivxImagingLoadKernels done

 10188.167930 s: ISS: Enumerating sensors ... !!!

[MCU2_0]  10188.168140 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE

[MCU2_0]  10188.168405 s: write 0xfe to TCA6408 register 0x3

[MCU2_0]  10188.267543 s: UB960 config start

[MCU2_0]  10188.467809 s: End of UB960 config

[MCU2_0]  10188.467871 s: UB960 config start

 10188.668049 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3

 10188.668065 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS

 10188.668085 s: ISS: Enumerating sensors ... found 2 : AR0820-UB953_LI

 10188.668090 s: ISS: Enumerating sensors ... found 3 : UB9xxx_RAW12_TESTPATTERN

 10188.668095 s: ISS: Enumerating sensors ... found 4 : UB96x_UYVY_TESTPATTERN

 10188.668100 s: ISS: Enumerating sensors ... found 5 : GW_AR0233_UYVY

Select camera port index 0-7 : [MCU2_0]  10188.667806 s: End of UB960 config

0

Select a sensor above or press '0' to autodetect the sensor : Invalid selection

. Try again

6 registered sensor drivers

a : IMX390-UB953_D3

b : AR0233-UB953_MARS

c : AR0820-UB953_LI

d : UB9xxx_RAW12_TESTPATTERN

e : UB96x_UYVY_TESTPATTERN

f : GW_AR0233_UYVY

Select a sensor above or press '0' to autodetect the sensor : 0

[MCU2_0]  10199.139330 s: UB960 config start

[MCU2_0]  10199.142634 s: End of UB960 config

[MCU2_0]  10199.142689 s: ub953 config start : slaveAddr = 0x74

[MCU2_0]  10199.142908 s: Error writing 0x1 to UB953 register 0x1

[MCU2_0]  10199.142959 s:  UB953 Error: Reg Write Failed for regAddr 1

[MCU2_0]  10199.142992 s:  End of UB953 config

[MCU2_0]  10199.143168 s: Error : I2C Timeout while reading from IMX390 register 0x330

[MCU2_0]  10199.143210 s: IMX390 Probe : Failed to read CHIP_ID register 0x330

[MCU2_0]  10199.143387 s: UB960 config start

[MCU2_0]  10199.146635 s: End of UB960 config

[MCU2_0]  10199.246542 s: ub953 config start : slaveAddr = 0x74

[MCU2_0]  10199.246801 s: Error writing 0x2 to UB953 register 0x1

[MCU2_0]  10199.246852 s:  UB953 Error: Reg Write Failed for regAddr 1

[MCU2_0]  10199.246884 s:  End of UB953 config

Sensor selected : AR0233-UB953_MARS

LDC Selection Yes(1)/No(0) : LDC Selection Yes(1)/No(0) : [MCU2_0]  10199.347867 s: AR0233_Probe SUCCESS : Read expected value 0x95

[MCU2_0]  10199.347956 s: Found sensor AR0233-UB953_MARS at port # 0

[MCU2_0]  10199.348001 s: IM_SENSOR_CMD_DETECT : Found sensor 1 at port 0

0

app_init done

Querying AR0233-UB953_MARS

 10215.757226 s: ISS: Querying sensor [AR0233-UB953_MARS] ... !!!

 10215.757738 s: ISS: Querying sensor [AR0233-UB953_MARS] ... 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 = 1280

Sensor DCC ID = 233

Sensor Supported Features = 0x178

Sensor Enabled Features = 0x158

 10215.757777 s: ISS: Initializing sensor [AR0233-UB953_MARS], doing IM_SENSOR_CMD_PWRON ... !!!

 10215.758173 s: ISS: Initializing sensor [AR0233-UB953_MARS], doing IM_SENSOR_CMD_CONFIG ... !!!

[MCU2_0]  10215.757435 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY

[MCU2_0]  10215.757510 s: Received Query for AR0233-UB953_MARS

[MCU2_0]  10215.757950 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON

[MCU2_0]  10215.758005 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x1

[MCU2_0]  10215.758344 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG

[MCU2_0]  10215.758391 s: Application requested features = 0x158

[MCU2_0]

[MCU2_0]  10215.758434 s: UB960 config start

[MCU2_0]  10216.014636 s: End of UB960 config

[MCU2_0]  10216.014706 s: UB960 config start

[MCU2_0]  10216.270637 s: End of UB960 config

[MCU2_0]  10216.270843 s: UB960 config start

[MCU2_0]  10216.274636 s: End of UB960 config

[MCU2_0]  10216.374539 s: ub953 config start : slaveAddr = 0x74

[MCU2_0]  10216.374798 s: Error writing 0x2 to UB953 register 0x1

[MCU2_0]  10216.374853 s:  UB953 Error: Reg Write Failed for regAddr 1

[MCU2_0]  10216.374885 s:  End of UB953 config

[MCU2_0]  10216.475866 s: AR0233_Probe SUCCESS : Read expected value 0x956 at chip ID register 0x3000

[MCU2_0]  10216.475954 s: Configuring camera # 0

[MCU2_0]  10216.476136 s: UB960 config start

[MCU2_0]  10216.479634 s: End of UB960 config

 10216.530109 s: ISS: ERROR: Initializing sensor [AR0233-UB953_MARS] failed !!!

10216.530130 s: ISS: Initializing sensor [AR0233-UB953_MARS] ... Done !!!                                                         

Error initializing sensor AR0233-UB953_MARS                                                                                        

Creating graph                                                                                                                     

Initializing params for capture node                                                                                               

capture_config = 0x0xffff9ec84a10                                                                                                  

Creating capture node                                                                                                               

obj->capture_node = 0x0xffff9ec33310                                                                                               

read_test_image_raw : Unable to open file /opt/vision_apps/test_data/img_test.raw                                                   

app_create_viss : sensor_dcc_id = 233                                                                                              

[MCU2_0]  10216.529539 s: ub953 config start : slaveAddr = 0x74                                                                     

[MCU2_0]  10216.529796 s: Error writing 0x2 to UB953 register 0x1                                                                  

[MCU2_0]  10216.529850 s:  UB953 Error: Reg Write Failed for regAddr 1                                                              

[MCU2_0]  10216.529883 s:  End of UB953 config                                                                                     

[MCU2_0]  10216.529910 s: IM_SENSOR_CMD_CONFIG returning status = -1                                                                

AEWB Set Reference done                                                                                                            

Display Set Target done                                                                                                             

vxSetGraphScheduleConfig done                                                                                                      

Scaler is enabled                                                                                                                   

app_create_graph exiting                                                                                                           

app_create_graph done                                                                                                                

10216.578892 s: ISS: Starting sensor [AR0233-UB953_MARS] ... !!!                                                                  

[MCU2_0]  10216.579374 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON                                                

[MCU2_0]  10216.579455 s: IM_SENSOR_CMD_STREAM_ON:  channel_mask = 0x1                                                             

[MCU2_0]  10216.579504 s: UB960 config start                                                                                        

[MCU2_0]  10216.835651 s: End of UB960 config                                                                                      

[MCU2_0]  10216.835722 s: UB960 config start                                                                                        

[MCU2_0]  10217.091634 s: End of UB960 config                                                                                      

[MCU2_0]  10217.101541 s: UB960 config start                                                                                        

10217.117861 s: ISS: Starting sensor [AR0233-UB953_MARS] ... !!!                                                                                                                                                                                                                                                                                                                                            ==========================                                                                                                         

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:                                                                                                                      

get_dcc_dir_size : Could not open directory or directory is empty /opt/vision_apps/dcc/AR0233-UB953_MARS/wdr                       

Unsupported command                                                                           

 

 

 x: Exit

 

 Enter Choice:

get_dcc_dir_size : Could not open directory or directory is empty /opt/vision_apps/dcc/AR0233-UB953_MARS/wdr

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]  10217.117639 s: End of UB960 config

 i 0...

 i 1...

 i 2...

 i 3...

 i 4...

 i 5...

 i 6...

 i 7...

 i 8...

 i 9...

 i 10...