Getting Started with the FRDM-KL27Z

Last Modified: Mar 22, 2019Supports FRDM-KL27Z | KL17/KL27 | Dev Platform

Contents of this document

  • 1

    Plug It In
  • 2

    Get Software
  • 3

    Build, Run
  • 4

    Create

1. Plug It In

Let's take your FRDM-KL27Z for a test drive! You have the choice of watching the sequence in a short video or following the detailed actions list below.

1.1 Getting Started with the FRDM-KL27Z Development Platform

1.2 Attach the USB Cable

FRDM-KL27Z-GS-BOARD

FRDM-KL27Z-GS-BOARD

1.3 Run the Out-of-Box Demo

Your FRDM-KL27Z comes loaded with a "bubble level" demo that leverages the on-board accelerometer. When the board is flat, the RGB LED is turned off, and when the board is tilted, the red or green LEDs gradually illuminate based on the degree of tilt on the X- and Y-Axis.

Demo not working?

FRDM-KL27Z-DEMO

FRDM-KL27Z-DEMO

2. Get Software

Choose a Development Path:

2.1 Installing Software for the FRDM-KL27Z

2.2 Jump Start Your Design with the MCUXpresso SDK

The MCUXpresso SDK is complimentary and includes full source code under a permissive open source license for all hardware abstraction and peripheral driver software. Learn about SDK.

Click below to download a preconfigured SDK release for the FRDM-KL27Z.

Get MCUXpresso SDK

You can also use the online SDK Builder  to create a custom SDK package for the FRDM-KL27Z using the SDK builder.

2.3 Install Your Toolchain

NXP offers a complimentary toolchain called MCUXpresso IDE.

Get MCUXpresso IDE

Want to use a different toolchain?

No problem! The MCUXpresso SDK includes support for other tools such as IAR , Keil  and command-line GCC .

2.4 MCUXpresso Config Tools

The MCUXpresso Config Tools is an integrated suite of configuration tools that guides users in creating new MCUXpresso SDK projects and also provides pins and clocks tools to generate initialization C code for custom board support.

The MCUXpresso Config Tools is integrated within the MCUXpresso IDE, if using MCUXpresso IDE, no additional download is needed. If using another toolchain, please consider downloading the MCUXpresso Config Tools here.

Get MCUXpresso Config Tools

2.5 PC Configuration

Many of the example applications output data over the MCU UART so you'll want to make sure that the driver for the board's virtual COM port is installed. Before you run the driver installer, you must have the board plugged in to your PC.

Download Driver

With the serial port driver installed, run your favorite terminal application to view the serial output from the MCU's UART. Configure the terminal to 115,200 baud rate, 8 data bits, no parity and 1 stop bit. To determine the port number of the FRDM-KL27's virtual COM port, open the device manager and look under the "Ports" group.

Not sure how to use a terminal application? Try one of these tutorials: Tera Term Tutorial, PuTTY Tutorial.

3. Build, Run

3.1 Build and Run SDK Demos on the FRDM-KL27Z

3.2 Explore the MCUXpresso SDK Example Code

The MCUXpresso SDK comes with a long list of example applications code. To see what's available, browse to the SDK boards folder of your SDK installation and select your board, the FRDM-KL27Z: <sdk_install_directory>/boards/frdmkl27z.

To learn more about specific example code, open the readme.txt file in an example’s directory.

3.3 Build, Run and Debug MCUXpresso SDK Examples

If one or more of the example applications sound interesting, you're probably wanting to know how you can build and debug yourself. The Getting Started with MCUXpresso SDK provides easy, step-by-step instructions on how to configure, build, and debug demos for all toolchains supported by the SDK.

Use the guide below to learn how to open, build and debug an example application using the MCUXpresso IDE.

Using a different toolchain?

4. Create

4.1 Create an Application for the FRDM-KL27Z

4.2 Clone and example project from MCUXpresso SDK

Option A: Use the MCUXpresso IDE to clone an example project.

Option B: Use the MCUXpresso Config Tools to clone an existing MCUXpresso SDK example for use with third party IDEs.

4.3 Use the Pins Tool

Now, let's use the Pins Tool that is part of the MCUXpresso Config Tools to show how to add a new GPIO pin to your project to blink an LED.

4.4 Use the Clocks Tool

Next, use the Clocks Tool that is part of the MCUXpresso Config Tools to change the clocks settings and change the rate that the LED blinks.

4.5 Success

With the application modified, you will see the FRDM-KL27Z's blue LED slowly blinking. You can also view terminal output using the terminal program.

Tera Term Tutorial

Tera Term Tutorial

Tera Term is a very popular open source terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.

  1. Download Tera Term from SourceForge. After the download, run the installer and then return to this webpage to continue
  2. Download

  3. Launch Tera Term. The first time it launches, it will show you the following dialog. Select the Serial option. Assuming your board is plugged in, there should be a COM port automatically populated in the list
  4. Configure the serial port settings (using the COM port number identified earlier) to 115,200 baud rate, 8 data bits, no parity and 1 stop bit. To do this, go to Setup → Serial Port and change the settings
  5. Verify the connection is open. If connected, Tera Term will show something like below in its title bar
  6. You're ready to go

PuTTY Tutorial

PuTTY Tutorial

PuTTY is a popular terminal emulation application. This program can be used to display information sent from your NXP development platform's virtual serial port.

  1. Download PuTTY using the button below. After the download, run the installer and then return to this webpage to continue
  2. Download

  3. Launch PuTTY by either double clicking on the *.exe file you downloaded or from the Start menu, depending on the type of download you selected
  4. Configure in the window that launches, select the Serial radio button and enter the COM port number that you determined earlier. Also enter the baud rate, in this case 115,200
  5. Click Open to open the serial connection. Assuming the board is connected and you entered the correct COM port, the terminal window will open. If the configuration is not correct, PuTTY will alert you
  6. You're ready to go

Design Resources

Additional Resources

Explore beyond the FRDM-KL27Z by adding other NXP solution to your project and interact with our worldwide design community.

Sensors

Explore the world with a full assortment of NXP sensor solutions. From accelerometers, pressure sensors, touch sensors, and many more, NXP had a sensor solution for your project. Find out more at Sensors.

NFC

Near Field Communication is a simple, intuitive technology that lets you interact securely with the world around you with a simple touch. Learn more about NXP's NFC solutions at NFC - Near Field Communication.

Support

Troubleshooting

Did your board come in a box that looks like this?

No problem! Your board simply came in the old packaging and has a different out-of-box demo loaded into the flash memory.

You should be seeing the RGB LED toggling between each of the three colors: red, blue and green. It's OK to move onto the next step when you're ready.

Still not working?

Try proceeding to the next steps to get other example applications running on your board. If you still have problems, try contacting us through the NXP Community .

Forums

Connect with other engineers and get expert advice on designing with Kinetis MCUs and MCUXpresso Software and Tools. Join the community discussion in one of our two dedicated communities: