Welcome to Embedded Vision NXP documentation

Version:1.00E
Copyright:(C)2016 Avnet Silica company
Date:26 Oct 2016
Reference name:EV-NXPKINCAM-DVK

Embedded Vision NXP

_images/logo_silica_nxp.jpg _images/board.jpg

FRDM-K82F with TDNx016 board mounting a TD7740 camera module

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

The NXP Freedom K82F is an low-cost development platform for Kinetis K82, K81, and K80 MCUs. Provided with Kinetis MK82FN256VLL15 MCU (ARM® Cortex®-M4 @150 MHz, 256KB SRAM, USB and advanced security).

_images/board_k82f.jpg
  • Form-factor compatible with the Arduino™ R3 pin layout
  • Peripherals enable rapid prototyping, including a six-axis digital accelerometer and magnetometer to create full eCompass capabilities, a tri-colored LED and two user push-buttons for direct interaction, 2x32Mb QuadSPI external flash, FlexIO camera header, touch pads and headers for use with Bluetooth® and 2.4 GHz radio add-on modules
  • OpenSDAv2.1, the NXP open source hardware embedded serial and debug adapter running an open source bootloader, offers options for serial communication, flash programming, and run-control debugging

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

NXP releases Kinetis® Design Studio including support for FRDM-K82F. The Kinetis® Design Studio (KDS) is a complimentary integrated development environment for Kinetis MCUs that enables robust editing, compiling and debugging of your designs. 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. Furthermore, Processor Expert® software enables your design with its knowledge base and helps create powerful applications with a few mouse clicks.

Features

  • Eclipse Luna 4.4
  • Host operating systems:
    • Windows® 7/8/10 (32 and 64-bit)
    • Linux® 64-bit (Ubuntu 10.04 (deb), RedHat/Centos 7 (rpm))
    • Mac OS X (10.10 and 10.11) with SEGGER J-Link support
  • GDB debugger with support for the following debug interface hardware:
    • SEGGER J-Link (w/SEGGER GDB Server, Windows, Linux, Mac)
    • P&E Multilink (w/P&E GDB Server, Windows, Linux)
    • CMSIS-DAP (w/OpenOCD GDB and OpenSDA embedded circuit,Windows, Linux)
    • Command Line (CL) debugging with GDB and OpenOCD TCL

Contents:

Quick Start Guide

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

Hardware necessary
  • TDNx016 Board
  • TD7740 camera
  • FRDM-K82F board
  • 1 micro-USB cable
  • PC with Windows
The Demo

The demo is already programmed on the FRDM-K82F board. You have only to connect the boards in order to use the demo. Please follow the next steps:

  1. Plug the TD7740 camera to the TDx016 adapter board and Connect the board to the FRDM-K82F board.
_images/board.jpg
  1. Plug in the micro USB cable in the USB device port (the one in the middle of the card).
_images/board_k82f_guide2.jpg
  1. The board will enumerate as a generic USB video device called Flexio Camera Device. You can then use this device with any video capture software such as “camera” from Windows 10 or AMCap. Download and install it if you don’t have camera application on your O.S. Launch it and select the Flexio Camera Device device. You will see the frames transmitted at a resolution QQVGA of 160x120 pixels.
Update the Demo

If you need upload the demo in the FRDM-K82F board please follow the next steps:

  1. This demo is provided with a 9x2 female connector already soldered. This will be used to connect the board to the TDNx016 board:
_images/strip.jpg
  1. Install OpenSDA for the NXP K82F board More information can be found at segger website. Click on J-Link OpenSDA - Board-Specific Firmwares and download the firmware for the FRDM-K82F.
_images/download-OpenSDA.jpg
  1. Start your board in Bootloader mode keeping reset button pressed, while connecting the USB cable to the SDA USB port and release it after 1s. Drag’n drop or copy and paste the OpenSDA Application binary file into the BOOTLOADER drive from your computer file explorer. After 10 seconds Un-plug and re-plug the USB cable from the SDA USB port without keeping reset button pressed.
_images/board_k82f_guide.jpg
  1. Download the demo firmware from Avnet Silica website and Drag’n drop or copy and paste the firmware into the MBED drive from your computer file explorer. After 10 seconds Un-plug and re-plug the USB cable from the SDA USB port without keeping reset button pressed.

Note

