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

Errror linking Omnivision video driver

Hi, 

I'm new to nRF/Zephyr development and trying to integrate the OV7670 camera with the nRF52840 board. Since there was no driver for this particular camera I ported the one available for OV7725 in the Zephyr SDK. As far as I know I've adjusted all the kconfig files correctly and I've set  CONFIG_VIDEO_OV7670=y in the prj.conf file. The driver seems to be getting compiled when performing west build but I get the following error when building main.c "src/main.c:90: undefined reference to `ov7670_init_0'". I have added the #include <drivers/video.h> so I'm not sure why I'm getting this error. Have I missed a configuration setting?

Parents
  • Hi,

    Which sample/application are you trying to access the driver from?

    Could you list all the files you edited/added? Have you edited the Kconfig and CMakeLists files correctly? Have you enabled the device in the devicetree correctly, for example using an overlay file? Have you added a .yaml file to the bindings

    This can be a little complicated if you are new to zephyr drivers, so let me know if there is anything you need help with.

  • I have a basic application to initiate the camera. I've added a file Kconfig.ov7670 and added 'source "drivers/video/Kconfig.ov7670"' to the Kconfig file. In CMakeLists.txt I've added 'zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7670 ov7670.c)'. I've also created an overlay file for the camera. I haven't added a .yaml file, there's just the sample.yaml.

Reply
  • I have a basic application to initiate the camera. I've added a file Kconfig.ov7670 and added 'source "drivers/video/Kconfig.ov7670"' to the Kconfig file. In CMakeLists.txt I've added 'zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7670 ov7670.c)'. I've also created an overlay file for the camera. I haven't added a .yaml file, there's just the sample.yaml.

Children
Related