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