Freescale MKW40Z IEEE Software Quick Start Guide

Similar documents
Quick Start Guide for FRDM-KL05Z

Quick Start Guide for the Freescale Freedom Development Platform FRDM-KL43Z

Quick Start Guide for FRDM-KL46Z Rev 1

OpenSDA on TWR-KW2x. User s Guide Rev 1.1

P1010RDB-PB Quick Start Guide

Component Development Environment Getting Started Guide

Quick Start Guide for FRDM-KL46Z Rev 1

New VLE Instructions for Improving Interrupt Handler Efficiency Robert Moran Applications Engineer Microcontroller Solutions Group

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Mask Set Errata for Mask 2N27B

Getting Started with Freescale MQX RTOS for Kinetis SDK and Kinetis Design Studio IDE

QCVS Frame Distributor Wizard User Guide

Getting Started with Freescale MQX RTOS for Kinetis SDK and MDK-ARM Keil

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

QN9080 QN908x RF Certification Guide

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

Adding a run control interface into an existing CodeWarrior for MCU v10.x project

MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

S12Z MagniV LIN Bootloader

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

IMXPINSQSUG Quick Start Guide on Pins Tool for i.mx Processors

Using the Xtrinsic FXOS8700CQ Command Line Interface Software

CodeWarrior U-Boot Debugging

Kinetis SDK Release Notes for the TWR-K24F120M Tower System Module

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

CodeWarrior Development Studio for Advanced Packet Processing v10.3.1

i.mxrt1060 Product Lifetime Usage Estimates

Freescale, the Freescale logo, AltiVec, C- 5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

FRDM-KE04Z User s Guide User Guide

How to Reduce SoC Power when Running M4 with A53 on i.mx8m

Using VRC_CTL to Control an External VDD_LV Supply on the MPC5748G

Kinetis SDK v Release Notes for KV5x Derivatives

Working around ERR7026 according to application needs

Migrating Applications from MC9S12VR64 to MC9S12VR32 by: Manuel Rodríguez

Load Position-Independent Code (PIC) on a Kinetis Platform Using the IAR EWARM Compiler

Contents 2. Contents

IMXPINSQSUG Pins Tool for i.mx Processors Installation User's Guide

Mask Set Errata for Mask 3N86B

i.mx 6ULZ Migration Guide

Quick Start Guide for FRDM-FXS-MULTI-B

FRDM-K64F Board Errata

Qorivva MPC5744P Evaluation Board 144LQFP Expansion Board User s Guide Barbara Johnson Applications Engineering

Getting Started with Freescale MQX RTOS for Kinetis SDK and ARM GCC

Freescale Kinetis Software Development Kit Release Notes

S32K1xx Bootloader. 1. Introduction. 2. Architecture description. NXP Semiconductors. Application Notes Rev. 1, 10/2018. Contents

Getting Started with MCUXpresso SDK CMSIS Packs

Exception and fault checking on S32K1xx

Choice of 2 technology platforms. Flexibility in Timing. Flexibility in Teams

Kinetis SDK v Release Notes for the MK21DA5 and MKW24D5 Devices

Building U-Boot in CodeWarrior ARMv8

TWR-LS1021A Getting Started

Kinetis USB-KW41Z Wireless Protocol Sniffer Quick Start Guide

Using MCUXpresso SDK CAN and LIN Drivers to Create a Bluetooth LE-CAN and Bluetooth LE-LIN Bridges on KW36/KW35

Emulating Dual SPI Using FlexIO

Using an External GCC Toolchain with CodeWarrior for Power Architecture

DDR Validation Tool Getting Started Guide

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis,

Stéphane Gervais-Ducouret

Differences Between S32K11x and S32K142

Getting Started with MQX RTOS for Kinetis SDK

Kinetis Bootloader v1.2.0 Release Notes

Offline Flash Programmer for Kinetis K- and L-series MCUs

