Create an Application for the FRDM-KL82Z
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.
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
4.3 Open Your Project
Your new project will be located in
/examples/frdmkl82z/user_apps . 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
// Configure board specific pin muxing
// Initialize the UART terminal
PRINTF("\r\nRunning the myProject project.\n");
// Enable GPIO port for LED1
delay = 5000000;
delay = 5000000;
4.5 Build, Download, Run
With the changes made to your main() function, build your application.
Remember to build the SDK platform library first if you did not build
any of the other SDK examples in the previous steps. 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-KL82Z's red LED
blinking. You can also view terminal output using PRINTF.