2014-06-06 03:58 PM
Hi guys , I'm facing some problem(s) while trying to get some video from the camera module included with both 4x9 EVAL boards. The demo program shows ''Error while Initializing Camera Interface''
While debugging the camera initialization ,ov2640_ReadID() returns 0x00.I've attached a logic analizer to the scl/sda pins on the module and I can clearly see the camera is not responding to anything , I've double checked the camera module address in the code and in the datasheet and they match. I've tested this behavior on two different evaluation boards so i'm not sure if it's hardware related or not.Hope someone shed some lights on this problem. #stm32f4 #eval-board2014-06-06 04:31 PM
I don't have a camera on mine, but I think you'd have to pay specific attention to jumper, solder bridge, and component modifications/settings required.
2014-06-06 05:38 PM
2014-06-06 06:27 PM
2014-06-06 11:49 PM
The eval board has a GPIOexpander that controls two signals of the camera module: Reset and powerdown.
I can make it work the following way: * reset=0, pwrdn=1 * perform ov2640 init * reset=0, pwrdn=0 * DCMI init etc ...2014-06-07 11:14 AM
Thanks guys , it did the trick.
STM32Cube_FW_F4_V1.1.0\Drivers\BSP\STM324x9I_EVAL\stm324x9i_eval_io.cuint8_t BSP_IO_Init(
void
)
{
uint8_t ret = IO_ERROR;
/* Read ID and verify the IO expander is ready */
if
(stmpe1600_io_drv.ReadID(IO_I2C_ADDRESS) == STMPE1600_ID)
{
/* Initialize the IO driver structure */
io_driver = &stmpe1600_io_drv;
ret = IO_OK;
}
if
(ret == IO_OK)
{
io_driver->Init(IO_I2C_ADDRESS);
io_driver->Start(IO_I2C_ADDRESS, IO_PIN_ALL);
io_driver->Config(IO_I2C_ADDRESS,IO_PIN_0,IO_MODE_OUTPUT);
io_driver->Config(IO_I2C_ADDRESS,IO_PIN_2,IO_MODE_OUTPUT);
io_driver->WritePin(IO_I2C_ADDRESS,IO_PIN_0,1);
io_driver->WritePin(IO_I2C_ADDRESS,IO_PIN_2,0);
}
return
ret;
}