S32 Design Studio for ARM v2.0

Wai Chee Wong Sr.Member of Technical Staff Freescale Semiconductor. Raghu Binnamangalam Sr.Technical Marketing Engineer Cadence Design Systems

Freescale MQX USB Stack for TWR-K24F120M GA User s Guide

TWR-LS1021A Getting Started

Production Flash Programming Best Practices for S32K1xx MCUs

Migration Guide from MKW36Z512xxx4 to MKW35Z512xxx4

Using the PASS module in MPC5748G to implement password-based protection for flash and debugger access

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Kinetis Updater User's Guide

Bharat Bhushan, Stuart Yoder

DDR Memory controller fundamentals review

Getting Started with FreeRTOS BSP for i.mx 7Dual

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

CodeWarrior Development Studio for StarCore 3900FP DSP v SP3 Release Notes

How to setup pre-build steps in CodeWarrior for Microcontrollers v10.x

HVP-KV10Z32 User s Guide

KIT09XS3400EVBE Evaluation Board User Guide Featuring the MC09XS3400

Emulating I2C Bus Master by using FlexIO

Freedom FRDM-MC-LVBLDC Development Platform User s Guide

Getting Started with the MCU Flashloader

Reference Design KL25-AGMP01 User Guide 10-Axis Data Logger Tool Kit

Processor Expert Software for i.mx Processors Version 1.0

General C Functions for the etpu Covers the MCF523x, MPC5500, MPC5600, MPC5700, MPX40 and all etpu-equipped Devices

S32 Design Studio for Vision 2.0

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C- Ware, the Energy Efficient Solutions logo, Kinetis,

Collecting Linux Trace without using CodeWarrior

CodeWarrior Development Studio for StarCore DSP SC3900FP Architectures Quick Start for the Windows Edition

Integrate TWR-EPD Software with MQX RTOS Based on the TWR-K21F120M Platform

HVP-KV31F120M User s Guide

KIT33663_EFEVB Evaluation Board Featuring the MC33663 Dual LIN Transceiver

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

MC34708TRN Rev /1/2011

S32R RADAR Signal Compression

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, t he Energy Efficient Solutions logo, mobilegt, PowerQUICC,

Installing Service Pack Updater Archive for CodeWarrior Tools (Windows and Linux) Quick Start

Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, C-Ware, the Energy Efficient Solutions logo, mobilegt, PowerQUICC,

MCUXpresso SDK USB Power Delivery

Transcription:

Freescale Semiconductor, Inc. Document Number: MKW40Z802154SW523QSG User's Guide Rev. 0, 09/2015 Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide This document is a brief presentation of the Freescale IEEE 802.15.4 MAC/PHY Software for the MKW40Z wireless microcontroller platforms, version 5.2.3. This software package is an add-on for the Kinetis Software Development Kit (KSDK). This document covers installation of the software packages, hardware setup, build and usage of the provided demo applications. Contents 1 Installation... 2 2 Building the Binaries... 2 2.1 Building the KSDK Libraries... 6 2.2 Building and Flashing the Freescale IEEE 802.15.4 Software Demo Applications... 7 3 Hardware Setup... 12 4 Example: Running the MyWirelessApp Demo Application... 13

1 Installation This section covers the steps for a successful installation of the required software packages: connectivity and Kinetis SDK. The first step is to download the KW40Z_Connectivity_Software_1.0.0.exe installer. Figure 1: The KW40Z Connectivity Software Installer On the main screen, press the Next button. Figure 2: KW40Z Installer main screen Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 2 Freescale Semiconductor, Inc.

On the License Agreement screen press the I agree button to accept the license agreement. Figure 3: License agreement screen On the next screen click Browse to select another destination folder for the KW40Z 802.15.4 MAC installation or click the Next button to continue. Figure 4: Destination folder selection screen Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

