This is the documentation for the latest (main) development branch of HPM SDK. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

6.3. CAM

6.3.1. Overview

The cam example shows how to use cam interface to get the image collected by the camera device and display in LCD.

6.3.2. Board Setting

  1. Connect camera device to the CAM interface on the board

  2. Connect LCD to the LCD interface on the board

6.3.3. Project Setting

For this example, user should set used camera device module in CMakeList.txt

  1. if use ov7725 camera device, configure set(CONFIG_CAMERA "ov7725") in CMakeList.txt

  2. if use ov5640 camera device, configure set(CONFIG_CAMERA "ov5640") in CMakeList.txt

6.3.4. Note

When using ov5640 camera, the ram and flash_xip target is not supported since ov5640 framebuffer is too large, please use flash_sdram_xip target.

6.3.5. Running the example

When the example runs successfully, LCD will display the camera device collected image and the following message is displayed in the terminal:

> cam example