Porting Guide for NXP-NCI example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Porting Guide for NXP-NCI example

Porting Guide for NXP-NCI example

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.zi... 
  2. download SW3241 via https://www.nxp.com/webapp/Download?colCode=SW3241&appType=license&location=null&fsrch=1&sr=... 
  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.

183249_183249.pngpastedImage_1.png

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

183250_183250.pngpastedImage_2.png

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.

183257_183257.pngpastedImage_3.png

4.Change MCU settings

183258_183258.pngpastedImage_4.png

5.Change project settings.

183282_183282.pngpastedImage_1.png

6.compiling error fixes:

6.1

183260_183260.pngpastedImage_6.png

solution: replace with i2c_11u6x.h

6.2

183261_183261.pngpastedImage_1.png

solution:

183267_183267.pngpastedImage_1.png

6.3

183283_183283.pngpastedImage_2.png

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

183287_183287.pngpastedImage_3.png

 

  • Porting Result

183288_183288.pngpastedImage_4.png

 

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.

Original Attachment has been moved to: NXP-NCI_LPC11Uxx_example.zip

Labels (1)
No ratings
Version history
Last update:
‎05-07-2017 08:44 PM
Updated by: