#define XXX_REAL_PV_WIDTH 1600//(1600)#define XXX_REAL_PV_HEIGHT 1200//(1200)输出图像的分辨率
能读到ID,但不能preview:配置极性,拔pclk线,hv线看看极性反没反或者拔掉前摄像头,看看是不是前摄像头对总线有干扰
mt_set_gpio_out这个 是设置gpio口输出高电平还是低电平
mt_set_gpio_dir设定方向,gpio是输入还是输出
reset一般都是低有效,还没遇到芯片高有效的
有些摄像头是低有效,有些高有效
pwrdown一定都要配正确,否则无法进入摄像头.
先看电压是不是配对,然后powerdown脚极性是不是对
每条线路的电压是固定的
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D2, VOL_1800/*VOL_2800*/,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_A, VOL_2800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable analog power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_D, VOL_1200,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable digital power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
if(TRUE != hwPowerOn(CAMERA_POWER_VCAM_A2, VOL_2800,mode_name))
{
PK_DBG("[CAMERA SENSOR] Fail to enable analog power\n");
//return -EIO;
goto _kdCISModulePowerOn_exit_;
}
摄像头调试指南
本文提供了摄像头调试的方法,包括解决无法预览的问题,配置极性,检查摄像头连接及电压配置等步骤。详细介绍了GPIO设置及电源开启的代码实现。
7184

被折叠的 条评论
为什么被折叠?



