This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OV7670 Camera Driver

Hi, 

I'm having some trouble getting a device pointer for the OV7670 Camera. I've ported the OV7725 driver. It appears as if the program exits the driver before setting the I2C address:

drv_data->i2c = device_get_binding(DT_INST_BUS_LABEL(0));
printk("HERE!!!!!!!!!!!!!!!!!!!\n");
if (drv_data->i2c == NULL) {
LOG_ERR("Failed to get pointer to %s device!",
DT_INST_LABEL(0));
return -EINVAL;
}
printk("HERE!!!!!!!!!!!!!!!!!!!\n");
drv_data->i2c_addr = DT_INST_REG_ADDR(0);

I'm pretty sure I'm doing something but not entirely sure where.

Parents
  • I have reviewed your changes and nothing seems to comeout as the culprit for this behavior.

    if you have "zephyr_library()" in your CMakeLists.txt file, and check if your driver is properly initialized. You can do this by starting your program in the debug mode to see if the driver exits with no errors.

Reply
  • I have reviewed your changes and nothing seems to comeout as the culprit for this behavior.

    if you have "zephyr_library()" in your CMakeLists.txt file, and check if your driver is properly initialized. You can do this by starting your program in the debug mode to see if the driver exits with no errors.

Children
No Data
Related