On the following screen uncheck the first two options and press the Next button. Figure 5: Component selection screen Select a Start Menu folder and press the Install button. Figure 6: KW40Z installer Start Menu Folder selection screen Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 4 Freescale Semiconductor, Inc.

Figure 7: KW40Z installation process Click Finish to close the installer. Figure 8: KW40Z 802.15.4 MAC installation complete The installer automatically creates or updates the KSDK_1_3_0_PATH environment variable required by the KW40Z MAC projects. Once the above steps are performed, you can start using the SMAC Demo Applications.Building the Binaries Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

2 Building the Binaries This section details the required steps for obtaining the binary files for usage with the boards. NOTE In order to be able to build any of these packages you need a copy of the IAR Embedded Workbench for ARM version 7.40.2 or higher. This connectivity software package does not include support for any other toolchains. The packages must be built with the debug configuration in order to enable debugging information. 2.1 Building the KSDK Libraries This release supports all development platforms based on the KW40Z wireless microcontroller. The KSDK platform libraries are RTOS dependent, so appropriate libraries must be built for the RTOS chosen. For any connectivity application, the following Kinetis SDK libraries must be built with the IAR Embedded Workbench for ARM in order to enable the complete board support and RTOS kernel support: Platform drivers library The location of the KSDK platform projects is described using the following placeholders for text: <ksdk_path> : represents the root path of the KSDK installation folder <device> : represents the board MCU: KW40Z4 <board> : represents the board: frdmkw40z <RTOS>: represents the Real Time Operating System Using the placeholders, these are the required Kinetis SDK v1.3.0 projects locations: <ksdk_path>\lib\ksdk_<rtos>_lib\iar\<device>\ksdk_<rtos>_lib.eww <ksdk_path>\lib\ksdk_platform_lib\iar\<device>\ksdk_platform_lib.eww NOTE The IAR projects for KSDK libraries are included in the IAR workspaces corresponding to the IEEE 802.15.4 demo applications and it is recommended to access them this way. Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 6 Freescale Semiconductor, Inc.

2.2 Building and Flashing the Freescale IEEE 802.15.4 Software Demo Applications This package includes various demo applications that can be used as a starting point. The next section presents the steps required for building the MAC_FSCI_app, using the following placeholders for text: <connectivity_path> : represents the root path for the Freescale IEEE 802.15.4 software package <board> : represents the target board for the demo app: frdmkw40z <demo_app> : represents the demo app name <RTOS> : represents the Real Time Operating System or bare metal scheduler The demo applications general folder structure is the following: <connectivity_path>\examples\ieee_802_15_4\<demo_app>\<board>\<rtos>\build\iar Freescale IEEE 802.15.4 Software Demo Application Build Example Selected app: MAC_FSCI_app Board: frdmkw40z Resulting location: <connectivity_path>\ examples\ieee_802_15_4\mac_fsci_app\frdmkw40z\freertos\build\iar\ Step 1: Navigate to the resulting location. Step 2: Open the highlighted IAR workspace file (*.eww file format): Figure 7: MAC_FSCI_app demo project location Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

Step 3: Select the KSDK FreeRTOS platform library project. Figure 8: KSDK FreeRTOS platform library IAR project Step 4: Build the KSDK FreeRTOS platform library project. Figure 9: KSDK FreeRTOS platform library build Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 8 Freescale Semiconductor, Inc.

Step 5: Select the MAC_FSCI_App project. Step 6: Build the MAC_FSCI_App project. Figure 10: MAC_FSCI_App FreeRTOS IAR project Figure 11: MAC_FSCI_APP FreeRTOS build Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

Step 7: Make the appropriate debugger settings in the project options window: Step 8: Figure 12: Debugger Settings Click the Download and Debug button to flash the executable onto the board. Figure 13: MAC_FSCI_App Download and Debug Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 10 Freescale Semiconductor, Inc.

