Welcome to Embedded Vision ST documentation

Version:1.00D
Copyright:(C)2016 Avnet Silica company
Date:18 Oct 2016
Reference name:EV-STM32F7CAM-DVK

Embedded Vision ST

_images/logo.jpg _images/boards.jpg

Embedded Vision STM32F7 Camera TD7740 Development Kit

Note

Visit www.avnet-silica.com/embedded-vision to buy this development kit

Warning

The color of the adapter board in the kit can be different than the color on the images in the Quick Start Guide and Developing Guide. However this does not affect the functionality of the board

INTRODUCTION

This Development Kit is a cost effective and flexible tool for video applications with the STM32 Cortex M7 MCU. TD next miniature camera modules interface with the STM32F7 for high quality VGA or lower resolution video. The solution is a full development tool with examples to simplify development and to create your own application.

_images/stm32f746g-disco.jpg

The Embedded Vision STM32F7 Camera Development Kit includes:

  • STMicroelectronics STM32F746 Discovery kit
  • TD next TD7740 adapter board
  • TD next TD7740-FBAC VGA camera module
  • USB mini cable
  • Flexible flat cable
  • Quick Reference Card

The TD7740 Image sensor is based on Omnisvision 1/5” OV7740 CMOS VGA sensor.

_images/td7740.jpg
  • Solderless module: Camera Socket (SMK compatible) or Flex connector (FPC: Flat Pack Connector) 8 x 8 mm module mate on standard Camera Module Socket
  • Active Image size VGA (640x480) 30 fps, and smaller
  • Digital RGB 8/10 bits or YUV 8 bits output
  • Lens Focal length 1.3 mm Field of view from H=66° to 128°
  • Pixel size 4.2µm x 4.2µm
  • Type of filter; dual filter for daylight and night vision, single filter for daylight vision, no filter for higher image quality
  • Power supply Analog: 3 to 3.6 V I/O: 1.7 to 3.47 V Core: 1.5V +-5% (internal regulator)
  • Typical power requirements Active: 48 mA Standby: 20 µA Core: 1.5V +-5% (internal regulator)
  • Operating range -30°/70°C stable image 0°/50°C

Development tools

ST releases the System Workbench for STM32 including support for the STM32F746 Discovery kit. Based on free, open-source software including Eclipse, GNU Compiler Collection (GCC), GNU Debugger (GDB), and others, the Kinetis Design Studio IDE offers designers a simple development tool with no code-size limitations.

Contents:

Quick Start Guide

This guide will show you how to run the demo. This demo allows you to immediately try the TD7740 camera. This guide is written using Windows Operating System.

Hardware necessary
  • TDNx016 Board
  • TD7740 camera
  • STM32F746G-DISCO board
  • 1 mini-USB cable
  • PC with Windows
Launching the Demo

The EV-STM32F7CAM-DVK is already programmed with the demo. All you need to do is to assemble and supply power.

  1. Plug the TD7740 camera to the TDx016 adapter board:
_images/TDx016.jpg
  1. Connect the adapter board to the Camera Connector of the STM32F746G-DISCO board via FFC cable:
_images/connections.jpg
  1. Plug in the USB Mini cable from the PC to the CN14 connector of the board
_images/power_demo.jpg
  1. The demo will automatically start
_images/start_demo.jpg
  1. Press the User Button to see the streaming video from the camera
_images/user_button.jpg
  1. The display is touch screen and by touching it in different ways you can interact with the demo
_images/streaming_camera.jpg
  • Press the screen with three fingers to change resolution.
  • Press the screen with two fingers to change the effect.
  • Press the screen with one finger on the right or left of the screen to raise/decrease the brightness.
  • Press the screen with one finger on the top or bottom of the screen to raise/decrease the contrast.
Update the Demo

If the board is not programmed with the demo firmware you can upload it by yourself.

  1. Download accepting the agreement of the stsw-link009 USB driver from the ST website
_images/get_link009.jpg

Note

In order to get the software it is necessary to have an account on my.st.com website. You can create it here

  1. Extract and install the driver launching dpinst_amd64.exe if you have Windows 64-bit or dpinst_x86.exe if your Windows is 32-bit. If you don’t know it just go in Control Panel -> System to check the version or if you have Windows 10 go to Settings -> System -> About.
  2. During the installation accept all the permission requests.
  3. Download accepting the agreement of the stsw-link004 STM32 ST-LINK utility from the ST website
_images/get_link004.jpg
  1. Extract and launch the installer. During the installation accept all the permission requests.

Now your Windows is configurated to upload the firmware of the STM32F746G-DISCO board

  1. Download the firmware Demo from Avnet Silica website
  2. Plug in the USB Mini cable from the PC to the CN14 connector of the board
_images/power_demo.jpg
  1. If all is ok the board will be mounted as a mass storage
_images/masstorage.jpg
  1. Launch the STM32 ST-LINK Utility, you can find it going to Windows menu start->All Programs->stmicroelectronics
  2. Click on the connect to the target icon on the toolbar
