IOH: Getting started with the example projects

Document created by jorge_plascencia Employee on Apr 25, 2016Last modified by Diana Torres on Apr 26, 2016
Version 3Show Document
  • View in full screen mode

Introduction

The IOH application examples provide a great and easy way to get started with I/O Handler. All provided IOH examples come with project files for LPCXpresso, Keil MDK and IAR EWARM. This page will give an overview on how to start exploring these examples.

1. Download the full IOH kit

The first step is to download the full IOH kit. This kit contains:

    • The IOH libraries.
    • For every library one application note describing the library and the example application(s).
    • One or more application example projects
    • Download the full IOH kit attached
      • Unzip the archive to e.g. C:/nxp/

2. Open the project in the IDE

The second step is opening the projects into the IDE.

LPCXpresso:

1. Choose 'File'->'Import'. Then select 'General'->'Existing Projects into Workspace'

2. Select 'Select archive file' and click 'Browse'. Select the file 'lpcxpresso_nxp_lpcxpresso_11u37h.zip' which is in the unzipped folder

      (e.g. C:/nxp/nxp_lpcxpresso_lpc11u37h_ioh/lpcxpresso_nxp_lpcxpresso_11u37h.zip)

3. Import all project into the workspace by clicking 'Finish'. Note: You may also choose to only import a selected number of projects. In that case, always                     make sure you import at least three project:

     'lpc_chip_11uxx_lib', 'nxp_lpcxpresso_11u37h_board_lib' and the example project of interest.

Keil MDK:

In Keil, open the multi-project workspace located at: nxp_lpcxpresso_lpc11u37h_ioh\applications\lpc11xx\keil_uvision_projects\nxp_lpcxpresso_11u37h\nxp_lpcxpresso_11u37h_ioh_examples.uvmpw

IAR EWARM:

In IAR, open the multi-project workspace located at: nxp_lpcxpresso_lpc11u37h_ioh\applications\lpc11xx\iar_ewarm_projects\nxp_lpcxpresso_11u37h\nxp_lpcxpresso_11u37h_ioh_examples.eww

3. Building the project

After successfullt importing the project into the IDE, the project can be build.

LPCXpresso:

Select the example project of interest and click the 'Build' icon. The chip and board project will be automatically be compiled.

Keil MDK:

1. Right-click on the example of interest in the project explorer and select 'Choose as Active Project'.

2. Click 'Project'->'Batch Build...'. Select atleast the 'lib_lpc_chip_11uxx', 'lib_lpc_board_nxp_lpcxpresso_11u37h' and the project of interest.

3. Click 'Build'.

IAR EWARM:

1. In the project explorer, select the project of interest from the drop-down list to make that project the active project.

2. Click 'Project'->'Batch build...' and then click 'Edit'. Select atleast the 'lib_lpc_chip_11uxx', 'lib_lpc_board_nxp_lpcxpresso_11u37h' and the project of interest as 'Configurations to build'. When done, press 'OK'.

3. Click 'Make'.

Important: IAR EWARM may require an update and a patch. If this condition is not met, compilation (linking) will result in an 'internal error' message from the IAR linker. Please make sure you're running

6.70.1.5794 or higher and that you have installed the 'EWARM linker patch 6.70.2-5901'. Please check your IAR mypages for any available updates.

4. Flashing the binary into the board

LPCXpresso:

1. Connect a USB cable to J6 of the LPC11U37H board. J6 is the Link-2 USB connector, which allows LPCXPresso to access the LPC11U37H target for programming and debugging.

2. Click the 'Debug' icon to launch a debug session.

3. click the 'Resume' icon to start code execution.

Keil MDK:

1. Either:

        • Configure the Link2 as CMSIS DAP/J-Link (click here for more details) and connect a USB cable to J6 of the LPC11U37H board. J6 is the Link-2 USB connector.
        • Connect a supported external debugger to P1

2. Click the 'Load' icon in Keil to download the compiled binary into the board.

3. After download has finished, hit the reset button to run the example.

IAR EWARM:

1. Either:

        • Configure the Link2 as CMSIS DAP/J-Link (click here for more details) and connect a USB cable to J6 of the LPC11U37H board. J6 is the Link-2 USB connector.
        • Connect a supported external debugger to P1

2. Click the 'Download and Debug' icon in IAR to download the compiled binary into the board and to start a debug session.

3. After download has finished, click the 'Go' icon to start code execution.

Outcomes