Getting Started with USB-KW019032

Each of the Wireless Connectivity Stack comes with a list of demo applications and driver examples ready to be compiled and run

3.1 Select the Connectivity Stack that you want to explore.

SMAC

Browse to the " examples\smac" folder to see the application demos:

\KW01_Connectivity_Software_v1.0.0\ConnSw\examples\smac.

3.2 Build, Run and Debug Wireless Connectivity Examples

You probably want to build and debug a demo by yourself. Use the guide below to learn how to build and debug an example application using one of the Wireless Connectivity Stacks provided by NXP.

Build and Run the Wireless Connectivity Example Demos on the USB-KW40Z

3.1 Explore the Connectivity Example Codes

Browse to the "examples\hybrid" folder to see the application demos:

\KW40Z_Connectivity_Software_1.0.0\ConnSw\examples\hybrid

If you are interested in running the preprogrammed Connectivity Test Application that comes with your board

3.2 Build, Run and Debug Wireless Connectivity Examples

You probably want to build and debug a demo by yourself. Use the guide below to learn how to build and debug an example application using one of the Wireless Connectivity Stacks provided by NXP.

3.3 How to play with the Bluetooth Low Energy Connectivity Demos?

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 MKW40Z Connectivity Software v1.0.0. Currently, Heart Rate Sensor and Beacon applications are supported. More demos will be added soon.

After you successfully installed the Kinetis BLE Toolbox. Follow the next steps to learn how to configure and play with Kinetis BLE Toolbox and Wireless Connectivity Applications.

  1. Open BLE Tool Box application in your mobile phone. Make sure that Bluetooth radio of the mobile phone is ON.
  2. Run Heart Rate Sensor application by pressing SW4 button of the FRDM-KW40Z. LED1 will stay ON indicating it is in advertising/discoverable mode.
  3. BLE Tool Box application will detect BLE Heart Rate Sensors near to the mobile phone as "FSL_BLE_HRS".
  4. Select the NXP Heart Rate Sensor to connect.
  5. Kinetis BLE Tool Box Heart Rate application will display data received from the Heart Rate Sensor.

4.1 Create your own project!

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

To create a clone of an example project:

  1. Launch the Project Cloner executable which is located at:
    \ConnSw\tools\project_cloner\project_cloner.exe
  2. 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 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.3 Open Your Project

Your new project will be located in path specified in the previous step . Open the project in IAR Embedded Workbench for Arm by using the same process described in Section 3.2.

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 Guide".

4.5 Kinetis SDK platform

The Wireless Connectivity Stack platforms make use of the Kinetis SDK low level drivers, take a look into the SDK Demo Applications if you want to add a driver that is not currently used on the Connectivity Demo Applications.