_images/connect_target.jpg
  1. Once it is connected click on the program verify icon on the toolbar
_images/program_target.jpg
  1. From the window click on the Browse button and find the STM32746G_DISCOVERY.bin file.
_images/download_window_browse.jpg
  1. Check that the options are right
_images/download_window_options.jpg
  1. Click on the Start button to upload the firmware in the board
_images/download_window_start.jpg
  1. After programming the demo will start automatically
_images/start_demo.jpg

Developing Guide

This guide will provide instructions to install the development environment needed to compile and debug the demo firmware for the STM32F746G-DISCO board. This guide is written using Windows.

The main steps will be:

  • Install stsw-link009 USB driver
  • Install System Workbench for STM32
  • Download & Install the project
  • Import & build
  • Debug
Install stsw-link009 USB driver
  1. Download accepting the agreement of the stsw-link009 USB driver from the ST website
_images/get_link009.jpg

Note

In order to get the software it is necessary have an account on my.st.com website. You can create it here

  1. Extract and install the driver launching dpinst_amd64.exe if you have Windows 64-bit or dpinst_x86.exe if your Windows is 32-bit. If you don’t know it just go in Control Panel -> System to check the version or if you have Windows 10 go to Settings -> System -> About.
  2. During the installation accept all the persmission requests.
Install System Workbench for STM32
  1. The ST System Workbench requires Java Runtime Environment. If you don’t yet have it installed on your system please follow the next steps otherwise go to the step 5

2. Download the JavaSE JRE. Minimal version: JavaSE 1.7.0_45. You can find it here. We suggest to use the offline version.

_images/JavaSE_1.jpg
  1. Accept the license agreement and download the installation file, Windows x86 for 32-bit system or Windows x64 for 64-bit system. If you don’t know it just go in Control Panel -> System to check the version or if you have Windows 10 go to Settings -> System -> About.
_images/JavaSE_2.jpg
  1. Launch the installation file and follow all the default options.

5. Download the ST System Workbench from its website http://www.openstm32.org. There are two versions, 32-bit or 64-bit. It depends what kind of version your windows is. If you don’t know, just go in Control Panel -> System to check the version.

Note

In order to get the software it is necessary have an account on the openstm32 website. You can do it from here.

_images/dowload_st_sdk.jpg
  1. Launch the installer, accept the terms and install it. We have used this path:
_images/STM32_3.jpg
  1. During the installation it will install the ST drivers, if necessary accept all the permissions.
Download & Install the project
  1. Download the project evSTM32f7v01.zip
  2. Download STM32CubeF7_1 from the ST website accepting the agreement.
_images/STM32CubeF7_1.jpg

Note

In order to get the software it is necessary have an account on my.st.com website. You can create it here

  1. Extract STM32CubeF7 package, in our example we have installed it in C:\Ac6\STM32Cube_FW_F7_V1.4.0
  2. Copy the provided folder CameraDemo_DriverTD7740_STM32f7 to C:\Ac6\STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Examples\.
Import & build
  1. Launch the System Workbench for STM32
  2. Select File -> import and choose General -> Existing Projects into Workspace
_images/kds_archive.jpg
  1. In Select root directory, click on Browse and select the path: C:\Ac6\STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Examples\CameraDemo_DriverTD7740_ST
_images/prj_import.jpg
  1. The project should be automatically detected and selected. Click on Finish button.
  2. Select the project STM32746G_DISCOVERY_CAMERA_DEMO_OV7740
_images/refresh.jpg
  1. Press F5 key to refresh the project tree
  2. Build the project selecting Project -> Build All
  3. The building will finish generating the STM32746G_DISCOVERY.bin and STM32746G_DISCOVERY.elf files
_images/built.jpg
Debug
  1. Connect the adapter board to the Camera Connector of the STM32F746G-DISCO board via FFC cable:
_images/connections.jpg
  1. Plug in the USB Mini cable from the PC to the CN14 connector of the board
_images/power_demo.jpg
  1. From the menu go to Run -> Debug Configurations
  2. Double click on Ac6 STM32 Debugging
_images/debug_1.jpg
  1. Click on Browse… button and select the project STM32746G_DISCOVERY_CAMERA_DEMO_OV7740
_images/debug_1_2.jpg
  1. Click on Browse… button and find the elf file, using our path it will be C:\Ac6\STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Examples\CameraDemo_DriverTD7740_STM32f7\SW4STM32\STM32746G_DISCOVERY\Debug\STM32746G_DISCOVERY.elf
_images/debug_2.jpg
  1. Check the Debugger tab if all the options are right
_images/debugger_tab.jpg
  1. Apply the changes clicking on Apply button
_images/debug_3.jpg
  1. Then click on the Debug button
_images/debug_4.jpg
  1. Accept the debug perspective and the debug will start on the main entry point
_images/debug_5.jpg