Plug It In!
Let's take your FRDM-KW40Z for a test drive!
Note: K32W061/41 is preferred for
any new Zigbee®, Thread and Bluetooth® LE 5.0 design. No new software releases planned
Get Started with FRDM-KW40Z Development Platform - How To
1.1 Attach the USB Cable
1.2 Run the Out-of-Box Demo
Your FRDM-KW40Z LEDs should start flashing in serial mode when you connect the board.
In this step, you will be guided to download the software and tools required to build and run the
Installing software for the FRDM-KW40Z
2.1 Download KW40Z Connectivity Software!
The KW40Z Connectivity Software package integrates the Kinetis Software Development Kit v1.3 and all the
wireless connectivity stacks required to develop your solution using IEEE 802.15.4
and/or Bluetooth Low Energy.
Click below to download the
KW40Z Connectivity Software for your computer.
2.2 Install Your Toolchain
IAR Embedded Workbench for Arm (EWARM) version 7.40.2 or later is the development toolchain used to
deploy software applications using the NXP® Connectivity stacks. NXP provides
example EWARM workspace projects for you to start your development.
Want to use a different toolchain?
Right now, the only supported toolchain is IAR Embedded Workbench for Arm; we are currently working on
the enablement of NXP KDS for the Connectivity stacks.
2.3 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.
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 115200 baud rate, 8 data bits, no parity
and 1 stop bit. To determine the port number of the FRDM-KW40Z'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:
Each of the Our Wireless Connectivity Stack comes with a list of demo applications and driver examples
ready to be compiled and run.
Select the Connectivity Stack that you want to explore.
Build and Run the Wireless Connectivity Example Demos on the FRDM-KW40Z
3.1 Explore the Connectivity Example Codes
Browse to the "examples\smac" folder to see the application demos:
If you are interested in running the preprogrammed Connectivity Test Application that comes with
3.2 Build, Run and Debug Wireless Connectivity Examples
Use the guide below to learn how to build and debug an example application using one of the Wireless
Connectivity Stacks provided by NXP.
NXP provides a tool called "Project Cloner" which will allow you to copy an existing demo to use it as a
base for your own development, keeping the original demo app sources for reference.
Create an Application for the FRDM-KW40Z
4.1 Create your own project based on a provided demo
Cloning an example application project allows users to load and develop application firmware without
modifying the core installation source files or default project configurations.
4.2 Run the Project Cloner
To create a clone of an example project:
Launch the Project Cloner executable which is located at:
Verify the Project Cloner GUI is displayed.
- Codebase path: Connectivity Stack path folder.
- Clone example app: Demo Applications available for the selected stack.
- Clone configuration: Select from the available development boards, RTOS and
- Cloned app name: Name that the cloned project will have.
- Destination root path: Folder where the cloned project will be created.
Clone application files only: Clone the app, boards, and platform
files in the stack installation – the other files will be linked from the
folder using an environment variable.
- Clone full codebase: Clone the full files, folders and libraries.
- Select an example demo to be cloned and fill the options
Press "Clone Project" to create the cloned application. A message log will be displayed in the log
box as files are being copied. (Destination files will be overwritten if they already
4.3 Open Your Project
Navigate to the
Destination root path>\Cloned app name> folder to access the appplication files. The
project files (//) can be found and launched in IAR EWARM from the root of this folder.
Open the project with IAR Embedded Workbench for Arm, follow the same procedure described in Section
4.4 Start creating your own application
Modify your recently cloned application to start your own design!
For more information about the application and the APIs available, please, look at the applications
development guides which can be found in the
. 802154MPADG.pdf covers 802.15.4 development and BLEADG.pdf
covers Bluetooth Low Energy development.
4.5 Kinetis SDK platform
The Connectivity stack's platform makes use of the Kinetis SDK low level drivers. Take a look at the
Kinetis SDK Reference Manual
if you want to add a driver that is not currently used on the Connectivity Demo Applications. Example
applications are showcasing how to use the drivers can be found by installing
and looking at the
Kinetis SDK Demo Applications User's