OV9716,初始化异常
-
芯片的上电没有错,MCLK,RESET,I2C均用示波器捕获过是正常的。
问题可能存在哪?Module Size Used by vin_v4l2 181099 0 ov9716_mipi 12523 0 vin_io 21170 3 vin_v4l2,ov9716_mipi videobuf2_v4l2 9304 1 vin_v4l2 videobuf2_dma_contig 8632 1 vin_v4l2 videobuf2_memops 948 1 videobuf2_dma_contig videobuf2_core 22168 2 vin_v4l2,videobuf2_v4l2 xradio_wlan 598 0 xradio_core 431911 1 xradio_wlan xradio_mac 222724 1 xradio_core root@TinaLinux:/# [ 58.985741] random: crng init done [ 58.989561] random: 2 urandom warning(s) missed due to ratelimiting root@TinaLinux:/# root@TinaLinux:/# camerademo NV21 1280 720 30 bmp /tmp 5 [CAMERA]********************************************************** [CAMERA]* * [CAMERA]* this is camera test. * [CAMERA]* * [CAMERA]********************************************************** [CAMERA]********************************************************** [CAMERA] open /dev/video0! [CAMERA]********************************************************** [CAMERA]********************************************************** [CAMERA] The path to data saving is /tmp. [CAMERA] The number of captured photos is 5. [CAMERA] save bmp format [ 69.569090] [VIN_ERR]vin is not support this pixelformat [ 69.575169] [VIN_ERR]vin is not support this pixelformat [ 69.581453] [VIN_ERR]vin is not support this pixelformat [ 69.587529] [VIN_ERR]vin is not support this pixelformat [ 69.593810] [VIN_ERR]vin is not support this pixelformat [ 69.599971] [VIN_ERR]vin is not support this pixelformat [ 69.606120] [VIN_ERR]vin is not support this pixelformat [ 69.612266] [VIN_ERR]vin is not support this pixelformat [ 69.618439] [VIN_ERR]vin is not support this pixelformat [ 69.624510] [VIN_ERR]vin is not support this pixelformat [ 69.630701] [VIN_ERR]vin is not support this pixelformat [ 69.636773] [VIN_ERR]vin is not support this pixelformat [CAMERA]********************************************************** [CAMERA] Using format parame[ 69.649355] sunxi_i2c_do_xfer()1974 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x36) ters NV21. [CAMERA] camera pixe[ 69.660842] [VIN_DEV_I2C_ERR]sensor_write error! lformat: NV21 [CAMERA] Resoluti[ 69.668736] [VIN_DEV_I2C_ERR]ov9716_mipi sensor write array Error, array_size 1701! on size : 1280 * 720 [CAMERA] The photo save path is /tmp. [CAMERA] The number of photos taken is 5. begin ion_alloc_open pid: 1117, g_alloc_context = 0x2ecd0 [CAMERA] Camera capture framerate is 30/1 [CAMERA] VIDIOC_S_FMT succeed [CAMERA] fmt.type = 9 [CAMERA] fmt.fmt.pix_mp.width = 1280 [CAMERA] fmt.fmt.pix_mp.height = 720 [CAMERA] fmt.fmt.pix_mp.pixelformat = NV21 [CAMERA] fmt.fmt.pix_mp.field = 1 [CAMERA] stream on succeed [CAMERA] camera0 capture num is [0] [ 71.647763] [VIN_WARN]Video0 over 2s no frame received!!![CAMERA_ERR] camera0 select timeout,end capture thread! [CAMERA] Capture thread finish [CAMERA] close /dev/video0 [CAMERA_ERR] capture_photo return error root@TinaLinux:/#
-
@zznzzn 看一下驱动[VIN_DEV_I2C_ERR]ov9716_mipi sensor write array Error, array_size 1701!,这里为什么会出现这种写入数组的错误,由于写入数据失败了,导致后面获取不到数据
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号