Porting Guide for NXP-NCI example

Document created by Kan_Li Employee on May 7, 2017
Version 1Show Document
  • View in full screen mode

The NXP-NCI example is based on NXP-NCI lib and LPCopen lib, and due to the good consistency, the porting is mainly focus on LPCopen lib switching.

 

  • Software setup
  1. download lpcopen package via http://www.nxp.com/assets/downloads/data/en/software/lpcopen_3_01_lpcxpresso_nxp_lpcxpresso_11u68.zip 
  2. download SW3241 via https://www.nxp.com/webapp/Download?colCode=SW3241&appType=license&location=null&fsrch=1&sr=3&pageNum=1&Parent_n… 
  3. import NXP-NCI_LPC11Uxx_example by LPCXpresso v8.1.4.

 

  • LPCopen porting
  1. remove *.h and *.c in the folder of LPC11Uxx/inc and LPC11Uxx/src.

2.import header files and c files from lpc_chip_11u6x/inc and lpc_chip_11u6x/src to LPC11Uxx/inc and LPC11Uxx/src

3. repeat step 2 , import source files and header files from lpc_board_nxp_lpcxpresso_11u68/inc and lpc_board_nxp_lpcxpresso_11u68/src to Drivers/inc and Drivers/src.

4.Change MCU settings

5.Change project settings.

6.compiling error fixes:

6.1

solution: replace with i2c_11u6x.h

6.2

solution:

6.3

solution: create a template project for LPC11U6x and import the source file of "cr_startup_lpc11u6x.c"

 

  • Porting Result

 

This porting guide is for LPC11U68 Xpresso v2 Rev C, and can also be used a reference when you try to port NXP-NCI examples to other lpcxpresso boards.

 

Please kindly refer to the attachment for details.

Attachments

Outcomes