element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Freedom development platform
  • Products
  • Dev Tools
  • Freedom development platform
  • More
  • Cancel
Freedom development platform
Blog Part-1: Getting started with FRDM-KW41Z [executing MKW41Z SMAC based Connectivity Test application]
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Freedom development platform to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bheemarao
  • Date Created: 24 Oct 2016 7:34 AM Date Created
  • Views 1154 views
  • Likes 2 likes
  • Comments 2 comments
  • ble + 15.4
  • smac connectivity application
  • frdm-kw41z
Related
Recommended

Part-1: Getting started with FRDM-KW41Z [executing MKW41Z SMAC based Connectivity Test application]

bheemarao
bheemarao
24 Oct 2016

This blog introduces to New  FRDM-KW41ZFRDM-KW41Z Wireless Microcontrollers(MCU development board and demonstrates the connectivity test application

 

The  FRDM-KW41ZFRDM-KW41Z development board is an evaluation environment supporting NXP’s KW41Z/31Z/21Z(KW41Z Wireless Microcontrollers(MCU The KW41Z integrates a radio transceiver operating in the 2.36 GHz to 2.48 GHz range(supporting a range of FSK/GFSK and O-QPSK modulations and an ARM Cortex-M0 MCU into a single package NXP supports the KW41Z with tools and software that include hardware evaluation and development boards software development IDE applications drivers custom PHY usable with IEEE Std 802.15.4 compatible MAC and BLE Link Layer

 

The  FRDM-KW41ZFRDM-KW41Z development board consists of the KW41Z device with a 32 MHz reference oscillator crystal RF circuitry(including antenna 4-Mbit external serial flash and supporting circuitry in the popular Freedom board form-factor The board is a standalone PCB and supports application development with NXP’s Bluetooth Low Energy Generic FSK and IEEE Std 802.15.4 protocol stacks including Thread

 

The  FRDM-KW41ZFRDM-KW41Z Freedom development board is a small low-power and cost-effective evaluation and development board for application prototyping and demonstration of the KW41Z/31Z/21Z(KW41Z family of devices These evaluation boards offer easy-to-use mass-storage-device mode flash programmer a virtual serial port and standard programming and run-control capabilities

The KW41Z is an ultra-low-power, highly integrated single-chip device that enables Bluetooth Low Energy (BLE), Generic FSK (at 250, 500, and 1000 kbps) or IEEE Standard 802.15.4 with Thread support for portable, extremely low-power embedded systems.

 

The Kinetis KW41Z/31Z/21Z MCU family for wireless applications is the second Multi-mode family in the Kinetis W series portfolio. Primarily used for automation and Healthcare purposes, these MCUs enable low-energy and long-range connectivity.

 

The FRDM KW41Z development board has the following features:

 

• NXP’s ultra-low-power KW41Z Wireless MCU supporting BLE, Generic FSK, and IEEE Std. 802.15.4 (Thread) platforms

• IEEE Std. 802.15.4-2006 compliant transceiver supporting 250 kbps O-QPSK data in 5.0 MHz channels, and full spread-spectrum encoding and decoding

• Fully compliant Bluetooth v4.2 Low Energy (BLE)

• Reference design area with small-footprint, low-cost RF node:

— Single-ended input/output port

— Low count of external components

— Programmable output power from -30 dBm to +3.5 dBm at the SMA connector, when using DCDC Bypass or operating the DCDC in Buck mode

— Receiver sensitivity is -100 dBm, typical (@1 % PER for 20-byte payload packet) for 802.15.4 applications, at the SMA connector

— Receiver sensitivity is -95 dBm (for BLE applications) at the SMA connector

• Integrated PCB inverted F-type antenna and SMA RF port (requires moving C7 to C8)

• Selectable power sources

• DC-DC converter with Buck, Boost, and Bypass operation modes

• 32 MHz reference oscillator

• 32.768 kHz reference oscillator

• 2.4 GHz frequency operation (ISM and MBAN)

• 4-Mbit (512 kB) external serial flash memory for Over-the-Air Programming (OTAP) support

• NXP FXOS8700CQ Digital Sensor, 3D Accelerometer (±2g/±4g/±8g) + 3D Magnetometer

• Integrated Open-Standard Serial and Debug Adapter (OpenSDA)

• Cortex 10-pin (0.05) SWD debug port for target MCU

• Cortex 10-pin (0.05) JTAG port for OpenSDA updates

• One RGB LED indicator

• One red LED indicator

• Two push-button switches

• Two TSI buttons (Touch Sensing Input electrodes)


image

The software package contains RTOS-based and KSDK-based framework, drivers, connectivity stack with SMAC as layer two, and several demonstration applications. The application projects are developed using the IAR Embedded WorkbenchRegistered IDE and Kinetis Design Studio IDE.

 

Out-Of-Box Demo

FRDM-KW41ZFRDM-KW41Zboard comes loaded with a demo that flashes the multi-colored LEDs when you connect the board If you do not see the LEDs flashing first unplug and replug in the board

image

Preliminaries:

1. Download KW41Z Connectivity Software

The KW41Z Connectivity Software package integrates the Kinetis Software Development Kit v2.0 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 KW41Z Connectivity Software appropriate for your computer's operating system.

http://www.nxp.com/webapp/Download?colCode=KW41Z-CONNECTIVITY-SOFTWARE&appType=license&location=null&Parent_nodeId=1470861923476723569569&Parent_pageType=product

 

After installation you can find Connectivity Example Codes at below folder location:

C:\NXP\MKW41Z_ConnSw_1.0.2

 

2.Install Your Toolchain

NXP offers a complimentary toolchain called Kinetis Design Studio (KDS) https://nxp.flexnetoperations.com/control/frse/download?element=7490587

The KW41Z Connectivity Software includes support for other tools such as IAR (https://www.iar.com/iar-embedded-workbench/freescale/)

 

3. Optional J-Link driver

If you are facing problem in connecting the board in KDS debug environment for the  FRDM-KW41ZFRDM-KW41Z board you need to update J-Link driver“JLinkWindowsV610g.exe for newly introduced KW41Z family devices from below link

https://www.segger.com/downloads/jlink/JLink_Windows_V610g.exe

 

 

SMAC-based Connectivity Test demonstration applications

 

The MKW41Z Connectivity Test application is a SMAC-based demonstration application which enables testing basic transmission/reception functionalities and includes several advanced testing features based on the ASP and SMAC APIs.

 

Below are the steps to be followed:

1. Load and build the demo application in Kinetis Design Studio.

2. Download and run the demo application.

 

Load and build the application demo

Open KDS tool and select below options:

 

image

 

Select "File->Import" from the KDS IDE menu. In the window that appears, expand the "General" folder and select "Existing Projects into Workspace". Then, click the "Next" button.

 

As we have installed the KW41 connectivity software at below location: point the browse option to this location or copy the path and paste it as shown in picture

“C:\nxp\MKW41Z_ConnSw_1.0.2\boards\frdmkw41z\wireless_examples\smac\connectivity_test\FreeRTOS\kds”

 

image

Click the "Finish" button.

Now project is opened in our workspace as shown below:

image

 

Building the project demo:

 

There are two project configurations (build targets) supported for each KSDK project:

Debug – Compiler optimization is set to low, and debug information is generated for the executable. This target should be selected for development and debug.

Release – Compiler optimization is set to high, and debug information is not generated. This target should be selected for final application deployment.

Choose the appropriate build target, "Debug" or "Release", by clicking the downward facing arrow next to the hammer icon, as shown below. For this example, select the "Debug" target.

 

Now click on build the project.  The application will begin building after the build target is selected

image

It builds successfully without errors and can be seen in console tab

image

Download and Run the application demo

 

To begin debug Connect your  FRDM-KW41ZFRDM-KW41Z board to your PC And click on debug configuration

image

Select the options as shown below:

 

In the Debug Configurations dialog box, select the J-Link debug configuration that corresponds to the build you are targeting: debug or release. This example focuses on the debug build.

After selecting the debugger interface, click the "Debug" button to launch the debugger.

image

Note if you are facing problem in connecting the board in KDS debug environment for the  FRDM-KW41ZFRDM-KW41Z board you need to update J-Link driver“JLinkWindowsV610g.exe for newly introduced KW41Z family devices from below link

https://www.segger.com/downloads/jlink/JLink_Windows_V610g.exe

 

The application is downloaded to the target and automatically runs to main():

image

We will continue the connectivity demo in next blog of Part-2: Executing SMAC connectivity demo application on terminal window

  • Sign in to reply
  • bheemarao
    bheemarao over 8 years ago in reply to mikeyd

    Hi Michael,

     

    i have created another tutorial on BLE Wireless UART:

     

    Wireless UART demo using Kinetis BLE android app with FRDM-KW41Z Freedom Board

     

    Regards

    Bheema Rao

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mikeyd
    mikeyd over 8 years ago

    Great getting started tutorial.. I found it very useful - I hope you do some further ones on Thread & BLE with the KW41Z

     

    Cheers

     

    Michael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube