1
Plug It In2
Get Software3
Build, Run4
CreateSign in to save your progress. Don't have an account? Create one.
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.
Something went wrong! Please try again.
Your FRDM-KW40Z LEDs should start flashing in serial mode when you connect the board.
Something went wrong! Please try again.
In this step, you will be guided to download the software and tools required to build and run the connectivity solutions.
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.
Get KW40Z Connectivity SoftwareSomething went wrong! Please try again.
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.
Get IAR Embedded Workbench for Arm
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.
Something went wrong! Please try again.
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 DriverWith 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:
Tera Term Tutorial, PuTTY TutorialSomething went wrong! Please try again.
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.
Browse to the examples\smac
folder to see the application demos:
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version> \ConnSw\examples\smac</connectivitysoftware_install_folder>
If you are interested in running the preprogrammed Connectivity Test Application that comes with your board:
The Connectivity Test Application is a SMAC based Demo Application which provides the user with means to test basic transmission-reception functionalities along with several advanced testing features based on the ASP and SMAC APIs.
The runtime configuration is performed using shortcut keys which are available in most of the application’s menus. The menus or tests will change their behavior based on what settings are applied.
Connectivity Test Shortcuts Menu:The Connectivity Test Application has four main features:
The Carrier Sense test performs ED continuously until the ED value is above the CCA threshold and then transmit a packet which contains pseudo-random data with the payload size configured using 'n' and 'm' shortcuts
The Transmission Control test displays a selection menu for number of packets identical with the one in PER TX test and then it prompts the user to enter the inter-packet delay. After that, the application will start sending the selected number of packets with the selected inter-packet delay, using pseudo-random data for the payload with the size configured with 'n' and 'm' shortcuts.
For additional details on how to run the Connectivity Test Application, please refer to the SMAC’s Demonstration Applications User’s Guide.
Use the guide below to learn how to build and debug an example application using one of the Wireless Connectivity Stacks provided by NXP.
These steps show how to:
Build the platform libraries required by the application demo
Build the demo application
Download and run the demo application
The example used below is for the SMAC Connectivity Test demo, but these steps can be applied to any of the Wireless Connectivity demo applications.
Open the "Connectivity_Test.eww"
IAR workspace
<smac_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\smac\</smac_install_folder>
Connectivity_Test\frdmkw40z\FreeRTOS\build\iar\Connectivity_Test.eww
After the workspace is open, some projects are shown: One for the KSDK platform libraries and one for the demo application. Build ALL the required KSDK libraries by right clicking on the SDK projects and click on 'Make'
Select and build the "Connectivity_Test - Debug" project
Note: If you select another project, don't forget to build the required KSDK libraries for that project.
Connect your FRDM-KW40Z board to your PC
Right click on the "Connectivity_Test – Debug" project and select "Set as Active"
Click on "Download and Debug" icon to flash the board
Open a Terminal Emulator program and open a session to your FRDM-KW40Z COM port. Configure the terminal with these settings:
Press "Go" button
The following output will be displayed in the serial terminal
If you don't see this output, verify your terminal settings and connections.
Now unplug the first board, and plug in the other FRDM-KW40Z
Program the second FRDM-KW40Z with the same Connectivity Test firmware by using the same steps as above
Close any open terminal windows, then power cycle both boards, and with both boards plugged into your computer, open up a terminal window for each board
Hit the reset button each board to bring up the Connectivity Test options for each board
Refer to
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\doc\MKW40ZSMACDAUG.pdf – "KW40Z Simple Media
AccessController (SMAC) Demonstration
Applications"</connectivitysoftware_install_folder>
document for
instructions on how to run all the demo applications
IEEE 802.15.4
Browse to the "examples\ieee_802_15_4"
folder to see the application demos:
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\ieee_802_15_4</connectivitysoftware_install_folder>
If you are interested in running the preprogrammed Connectivity Test Application that comes with your board:
The Connectivity Test Application is a SMAC based Demo Application which provides the user with means to test basic transmission-reception functionalities along with several advanced testing features based on the ASP and SMAC APIs.
The runtime configuration is performed using shortcut keys which are available in most of the application’s menus. The menus or tests will change their behavior based on what settings are applied.
Connectivity Test Shortcuts Menu:
The Connectivity Test Application has four main features:
The Carrier Sense test performs ED continuously until the ED value is above the CCA threshold and then transmit a packet which contains pseudo-random data with the payload size configured using 'n' and 'm' shortcuts
The Transmission Control test displays a selection menu for number of packets identical with the one in PER TX test and then it prompts the user to enter the inter-packet delay. After that, the application will start sending the selected number of packets with the selected inter-packet delay, using pseudo-random data for the payload with the size configured with 'n' and 'm' shortcuts.
For additional details on how to run the Connectivity Test Application, please refer to the SMAC’s Demonstration Applications User’s Guide.
Use the guide below to learn how to build and debug an example application using one of the Wireless Connectivity Stacks provided by NXP.
These steps show how to:
Build the platform libraries required by the application demo.
Build the demo application.
Download and run the demo application.
The example used below is for "MyWirelessApp" application demo (Coordinator), but these steps can be applied to any of the Wireless Connectivity demo applications.
Open the "MyWirelessAppCoordinator.eww
" IAR workspace.
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples</connectivitysoftware_install_folder>
\ieee_802_15_4\MyWirelessApp\Coordinator\frdmkw40z\FreeRTOS\build\iar\MyWirelessAppCoordinator.eww
After the workspace is open, some projects are shown: One for the KSDK platform libraries and one for the demo application. Build ALL the required KSDK libraries by right clicking on the SDK projects and click on 'Make'
Select and build the "MyWirelessAppCoordinator – Debug" project
Note: If you select another project, don't forget to build the required KSDK libraries for that project.
Connect your FRDM-KW40Z board to your PC
Right click on the "MyWirelessAppCoordinator – Debug" project and select "Set as Active"
Click on "Download and Debug" icon to flash the board
Open a Terminal Emulator program and open a session to your FRDM-KW40Z COM port. Configure the terminal with these settings:
Press "Go" button
The following output will be displayed in the serial terminal
If you don't see this output, verify your terminal settings and connections.
Now unplug the first board, and plug in the other FRDM-KW40Z
Program the second FRDM-KW40Z with the "MyWirelessApp" End Device demo
application which can be found at
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\ieee_802_15_4\MyWirelessApp\EndDevice\frdmkw40z\FreeRTOS\build\iar\
MyWirelessAppEndDevice.eww
</connectivitysoftware_install_folder>
using the same steps as above
Close any open terminal windows, then power cycle both boards, and with both boards plugged into your computer, open up a terminal window for each board
Press SW3 or SW4 on the Coordinator board, and then press SW3 or SW4 on the board programmed with the EndDevice application, and wait for them to connect
Once connected, type into the terminal of either of the boards, and you will see the text print out on the other board
Refer to
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\doc\802154MPDAUG.pdf – "NXP 802.15.4 Media Access
Controller (MAC) Demo
Applications"</connectivitysoftware_install_folder>
document for instructions on how to run all the demo applications
Bluetooth Low Energy
Browse to the "examples\bluetooth"
folder to see the application demos:
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\bluetooth</connectivitysoftware_install_folder>
If you are interested in running the preprogrammed Connectivity Test Application that comes with your board:
The Connectivity Test Application is a SMAC based Demo Application which provides the user with means to test basic transmission-reception functionalities along with several advanced testing features based on the ASP and SMAC APIs.
The runtime configuration is performed using shortcut keys which are available in most of the application’s menus. The menus or tests will change their behavior based on what settings are applied.
Connectivity Test Shortcuts Menu:
The Connectivity Test Application has four main features:
The Carrier Sense test performs ED continuously until the ED value is above the CCA threshold and then transmit a packet which contains pseudo-random data with the payload size configured using 'n' and 'm' shortcuts
The Transmission Control test displays a selection menu for number of packets identical with the one in PER TX test and then it prompts the user to enter the inter-packet delay. After that, the application will start sending the selected number of packets with the selected inter-packet delay, using pseudo-random data for the payload with the size configured with 'n' and 'm' shortcuts
For additional details on how to run the Connectivity Test Application, please refer to the SMAC’s Demonstration Applications User’s Guide.
Use the guide below to learn how to build and debug an example application using one of the Wireless Connectivity Stacks provided by NXP.
Bluetooth Low Energy QSG
These steps show how to:
Build the platform libraries required by the application demo
Build the demo application
Download and run the demo application
The example used below is for the heart rate sensor demo, but these steps can be applied to any of the Wireless Connectivity demo applications.
Open the "heart_rate_sensor.eww
" IAR workspace
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples</connectivitysoftware_install_folder>
\bluetooth\heart_rate_sensor\frdmkw40z\FreeRTOS\build\iar\heart_rate_sensor.eww
After the workspace is open, some projects are shown: One for the KSDK platform libraries and one for the demo application. Build ALL the required KSDK libraries by right clicking on the SDK projects and click on 'Make'
Select and build the "heart_rate_sensor – frdm-kw24 FreeRTOS - Debug" project
Note: If you select another project, don't forget to build the required KSDK libraries for that project.
Connect your FRDM-KW40Z board to your PC
Right click on the "heart_rate_sensor - Debug" project and select "Set as Active"
Click on "Download and Debug" icon to flash the board
Press "Stop Debugging" button
Unplug and plug again the USB cable to your PC
With the firmware programmed into the FRDM-KW40Z, continue with the instructions
in Section 3.3 of the BLE webpage to install the Kinetis BLE Toolbox phone app
and run the demo.
Also refer to
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\doc\BLEDAUG.pdf – "Bluetooth Low Energy (BLE) Demo
Applications User's
Guide"</connectivitysoftware_install_folder>
document for instructions on how to run all the demo applications
Kinetis BLE Toolbox comes with mobile applications acting as a BLE central device. The Kinetis BLE Toolbox allows you to play with different sensor applications provided by the KW40Z Connectivity Software.
After the Kinetis BLE Toolbox is installed, follow the next steps to learn how to configure and play with Kinetis BLE Toolbox app and Wireless Connectivity firmware.
Hybrid(IEEE 802.15.4 + BLE)
Browse to the "examples\hybrid"
folder to see the application demos:
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\hybrid</connectivitysoftware_install_folder>
If you are interested in running the preprogrammed Connectivity Test Application that comes with your board:
The Connectivity Test Application is a SMAC based Demo Application which provides the user with means to test basic transmission-reception functionalities along with several advanced testing features based on the ASP and SMAC APIs.
The runtime configuration is performed using shortcut keys which are available in most of the application’s menus. The menus or tests will change their behavior based on what settings are applied
Connectivity Test Shortcuts Menu:
The Connectivity Test Application has four main features:
The Carrier Sense test performs ED continuously until the ED value is above the CCA threshold and then transmit a packet which contains pseudo-random data with the payload size configured using 'n' and 'm' shortcuts.
The Transmission Control test displays a selection menu for number of packets identical with the one in PER TX test and then it prompts the user to enter the inter-packet delay. After that, the application will start sending the selected number of packets with the selected inter-packet delay, using pseudo-random data for the payload with the size configured with 'n' and 'm' shortcuts
For additional details on how to run the Connectivity Test Application, please refer to the SMAC’s Demonstration Applications User’s Guide.
Use the guide below to learn how to build and debug an example application using one of the Wireless Connectivity Stacks provided by NXP.
These steps show how to:
Build the platform libraries required by the application demo
Build the demo application
Download and run the demo application
The example used below is for "dual_mode_demo", but these steps can be applied to any of the Wireless Connectivity demo applications.
Open the "dual_mode_demo.eww
" IAR workspace
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\hybrid\</connectivitysoftware_install_folder>
ble_802_15_4_dual_mode_demo\frdmkw40z\bare_metal\build\iar\dual_mode_demo.eww
After the workspace is open, some projects are shown: One for the KSDK platform libraries and one for the demo application. Build ALL the required KSDK libraries by right clicking on the SDK projects and click on 'Make'
Select and build the "dual_mode_demo – dual_mode_debug_BM – Debug" project
Note: If you select another project, don't forget to build the required KSDK libraries for that project.
Connect your FRDM-KW40Z board to your PC
Right click on the "dual_mode_demo – dual_mode_debug_BM – Debug" project and select "Set as Active"
Click on "Download and Debug" icon to flash the board
Open a Terminal Emulator program and open a session to your FRDM-KW40Z COM port. Configure the terminal with these settings:
Press "Go" button
The following output will be displayed in the serial terminal
If you don't see this output, verify your terminal settings and connections
Now unplug the first board, and plug in the other FRDM-KW40Z
Program the second FRDM-KW40Z with the "MyWirelessApp" End Device demo
application which can be found at
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\examples\ieee_802_15_4\MyWirelessApp\EndDevice\frdmkw40z\FreeRTOS\build\iar\
MyWirelessAppEndDevice.eww
</connectivitysoftware_install_folder>
using the same steps as above
Close any open terminal windows, then power cycle both boards, and with both boards plugged into your computer, open up a terminal window for each board
Press SW3 or SW4 on the Hybrid board, and then press SW3 or SW4 on the board programmed with the EndDevice application, and wait for them to connect
Once connected, type into the terminal of either of the boards, and you will see the text print out on the other board
With the firmware programmed into the FRDM-KW40Z, continue with the instructions
in Section 3.3 of the Hybrid webpage to install the Kinetis BLE Toolbox phone
app and run the BLE
demo. Also refer to
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version></version>\ConnSw\doc\BLEDAUG.pdf – "Bluetooth Low Energy (BLE) Demo
Applications User's
Guide"</connectivitysoftware_install_folder>
document for instructions on how to run all the demo applications
Kinetis BLE Toolbox comes with mobile applications acting as a BLE central device. The Kinetis BLE Toolbox allows you to play with different sensor applications provided by the KW40Z Connectivity Software.
After the Kinetis BLE Toolbox is installed, follow the next steps to learn how to configure and play with Kinetis BLE Toolbox app and Wireless Connectivity firmware.
Something went wrong! Please try again.
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.
Cloning an example application project allows users to load and develop application firmware without modifying the core installation source files or default project configurations.
Something went wrong! Please try again.
To create a clone of an example project:
<connectivitysoftware_install_folder>\tools\project_cloner\project_cloner.exe
</connectivitysoftware_install_folder>
Something went wrong! Please try again.
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 3.2.
Something went wrong! Please try again.
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
<connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_
<version></version>\ConnSw\doc directory</connectivitysoftware_install_folder>
.
802154MPADG.pdf covers 802.15.4 development and BLEADG.pdf
covers Bluetooth Low Energy development.
Something went wrong! Please try again.
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 Kinetis SDK 1.3 and looking at the Kinetis SDK Demo Applications User's Guide.
Something went wrong! Please try again.
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.
You're ready to go.
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.
You're ready to go.