NOTE The projects are configured with CMSIS-DAP firmware as the default debug configuration. Please make sure that your board s OpenSDA chip contains a CMSIS-DAP firmware or that the debugger selection corresponds to the physical interface used to interface to the boards. See the section below for more information. Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

3 Hardware Setup The hardware setup in this example uses a FRDM-KW40Z development platform shown in the figure below: Figure 14: FRDM-KW40Z The FRDM-KW40Z should have its OpenSDA (OpenLink) USB port connected via micro-usb cable to a Windows PC. The OpenSDA chip on the freedom platform should have appropriate firmware flashed, with debugging and virtual serial COM port capabilities. For more information on OpenSDA please refer to the following webpage: www.freescale.com/opensda. Variants of embedded firmware for the OpenSDA chip can be downloaded from: http://developer.mbed.org/handbook/cmsis-dap https://www.segger.com/opensda.html http://www.pemicro.com/opensda/ CMSIS-DAP is the default interface selected in the IAR Embedded Workbench for ARM projects included in this release. Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 12 Freescale Semiconductor, Inc.

4 Example: Running the MyWirelessApp Demo Application The MAC MyWirelessApp demo application requires a serial terminal program to connect to the boards. For this example, Tera Term was chosen. Step 1: Load the applications on the boards using IAR Embedded Workbench for ARM. This demo has two configurations: a coordinator and an end device. Figure 15: MyWirelessApp coordinator project Figure 16: MyWirelessApp end device project Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

Figure 17: MyWirelessApp end device loading stage example Figure 18: MyWireless app end device application loaded Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 14 Freescale Semiconductor, Inc.

Step 2: After loading both applications check Device Manager to get the serial ports numbers. These should appear with the prefix mbed Serial Port. Step 3: Figure 19: Device Manager serial port look up Using the port numbers specified in Device Manager, open two Tera Term instances and connect to the devices using the 115200 baud rate. To change the baud rate of the terminal go to Setup-> Serial Port menu. Figure 20: Select mbed serial connection COM port Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

Step 4: Figure 21: Setting correct baud rate Start the applications by pressing any available key on the FRDM boards: first the coordinator and then the end device. Figure 22: Both applications after a reset Figure 23: MyWirelessApp coordinator started The coordinator performs an energy detect scan to determine the least occupied channel and then selects it to start the network. The end device performs an active scan and after receiving a beacon from a coordinator, it issues an association request. Freescale MKW40Z IEEE 802.15.4 Software User's Guide Rev. 0, 09/2015 16 Freescale Semiconductor, Inc.

Figure 24: MyWirelessApp end device associated to coordinator After the association procedure completes, in the two terminal windows messages can be written to be exchanged by the two wireless nodes. Figure 25: MyWirelessApp message exchange The previous section demonstrates the basic steps to run a demo application. For detailed information about the demo applications, please refer the Demo Applications User s Guide included in the installer (802154MPDAUG.pdf). Freescale MKW40Z IEEE 802.15.4 Software Quick Start Guide Rev. 0, 09/2015 Freescale Semiconductor, Inc.

Home Page: freescale.com Web Support: freescale.com/support4 Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to any products herein. Freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. Typical parameters that may be provided in Freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. All operating parameters, including typicals, must be validated for each customer application by customer s technical experts. Freescale does not convey any license under its patent rights nor the rights of others. Freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: freescale.com/salestermsandconditions. Freescale, the Freescale logo, AltiVec, C-5, CodeTest, CodeWarrior, ColdFire, C-Ware, Energy Efficient Solutions logo, Kinetis, mobilegt, PowerQUICC, Processor Expert, QorIQ, Qorivva, StarCore, Symphony, and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, ColdFire+, CoreNet, Flexis, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, SMARTMOS, TurboLink, Vybrid, and Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The Power Architecture and Power.org word marks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org. The ARM Powered Logo is a trademark of ARM Limited. 2015 Freescale Semiconductor, Inc. Document number: MKW40Z802154SW523QSG Rev. 0 09/2015