Quick Start

Quick Start Guide #

Introduction #

This document provides a guide as following:

  • Install development tools
  • Use the configuration tool
  • Build “proj_ble_adv_conn” demo project
  • Download image to DK

Preparation #

  • InPlay DK Board
  • JLink Debugger
  • InPlay SDK
  • Usb cable.

Install Tools #

Generate configuration File (optional) #

Demo projects are in “SDK/in-dev/proj”. Each project has a configuration file named “in_config.h”. This file is located in the “inc” directory of the project. This file is genareted by “InPlay SwiftConfig Tool”. If you want to modify the default configuration file, use this tool that is located in “in-dev/tools/in_config”.

  1. Run InPlay SwiftConfig Tool.
  2. Click “Open” button, open the configuration file in “in-dev/proj/ble/proj_ble_adv_conn/inc/in_config.h”.
  3. Modify project configuration.
  4. Click “Save” button, save the configuration file to “in-dev/proj/ble/proj_ble_adv_conn/inc/in_config.h”

Build the Project #

  1. Open the Keil project, double click file “in-dev/proj/ble/proj_ble_adv_conn/build/mdk/proj_ble_test.uvmpw”. “*.uvprojx” is Keil single project file, and “*.uvmpw” is Keil multi project file. Here we use multi project file.

Noted: If you encounter errors indicating that project files such as “hw_ana” and “ble_flash” cannot be found, please ignore them. These projects are library project. And SDK inlcudes prebuild library files.

  1. Click “Batch Build” button. Select all projects and click “Rebuild.”

Download to DK board #

  1. Connect JLink debugger to DK board. And power up DK board.

  2. Click “Project” menu in Keil, and select “Options for target”(or use shortcut key Alt+F7).

  3. Click “Device” tab, and select “IN6XXE” device under “InPlay Inc”.

  4. Click “Debug” tab, and select “J-Link” from the drop-down menu, as shown below:

  5. If a devices selection window pops up, select the “unspecified Cortex M4”.

  6. Then click “Settings” tab, select “SW” (single-wire interface) from the drop-down menu of “Port.” The click “OK” to apply changes.

Note:

If the J-Link is connected to the DK board and DK board is powered up, KEIL should detect DK board and display its information in the “SW Device” column, as illustrated below. If Keil can’t find device, reset DK and click “Scan” to rescan device.

  1. If Keil displays the following warning dialog, please click the OK button and then select Cortex-M4 on the next page.

  2. In the “Utilities” tab, click “Settings”. If the Keil Pack is installed, configuration will be done automatically as follows. If Keil is not configured properly, please manually add the “IN6XX SPI FLASH “flm file, set start addres and size.

  3. Click “OK” to apply changes.

  4. Click “download” button to download image file to DK board.