Getting Started with FRDM Development Platform for Kinetis KW40Z/30Z/20Z MCUs

最終更新日時: 2019-03-25 21:13:00サポート FRDM-KW40Z | KW40Z/30Z/20Z | Wireless

このドキュメントの内容

  • 1

    Plug It In
  • 2

    Get Software
  • 3

    Build, Run
  • 4

    Create

1. Plug It In

Let's take your FRDM-KW40Z for a test drive.

1.1 Getting Started with the FRDM-KW40Z Development Board

1.2 Attach the USB Cable

FRDM-KW40Z-GS-BOARD

FRDM-KW40Z-GS-BOARD

1.3 Run the Out-of-Box Demo

Your FRDM-KW40Z LEDs should start flashing in serial mode when you connect the board.

FRDM-KW40Z-DEMO

FRDM-KW40Z-DEMO

2. Get Software

In this step, you will be guided to download the software and tools required to build and run the connectivity solutions.

2.1 Installing Software for the FRDM-KW40Z

2.2 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.

Get KW40Z Connectivity Software

2.3 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.

Get IAR Embedded Workbench for Arm

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.4 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-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 Tutorial.

3. Build, Run

3.1 Select Connectivity Stack

Each of 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.

4. Create

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.

4.1 Create an Application for the FRDM-KW40Z

4.2 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.3 Run the Project Cloner

To create a clone of an example project:

  1. Launch the Project Cloner executable which is located at:

    <connectivitysoftware_install_folder>\tools\project_cloner\project_cloner.exe

  2. Verify the Project Cloner GUI is displayed

    GS-FRDM-KW40Z-PROJECT-CLONER-WINDOW

    GS-FRDM-KW40Z-PROJECT-CLONER-WINDOW

    • 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 Toolchains
    • Cloned app name: Name that the cloned project will have
    • Destination root path: Folder where the cloned project will be created
    • Select:
      • Clone application files only: Clone the app, boards, and platform files in the stack installation – the other files will be linked from the stack installation folder using an environment variable
      • Clone full codebase: Clone the full files, folders and libraries
  3. Select an example demo to be cloned and fill the options
  4. 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 exist)

4.4 Open Your Project

Navigate to the <Destination root path>\<Cloned app name> folder to access the application 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.

4.5 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 <connectivitysoftware_install_folder>\KW40Z_Connectivity_Software_<version>\ConnSw\doc directory. The 802154MPADG.pdf covers 802.15.4 development and BLEADG.pdf covers Bluetooth Low Energy development.

4.6 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 Kinetis SDK 1.3 and looking at the Kinetis SDK Demo Applications User's Guide .