您好 ,当我执行./run_app_single_cam.sh,时,图像错误。
SDK_ver:TI-processor-sdk-rtos-j721e-evm-07_03_00_07
传感器:ar0233+ub953
TDA4 EVM + Fusion 应用板。(ub960)
我的传感器为 ar0233、该样本支持该传感器。 当我在传感器中读取寄存器时、值是正确的。 以下是日志:
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 !!! 246.458962 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 246.460781 s: VX_ZONE_INIT:Enabled 246.460800 s: VX_ZONE_ERROR:Enabled 246.460805 s: VX_ZONE_WARNING:Enabled 246.464439 s: VX_ZONE_INIT:[tivxInit:71] Initialization Done !!! 246.464635 s: VX_ZONE_INIT:[tivxHostInit:48] 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.10.11, socket port=5000!!! tivxImagingLoadKernels done 246.466228 s: ISS: Enumerating sensors ... !!! [MCU2_0] 246.466321 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE [MCU2_0] 246.466448 s: LXC DBG: IssSensor_DeserializerInit, 634 print [MCU2_0] 246.466548 s: UB960 config start [MCU2_0] 246.666654 s: End of UB960 config [MCU2_0] 246.666710 s: UB960 config start 246.866638 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3 246.866658 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS 246.866678 s: ISS: Enumerating sensors ... found 2 : AR0820-UB953_LI 246.866683 s: ISS: Enumerating sensors ... found 3 : UB9xxx_RAW12_TESTPATTERN 246.866687 s: ISS: Enumerating sensors ... found 4 : UB96x_UYVY_TESTPATTERN 246.866692 s: ISS: Enumerating sensors ... found 5 : GW_AR0233_UYVY Select camera port index 0-7 : [MCU2_0] 246.866494 s: End of UB960 config 1 0x6 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 : Invalid selection . Try again 0x6 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 : b Sensor selected : AR0233-UB953_MARS LDC Selection Yes(1)/No(0) : LDC Selection Yes(1)/No(0) : 1 app_init done Querying AR0233-UB953_MARS 252.989047 s: ISS: Querying sensor [AR0233-UB953_MARS] ... !!! 252.989297 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 252.989334 s: ISS: Initializing sensor [AR0233-UB953_MARS], doing IM_SENSOR_CMD_PWRON ... !!! 252.990221 s: ISS: Initializing sensor [AR0233-UB953_MARS], doing IM_SENSOR_CMD_CONFIG ... !!! [MCU2_0] 252.989142 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY [MCU2_0] 252.989209 s: Received Query for AR0233-UB953_MARS [MCU2_0] 252.989409 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON [MCU2_0] 252.989463 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x2 [MCU2_0] 252.989533 s: LXC DBG: AR0233_PowerOn, 429 print [MCU2_0] 252.989575 s: LXC DBG: AR0233_Debug, 795 print [MCU2_0] 252.989683 s: AR0233 Debug Reg 0 : FRAME_COUNT2, Addr 0x2000, Value 0xabcd [MCU2_0] 252.989723 s: AR0233 Debug status = -1 [MCU2_0] 252.989821 s: AR0233 Debug Reg 1 : FRAME_COUNT, Addr 0x2002, Value 0xabcd [MCU2_0] 252.989858 s: AR0233 Debug status = -1 [MCU2_0] 252.989951 s: AR0233 Debug Reg 2 : FRAME_STATUS, Addr 0x2008, Value 0xabcd [MCU2_0] 252.989985 s: AR0233 Debug status = -1 [MCU2_0] 252.990075 s: AR0233 Debug Reg 3 : CHIP_VERSION_REG, Addr 0x3000, Value 0xabcd [MCU2_0] 252.990113 s: AR0233 Debug status = -1 [MCU2_0] 252.990154 s: LXC DBG: AR0233_Debug, 814 print , status = -1 [MCU2_0] 252.990289 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG [MCU2_0] 252.990347 s: Application requested features = 0x158 [MCU2_0] [MCU2_0] 252.990403 s: UB960 config start [MCU2_0] 253.246473 s: End of UB960 config [MCU2_0] 253.246531 s: UB960 config start [MCU2_0] 253.502423 s: End of UB960 config [MCU2_0] 253.502477 s: Configuring camera # 1 [MCU2_0] 253.502536 s: LXC DBG: AR0233_Config, 274 print [MCU2_0] 253.502701 s: UB960 config start [MCU2_0] 253.506474 s: End of UB960 config [MCU2_0] 253.556384 s: ub953 config start : slaveAddr = 0x76 [MCU2_0] 254.561478 s: End of UB953 config [MCU2_0] 254.611383 s: Configuring AR0233 imager .. Please wait till it finishes 255.591614 s: ISS: Initializing sensor [AR0233-UB953_MARS] ... Done !!! Creating graph Initializing params for capture node Initializing params for capture node capture_config = 0x0x6e0410 Creating capture node obj->capture_node = 0x0x69ad10 read_test_image_raw : Unable to open file /opt/vision_apps/test_data/img_test.raw app_create_viss : sensor_dcc_id = 233 AEWB Set Reference done Enabling LDC Creating LDC [MCU2_0] 255.591381 s: AR0233 config done [MCU2_0] 255.591471 s: LXC DBG: AR0233_Config, 367 print , status = 0 [MCU2_0] 255.591507 s: IM_SENSOR_CMD_CONFIG returning status = 0 Display Set Target done vxSetGraphScheduleConfig done Scaler is disabled app_create_graph exiting app_create_graph done ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: Unsupported command ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: 255.629466 s: ISS: Starting sensor [AR0233-UB953_MARS] ... !!! [MCU2_0] 255.629582 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON [MCU2_0] 255.629654 s: IM_SENSOR_CMD_STREAM_ON: channel_mask = 0x2 [MCU2_0] 255.629689 s: UB960 config start [MCU2_0] 255.885472 s: End of UB960 config [MCU2_0] 255.885533 s: UB960 config start [MCU2_0] 256.141427 s: End of UB960 config [MCU2_0] 256.141516 s: LXC DBG: AR0233_StreamOn, 377 print [MCU2_0] 256.141560 s: LXC DBG: AR0233_Debug, 795 print [MCU2_0] 256.142870 s: AR0233 Debug Reg 0 : FRAME_COUNT2, Addr 0x2000, Value 0xffff [MCU2_0] 256.142921 s: AR0233 Debug status = 0 [MCU2_0] 256.144224 s: AR0233 Debug Reg 1 : FRAME_COUNT, Addr 0x2002, Value 0xffff [MCU2_0] 256.144268 s: AR0233 Debug status = 0 [MCU2_0] 256.145570 s: AR0233 Debug Reg 2 : FRAME_STATUS, Addr 0x2008, Value 0x2 [MCU2_0] 256.145610 s: AR0233 Debug status = 0 [MCU2_0] 256.146911 s: AR0233 Debug Reg 3 : CHIP_VERSION_REG, Addr 0x3000, Value 0x956 [MCU2_0] 256.146954 s: AR0233 Debug status = 0 [MCU2_0] 256.147001 s: LXC DBG: AR0233_Debug, 814 print , status = 0 [MCU2_0] 256.157382 s: UB960 config start 256.173664 s: ISS: Starting sensor [AR0233-UB953_MARS] ... !!! [MCU2_0] 256.173477 s: End of UB960 config [MCU2_0] 256.173553 s: LXC DBG: AR0233_StreamOn, 395 print , status = 0 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: s RAW file name /opt/vision_apps/test_data/img_0000.raw in width = 1920 in height = 1280 in format = 1052672 4915200 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 = 1280 imgaddr_stride = 1920 width = 1920 height = 1280 Written 3686400 bytes 3686400 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_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 ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: Unsupported command ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: s RAW file name /opt/vision_apps/test_data/img_0001.raw in width = 1920 in height = 1280 in format = 1052672 4915200 bytes written to /opt/vision_apps/test_data/img_0001.raw YUV file name /opt/vision_apps/test_data/img_viss_0001.yuv imgaddr_width = 1920 imgaddr_height = 1280 imgaddr_stride = 1920 width = 1920 height = 1280 Written 3686400 bytes 3686400 bytes written to /opt/vision_apps/test_data/img_viss_0001.yuv H3A file name /opt/vision_apps/test_data/h3a_0001.bin 24576 bytes saved from H3A output buffer YUV file name /opt/vision_apps/test_data/img_ldc_0001.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_0001.yuv ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: Unsupported command ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: s RAW file name /opt/vision_apps/test_data/img_0002.raw in width = 1920 in height = 1280 in format = 1052672 4915200 bytes written to /opt/vision_apps/test_data/img_0002.raw YUV file name /opt/vision_apps/test_data/img_viss_0002.yuv imgaddr_width = 1920 imgaddr_height = 1280 imgaddr_stride = 1920 width = 1920 height = 1280 Written 3686400 bytes 3686400 bytes written to /opt/vision_apps/test_data/img_viss_0002.yuv H3A file name /opt/vision_apps/test_data/h3a_0002.bin 24576 bytes saved from H3A output buffer YUV file name /opt/vision_apps/test_data/img_ldc_0002.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_0002.yuv ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: Unsupported command ========================== Demo : Single Camera w/ 2A ========================== p: Print performance statistics s: Save Sensor RAW, VISS Output and H3A output images to File System e: Export performance statistics u: Update DCC from File System x: Exit Enter Choice: ^C Clean up and exit while handling signal 2 Application did not close some rpmsg_char devices root@j7-evm:/opt/vision_apps# [MCU2_0] 315.860488 s: DHCP client timed out. Retrying..... [MCU2_0] 483.860492 s: DHCP client timed out. Retrying....


