谁调过ov5640的af
时间:10-02
整理:3721RD
点击:
在调试ov5640的af时报错
[FM50AF] I2C send failed!
[ 99.069587] [FM50AF] set I2C failed when moving the motor
[ 99.095763] [OV5640_set_shutter] OV5640_exposure_lines=1513,frame_length=1517
[ 99.097585] [OV5640_set_gain] analog_gain=296, Reg=4a
[ 99.098963] i2c i2c-1: I2C_ACKERR
[ 99.099370] i2c i2c-1: addr: 0c, transfer error
[ 99.099956] i2c i2c-1: I2C structure:
[ 99.099960] Mode_ch1 0
[ 99.099964] St_rs 0
[ 99.099966] Op 1
[ 99.099969] Trans_len 2
[ 99.099972] Trans_num 1
[ 99.099975] Trans_auxlen 0
[ 99.099978] Data_size ffff
[ 99.099981] Irq_stat 3
[ 99.099983] Trans_stop 1
[ 99.099986] Trans_comp 1
[ 99.099989] Trans_error 2
[ 99.103744] i2c i2c-1: I2C register:
[ 99.103748] SLAVE_ADDR 18
[ 99.103751] INTR_MASK f8
[ 99.103753] INTR_STAT 0
[ 99.103756] CONTROL 28
[ 99.103759] TRANSFER_LEN 2
[ 99.103762] TRANSAC_LEN 1
[ 99.103765] DELAY_LEN 2
[ 99.103768] TIMING 103b
[ 99.103771] START 0
[ 99.103773] FIFO_STAT 1210
[ 99.103776] IO_CONFIG 0
[ 99.103779] HS 102
[ 99.103782] DEBUGSTAT 40
[ 99.108230] i2c i2c-1: power register:
[ 99.108235] CG 57bed7ff
[ 99.108993] i2c i2c-1: [MT6575_i2c_start_xfer] SOFTRESET mt6575-i2c:base(f1013000)
怎么解决
[FM50AF] I2C send failed!
[ 99.069587] [FM50AF] set I2C failed when moving the motor
[ 99.095763] [OV5640_set_shutter] OV5640_exposure_lines=1513,frame_length=1517
[ 99.097585] [OV5640_set_gain] analog_gain=296, Reg=4a
[ 99.098963] i2c i2c-1: I2C_ACKERR
[ 99.099370] i2c i2c-1: addr: 0c, transfer error
[ 99.099956] i2c i2c-1: I2C structure:
[ 99.099960] Mode_ch1 0
[ 99.099964] St_rs 0
[ 99.099966] Op 1
[ 99.099969] Trans_len 2
[ 99.099972] Trans_num 1
[ 99.099975] Trans_auxlen 0
[ 99.099978] Data_size ffff
[ 99.099981] Irq_stat 3
[ 99.099983] Trans_stop 1
[ 99.099986] Trans_comp 1
[ 99.099989] Trans_error 2
[ 99.103744] i2c i2c-1: I2C register:
[ 99.103748] SLAVE_ADDR 18
[ 99.103751] INTR_MASK f8
[ 99.103753] INTR_STAT 0
[ 99.103756] CONTROL 28
[ 99.103759] TRANSFER_LEN 2
[ 99.103762] TRANSAC_LEN 1
[ 99.103765] DELAY_LEN 2
[ 99.103768] TIMING 103b
[ 99.103771] START 0
[ 99.103773] FIFO_STAT 1210
[ 99.103776] IO_CONFIG 0
[ 99.103779] HS 102
[ 99.103782] DEBUGSTAT 40
[ 99.108230] i2c i2c-1: power register:
[ 99.108235] CG 57bed7ff
[ 99.108993] i2c i2c-1: [MT6575_i2c_start_xfer] SOFTRESET mt6575-i2c:base(f1013000)
怎么解决
我也想知道
len选错,5640 code里面已经有AF的驱动了
那应该选 sensordrive 方式吗?
你这是用的YUV的还是RAW DATA的。
我用的是YUV的方式
我用的是RAW DATA
用YUV就选sensordrive就好了
用raw data就得自己加了lens了。一般经过fm50af修改一下就行。
你把0x18改成0x78
fm50af.c里的#define FM50AF_VCM_WRITE_ID 0x18
这个吗
我用yuv格式的选sensordrive怎么没af功能
自己加lens要加哪几个文件