Porting Guide for NXPNCI-KDS_Example_KSDK2.2

cancel
Showing results for 
Search instead for 
Did you mean: 

Porting Guide for NXPNCI-KDS_Example_KSDK2.2

No ratings

Porting Guide for NXPNCI-KDS_Example_KSDK2.2

This porting guide is for FRDM-K82F, and it can also be used for any other platform supported by KSDK 2.2.

The released NXPNCI-KDS_Example_KSDK2.2 is based on FRDM-K64F, so before porting, we need to configure and download KSDK 2.2 for FRDM-K82F.

pastedImage_2.png

Please make sure you have selected Kinetis Design Studio before downloading.

After downloading, extract the package to some folder like below:

pastedImage_1.png

and change PROJECT_KSDK_PATH to this folder:

pastedImage_2.png

Change project settings as below:

pastedImage_1.png

pastedImage_3.png

Remove all files in the folder of drivers, and import new source files as below:

pastedImage_4.png

and similar procedure for "startup" folder and "utilities" folder:

pastedImage_5.png

pastedImage_6.png

pastedImage_7.png

Replace the source files in board folder with the files from some ksdk demo like hello_world:

pastedImage_9.png

FRDM-K82F uses PTC3 for NCI_IRQ pin, PTC9 for NCI_VEN pin, and PTA1 and PTA2(I2C3) as the I2C interface. so add definition in board.c and modify BOARD_InitPins() as below:

pastedImage_1.png

pastedImage_1.png

Change linker settings:

pastedImage_8.png

-Build

pastedImage_3.png

-Debug settings

pastedImage_4.png

-Test Result:

pastedImage_3.png

Labels (1)
Version history
Revision #:
1 of 1
Last update:
‎09-14-2017 08:25 PM
Updated by: