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.
The first step is to download the full IOH kit. This kit contains:
The second step is opening the projects into the IDE.
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.
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
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
After successfullt importing the project into the IDE, the project can be build.
Select the example project of interest and click the 'Build' icon. The chip and board project will be automatically be compiled.
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'.
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.
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.
1. Either:
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.
1. Either:
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.