Part Number: SK-TDA4VM
Hi,
I am trying to do ISP tuning for imx415 camera on SK-TDA4VM. Before that we just want to check test pattern from UB960.
So we used vx_app_single_cam.out to check test pattern of UB960 deserializer, but it gives us I2C write failed issue, We enabled log message in RTOS and trying to get details for the failure. The log is given below.
root@tda4vm-sk:/opt/vision_apps# ./vx_app_single_cam.out 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 !!! 142.542233 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 142.547303 s: VX_ZONE_INIT:Enabled 142.547327 s: VX_ZONE_ERROR:Enabled 142.547333 s: VX_ZONE_WARNING:Enabled 142.548232 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!! 142.550476 s: VX_ZONE_INIT:[tivxHostInitLocal:93] Initialization Done for HOST !!! Single Camera Demo - (c) Texas Instruments 2019 ======================================================== Usage, ./vx_app_single_cam.out --cfg <config file> Defaulting to interactive mode 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.5.102, socket port=5000!!! 142.564186 s: ISS: Enumerating sensors ... !!! [MCU2_0] 142.564452 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_ENUMERATE [MCU2_0] 146.231748 s: Fusion1 Board configuration [MCU2_0] 182.220716 s: Error writing to TCA6408 register 0x3 [MCU2_0] 182.420436 s: RE-SETTING FUSION2 DE-SER !!!!!! [MCU2_0] 182.420536 s: rawtestpat_PowerOn Error : initFusion2_UB97x returned 0xffffffff [MCU2_0] 182.420583 s: [MCU2_0] 182.420605 s: [MCU2_0] 182.420625 s: Entered ub960 cfg script [MCU2_0] 182.420651 s: [MCU2_0] 182.420669 s: [MCU2_0] 182.420700 s: UB960 i2c address check: 30 [MCU2_0] 182.420727 s: UB960 config start [MCU2_0] 182.420767 s: reg addr = 1, reg value = 2 [MCU2_0] 200.327654 s: Error writing 0x2 to UB960 register 0x1 [MCU2_0] 200.327720 s: UB960 Error: Reg Write Failed for regAddr 1, cnt = 0 [MCU2_0] 200.327756 s: End of UB960 config [MCU2_0] 200.327798 s: Error : ub960_cfgScript returned -1 while configuring DES 0 [MCU2_0] 200.327834 s: [MCU2_0] 200.327853 s: [MCU2_0] 200.327871 s: Entered ub960 cfg script [MCU2_0] 200.327895 s: [MCU2_0] 200.327913 s: [MCU2_0] 200.327942 s: UB960 i2c address check: 36 [MCU2_0] 200.327968 s: UB960 config start [MCU2_0] 200.328006 s: reg addr = 1, reg value = 2 218.234431 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3 218.234466 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS 218.234488 s: ISS: Enumerating sensors ... found 2 : AR0820-UB953_LI 218.234493 s: ISS: Enumerating sensors ... found 3 : UB9xxx_RAW12_TESTPATTERN 218.234498 s: ISS: Enumerating sensors ... found 4 : UB96x_UYVY_TESTPATTERN 218.234504 s: ISS: Enumerating sensors ... found 5 : GW_AR0233_UYVY Select camera port index 0-11 : [MCU2_0] 218.234071 s: Error writing 0x2 to UB960 register 0x1 [MCU2_0] 218.234136 s: UB960 Error: Reg Write Failed for regAddr 1, cnt = 0 [MCU2_0] 218.234172 s: End of UB960 config [MCU2_0] 218.234213 s: Error : returned -1 while configuring DES 1 4 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
Finally we found out by probing i2c line that deserializer is not receiving any message. That line inactive actually.
To check the i2c device we removed vision apps dtb and probed the i2c line again there we can see activity in that i2c line, likewise we can see the i2c address of deserializer in I2C8 from i2cdetect command.
We know when we run vision apps, I2C6 instance is assigned to R5F and controlled from R5F. But there is no activity in that I2C line.
we found out that I2C8 of Linux is I2C6 of RTOS. But there is no activity in that i2c line while using vision apps. Could You please help us with the issue?
RTOS OS Version: 08.06.00.12