You can build this demo firmware by yourself. Please follow the instructions in the Developing Guide section.

  1. Plug the TD7740 camera to the TDx016 adapter board and Connect the board to the FRDM-K82F board.
_images/board.jpg
  1. Plug in the micro USB cable in the USB device port (the one in the middle of the card).
_images/board_k82f_guide2.jpg
  1. The board will enumerate as a generic USB video device called Flexio Camera Device. You can then use this device with any video capture software such as “camera” from Windows 10 or AMCap. Download and install it if you don’t have camera application on your O.S. Launch it and select the Flexio Camera Device device. You will see the frames transmitted at a resolution QQVGA of 160x120 pixels.

Developing Guide

This guide will provide instructions to install the development environment needed to compile and debug the demo firmware for the FRDM-K82L. The development system is multiplatform, it supports Windows and Linux. This guide is written using Windows. The main steps are:

  • Install Kinetis Design Studio 3.2.0
  • Build & Install KSDK 2.0 for FRDM-K82F board
  • Import & build the source project
Install & Update Kinetis Design Studio
  1. First up, register at the NXP website registration form then you can download the IDE from this page. Press on Download button.
_images/download_kinetis_0.jpg

We used Kinetis Design Studio 3.2.0, press on Downloads for Kinetis Design Studio for Microsoft Windows.

_images/download_kinetis_1.jpg

Agree the terms and download the file Installer: Kinetis Design Studio 3.2.0 Installer for Windows.

_images/download_kinetis_3.jpg

Next, run the downloaded file kinetis-design-studio_3.2.0.exe following all the default options.

  1. Now we have to download and extract the KSDK 2.0 for the FRDM-K82F board. We will build the SDK through this website: nxp website. Click on Build SDK. You have to register in order to use this feature.
_images/1-BuildSDK.jpg

Will appear a list of boards, select the FRDM-K82F

_images/3-SelectBoard.jpg

Now it is necessary build the SDK package before to download. Click on Build SDK Package.

_images/4-BuildSDK-Package.jpg

From the Software Vault link you will see the message Pending download approval. You have to wait some minute.

_images/5-SoftwareVault.jpg

After the approval phase you will can download the SDK built. Accept the terms and download the evNXPv01.zip file.

_images/6-Download_now.jpg
Build the Project
  1. Launch KDS and select a directory for the workspace. Our project will be imported in this folder. In this guide we used this path:
_images/kds_workspace.jpg
  1. Follow next steps:

    1. Unzip the evNXPv01.zip file into the workspace creating a new folder named SDK_2.0_FRDM-K82F.
    2. Download the sources of the DEMO_usb_device_video_flexio_ov7740 going here
    3. unzip it in the folder UNIT:\[YOUR PATH TO]\workspace\SDK_2.0_FRDM-K82F\boards\frdmk82f\demo_apps.

3. From the Kinetis Design Studio select File -> import. Then choose General -> Existing Projects into Workspace

_images/kds_archive.jpg
  1. In Select root directory, click on Browse and select the path:
UNIT:\\[YOUR PATH TO]\\SDK_2.0_FRDM-K82F\\boards\\frdmk82f\\demo_apps\\DEMO_usb_device_video_flexio_ov7740

The project should be automatically detected and selected.

  1. Click on Finish.
_images/import_project.jpg
  1. Before to build it’s necessary setup the configuration of the project to create the hex file to upload in the board.

    1. Click on Project -> Properties
    2. select C/C++ Build -> Settings
    3. click on the Toolchains tab, then check the options Create flash image and Print size.
    4. click on Apply
    _images/configuration1.jpg
    1. After select the Tool Settings tab
    2. click on Cross ARM GNU Create Flash Image -> General
    3. choose as Output file format the Intel HEX option.
    _images/configuration2.jpg
    1. click on Apply
    2. Apply the modifies clicking on Ok button
    3. build the project selecting Project -> Build All.
  2. In UNIT:\[YOUR PATH TO]\SDK_2.0_FRDM-K82F\boards\frdmk82f\demo_apps\DEMO_usb_device_video_flexio_ov7740\bm\kds\debug folder you will find your hex file: dev_video_flexio_ov7740_bm_frdmk82f.hex.

_images/hex.jpg
  1. The dev_video_flexio_ov7740_bm_frdmk82f.hex file is the firmware demo uploadable in the FRDM-K82F, it is used in Quick Start Guide