Getting Started with the FRDM-KL25Z

Last Modified: 2021-12-14 16:32:09Supports FRDM-KL25Z | KL14/KL15/KL24/KL25 | Dev Platform

1. Plug It In

Let's take your FRDM-KL25Z 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 Get Started with FRDM-KL25Z Development Platform

1.2 Attach the USB Cable

FRDM-KL25Z-GS-BOARD

FRDM-KL25Z-GS-BOARD

1.3 Run the Out-of-Box Demo

Your FRDM-KL25Z comes loaded with a "bubble level" demo that leverages the onboard 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-KL25Z-DEMO

FRDM-KL25Z-DEMO

2. Get Software

2.1 Choose a Development Path

2.2 Installing Software for the FRDM-KL25Z

2.3 Jump Start Your Design with the Kinetis SDK

Want to learn about SDK?

The Kinetis Software Development Kit (SDK) is complimentary and includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.

MCUXPRESSO-SDK-TN

Click below to download the SDK Release appropriate for your computer's operating system.

Get MCUXpresso SDK

2.4 Install Your Toolchain

NXP offers a complimentary toolchain called MCUXpresso IDE.

MCUXpresso IDE

Get MCUXpresso IDE

Want to use a different toolchain?

If you prefer using a different toolchain, the Kinetis SDK includes support for other tools such as IAR , Keil  and command-line GCC .

GS Tool Logos

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. It should install automatically when you plug the board into your PC. If the driver does not automatically install, click here  to download the installer.

FRDM-KL46Z-GS-configuration

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-KL25Z'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-KL25Z

3.2 Explore the SDK Example Code

The Kinetis SDK comes with a long list of demo applications and driver examples. To see what's available, browse to the SDK 'examples' folder of your SDK installation and select your board, the FRDM-KL25Z:

<sdk_install_directory>/examples/frdmkl25z

To learn more about demo applications or driver examples, open the Kinetis SDK Demo Applications User's Guide, located in:

<sdk_install_directory>/doc

3.3 Build, Run and Debug SDK Examples

If one or more of the demo applications or driver examples sound interesting, the Getting Started with Kinetis SDK Guide 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 Kinetis Design Studio (KDS) IDE.

Using a different toolchain?

Security and Integrity

Security and Integrity

Documents and Videos Description
AN4507 Using the Kinetis Security and Flash Protection Features This application note discusses usage of the security and flash protection features available on the Kinetis family processors.

Wired Communications

SDK Examples

Several examples, demos and drivers are available within the SDK to help you get started. Some common examples for wired communications are listed below.

Bubble demo (I²C example)

This example demonstrates basic usage of the on-board accelerometer to implement a bubble level. A bubble level utilizes two axes to visually show deviation from a level plane (0 degrees) on a given axis.

Path:

<SDK_PATH>/boards/frdmkl25z/demo_apps/bubble

Shell demo (UART example)

This example demonstrates how to implement a command line shell application.

Path:

<SDK_PATH>/boards/frdmkl25z/demo_apps/shell

Driver Examples

This example highlights a number of driver examples that exist within the SDK including I²C, SPI and UART.

Path:

<SDK_PATH>/boards/frdmkl25z/driver_examples

USB Examples

These examples are built on and demonstrate various USB classes and provide jumping off points for your application.

Path:

<SDK_PATH>/boards/frdmkl25z/usb_examples

Power Management

Documents and Videos Description
AN4631 Using Asynchronous DMA features of Kinetis L Series This application note demonstrates how to use the asynchronous DMA of low-power Kinetis L microcontrollers and save power consumption in your application.
AN4503 Power Management for Kinetis MCUs This application note discusses how to use the power management systems and shows real-time current measurement results for selected use cases.
AN5088 Power Management for Kinetis L Family This application note details each power mode and provides use case examples in the SDK power management demo.

SDK Examples

Several examples, demos and drivers are available within the SDK to help you get started. Some common examples for power management are listed below.

Power Mode Switch Demo

This example demonstrates the use of power modes in the SDK.

Path:

<SDK_PATH>/boards/frdmkl25z/demo_apps/power_mode_switch

Power Manager Demo

This example demonstrates how to change power modes in the SDK.

Path:

<SDK_PATH>/boards/frdmkl25z/demo_apps/power_manager

ADC Low Power Demo

This example demonstrates the usage of the ADC peripheral while in a low power mode.

Path:

<SDK_PATH>/boards/frdmkl25z/demo_apps/adc16_low_power

ADC Low Power Async DMA Demo

This example demonstrates the usage of the ADC and DMA peripheral while in a low power mode.

Path:

<SDK_PATH>/boards/frdmkl25z/demo_apps/adc16_low_power_async_dma

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. Tera-Term-Connection
  5. 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
  6. Verify that the connection is open. If connected, Tera Term will show something like below in its title bar
  7. Tera-Term-Console
  8. 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. PUTTY-Configuration
  6. 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
  7. You're ready to go

Support

Troubleshooting

FRDM BOX

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 .

Training

Basic Application Development Using MCUXpresso IDE and MCUXpresso Config Tools - This three-part video series covers the basic interactions between the MCUXpresso IDE and Config Tools when working with either an imported SDK example project or creating a new one.

Forums

Connect with other engineers and get expert advice on designing with the FRDM-KL25Z on one of our community sites.