4.1 Get SDK Project Generator
Let's create our own project and make a simple SDK-based application. NXP provides an intuitive, simple project generation utility that allows creation of custom projects based on the Kinetis SDK.
Get Project Generator
4.2 Run the SDK Project Generator
After extracting the ZIP file, open the utility by clicking on the KSDK_Project_Generator executable for your computer's operating system. Point the tool to your SDK installation path, name your project, and select the board that it uses as a reference. Click on the Quick Generate button to finish.
4.3 Open Your Project
Your new project will be located in.
Open the project in your toolchain of choice by using the same process described in section 3.2.
4.4 Write Some Code
Now, let's make our new project do something other than spin in an infinite loop. The SDK examples provide a board support package (BSP) to do various things specific to the board, including macros and definitions for items such as LEDs, switches and peripheral instances. To keep things simple, lets make the LED blink using the BSP macros.
Update the main() function in your project's main.c file with the following code:
volatile int delay;
// Configure board specific pin muxing
// Configure clock source
// Initialize the UART terminal
PRINTF("\r\nRunning the myProject project.\n");
// Enable GPIO port for the red LED
PORT_SetPinMux(BOARD_LED_RED_GPIO_PORT, BOARD_LED_RED_GPIO_PIN, kPORT_MuxAsGpio);
delay = 5000000;
4.5 Build, Download, Run
With the changes made to your main() function, build your application. Once the build is complete, download the application to your board.
If you need help figuring out how to build, download or run an application, reference your tool-specific guide from section 3.2.
With the application downloaded, you will see the FRDM-KE15Z's red LED blinking. You can also view terminal output using PRINTF.