Cloud Testing 2

最終更新日時: 2023-11-09 12:38:00サポート CLOUD-PROD-TSP1

1. 接続

Let's take your FRDM-KW38 for a test drive! ショート・ビデオで手順を視聴するか、以下に記載された詳細な手順を参考にして、作業を進めてください。

1.1 Get Started with the FRDM-KW38 Development Board

1.2 USBケーブルを接続する

FRDM-KW38 Evaluation Board – top

1.3 クイック・スタート・デモを実行する

Your FRDM-KW38 comes loaded with a demo that flashes the multi-colored LEDs when you connect the board.

FRDM-KW38-LED-COLORS

Bluetooth Low Energy (LE) Beacon

The Bluetooth LE Beacon application demonstrates the beacon functionality. ビーコンは、3つのAdvertisingチャネルで送信される接続不可能なAdvertisingパケットです。パケットには次のフィールドがあります。

  • Company Identifier(会社の識別子)(2バイト):0x0025(Bluetooth SIGによって定義されたNXP ID)
  • Beacon Identifier (1 byte): 0xBC (Allows identifying an NXP Beacon alongside with the Company Identifier)
  • UUID(16バイト):ビーコン・センサの一意の識別子
  • A(2バイト):ビーコン・アプリケーション・データ
  • B(2バイト):ビーコン・アプリケーション・データ
  • C(2バイト):ビーコン・アプリケーション・データ
  • RSSI at 1 m (1 byte): Allows distance-based applications

By default, the UUID value is a random value based on the unique identifier of the board.

Application Usage

In order to see the beacons, please, download and install the NXP IoT Toolbox mobile application on a smartphone supporting Bluetooth LE.

Get it on Google Play

Once the NXP IoT Toolbox is installed. Open the application. Then, open the "Beacons" demo and the FRDM-KW38 Beacon will be displayed.

FRDMKW38-BEACON-APP-COMPLETE

The IoT Toolbox can also perform actions once the beacon is identified, as an example, with this demo the IoT Toolbox can show a message when the beacon is detected. You can enable the action by performing the next steps:

  1. Click in the beacon shown by the IoT Toolbox
  2. In the "Action" panel change the None option to Message
  3. Select the message to display when beacon is found. By default, it shows "Thank you for choosing NXP BLE solutions"
  4. Click on the check mark located in the top right corner
  5. Now, once the beacon is found, it will also display the preconfigured message
IOT-TOOLBOX-APP-IMG2 IOT-TOOLBOX-APP-IMG3

Finally, user can also turn off or deactivate the beacons by holding the SW2 button for about 2-3 seconds in the FRDM-KW38. If the user wants to activate the beacons again, just press SW2 button.

2. ソフトウェアの入手

2.1 Installing Software for the FRDM-KW38

2.2 Download MCUXpresso SDK with Connectivity Software

MCUXpresso SDK for the FRDM-KW38 includes all the wireless connectivity stacks required to develop your solution using Generic FSK, and Bluetooth Low Energy.

Click below to download a preconfigured SDK release for the FRDM-KW38 that includes all the wireless connectivity stacks for the KW38.

MCUXPRESSO-SDK-TN

MCUXpresso SDKを入手する

You can also use the online SDK Builder  to create a custom SDK package for the FRDM-KW38.

2.3 ツールチェーンをインストールする

NXPは、MCUXpresso IDEというツールチェーンを無償で提供しています。

MCUXpresso IDE

MCUXpresso IDEを入手する

別のツールチェーンを使用したい場合は?

問題ありません。MCUXpresso SDK connectivity stack software also supports IAR .

IAR

2.4 MCUXpresso Config Tools

MCUXpresso Config Toolsは、ユーザーがMCUXpresso SDKプロジェクトを新規に作成するための構成ツールの統合スイートであり、カスタム・ボード・サポート用の初期化Cコードを生成するためのピンとクロックのツールも備えています。

MCUXpresso Config Toolsを入手する

To learn more about the basic interactions between the tools while working with either an imported MCUXpresso SDK example project or creating a new project within the IDE, watch this three-part video series: Basic Application Development Using MCUXpresso IDE and MCUXpresso Config Tools.

2.5 PCを設定する

サンプル・アプリケーションの多くは、マイクロコントローラのUARTを介してデータを出力します。ボードの仮想COMポート用ドライバがインストールされているか必ず確認してください。ドライバ・インストーラを実行する際は、あらかじめボードをPCに接続してください。

ドライバをダウンロード

FRDM-K64F-GS-configuration

シリアル・ポート・ドライバをインストールした状態で、お好きなターミナル・アプリケーションを実行し、マイクロコントローラのUARTからのシリアル出力を確認します。ターミナルをボーレート115,200、8データ・ビット、パリティなし、1ストップ・ビットに設定します。To determine the port number of the FRDM-KW38's virtual COM port, open the device manager and look under the "Ports" group.

ターミナル・アプリケーションの使用方法がわからない場合は、Tera TermチュートリアルまたはPuTTYチュートリアルのいずれかのチュートリアルをお試しください。

Test of Save.

3. ビルドと実行

The FRDM-KW38 Wireless Connectivity software comes with a list of demo applications and driver examples ready to be compiled and run for each connectivity stack.

3.1 Gen FSK

Build and Run Connectivity Demos on the FRDM-KW38

3.2 Explore the Connectivity Example Code

Generic FSK

The KW38 Wireless Connectivity Software package comes with the Connectivity Test demo application for Generic FSK protocol. To see what's available, browse to the 'examples' folder: \boards\frdmkw38\wireless_examples\genfsk.

3.3 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 from the Wireless Connectivity Stacks in the MCUXpresso IDE or IAR Embedded Workbench IDE.

3.4 Bluetooth LE

Build and Run Connectivity Demos on the FRDM-KW38

3.5 Explore the Connectivity Example Codes

Bluetooth Low Energy

The KW38 Wireless Connectivity Software package comes with a long list of demo applications for Bluetooth Low Energy protocol. To see what's available, browse to the 'examples' folder: \boards\frdmkw38\wireless_examples\bluetooth.

3.6 Download the NXP IoT Toolbox for your Smartphone

In order to use the Bluetooth Low Energy and Hybrid examples, the NXP IoT Toolbox needs to be installed on a smartphone. This application provides several examples that can be used in conjunction with the connectivity stack to connect your phone to the development board over Bluetooth LE.

Get it on Google Play

3.7 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 from the Wireless Connectivity Stacks in the MCUXpresso IDE or IAR Embedded Workbench IDE.

3.8 Hybrid (Gen FSK + Bluetooth LE)

Build and Run Connectivity Demos on the FRDM-KW38

3.9 Explore the Connectivity Example Codes

Hybrid (Gen FSK + Bluetooth LE)

The KW38 Wireless Connectivity Software package comes with a hybrid demo application (Gen FSK + Bluetooth LE). To see the hybrid demo application, browse to the 'examples' folder: \boards\frdmkw38\wireless_examples\hybrid.

3.10 Download the NXP IoT Toolbox for your Smartphone

khfhfdjgfjhgfkj

3.11 Build, Run and Debug Wireless Connectivity Examples

jdhjgfhjfkjfjkgvh

4. Create an Application for the FRDM-KW38

4.1 MCUXpresso SDKからのサンプル・プロジェクトのクローンを作成する

オプションA:MCUXpresso IDEを使用して、サンプル・プロジェクトのクローンを作成します。

オプションB:MCUXpresso Config Toolを使用して、サード・パーティ製IDEで使用するために既存のMCUXpresso SDKのサンプルのクローンを作成します。

4.2 ピン・ツールの使用

次に、MCUXpresso Config Toolsのピン・ツールを使用し、プロジェクトに新しいGPIOピンを追加してLEDを点滅させる方法を紹介します。

4.3 クロック・ツールの使用

Next use the Clocks tool that is part of the MCUXpresso Config Tools to change the clock settings and change the rate that the LED blinks.

4.4 成功

With the application modified, you will see the FRDM-KW38's blue LED slowly blinking. また、ターミナル・プログラムを使用して、ターミナル出力を確認できます。

Tera Termチュートリアル

Tera Termチュートリアル

Tera Termは、広く利用されているオープン・ソースのターミナル・エミュレーション・アプリケーションです。このプログラムを使用して、NXP開発プラットフォームの仮想シリアル・ポートから送信された情報を表示できます。

  1. DownloadTera Term from SourceForge. ダウンロードしたら、インストーラを実行し、このウェブページに戻って手順を続行します
  2. ダウンロード

  3. Tera Termを起動します。初めて起動する際には、次のダイアログが表示されます。シリアル・オプションを選択します。ボードが接続されている場合は、COMポートが自動的にリスト内に表示されます
  4. Tera-Term-Connection
  5. 事前に確認したCOMポート番号を使用して、シリアル・ポートをボーレート115,200、8データ・ビット、パリティなし、1ストップ・ビットに設定します。この設定は[Setup(セットアップ)]->[Serial Port(シリアル・ポート)]から行うことができます
  6. 接続が確立されているか検証します。確立されている場合、Tera Termのタイトル・バーに次のように表示されます
  7. Tera-Term-Console
  8. 以上で設定は完了です

PuTTYチュートリアル

PuTTYチュートリアル

PuTTYは、広く利用されているターミナル・エミュレーション・アプリケーションです。このプログラムを使用して、NXP開発プラットフォームの仮想シリアル・ポートから送信された情報を表示できます。

  1. 下のボタンをクリックしてPuTTYをダウンロードします。ダウンロードしたら、インストーラを実行し、このウェブページに戻って手順を続行します
  2. ダウンロード

  3. 選択したダウンロードのタイプに応じて、ダウンロードした*.exeファイルをダブルクリックするか、[Start(スタート)]メニューから選択して、PuTTYを起動します
  4. In the window that launches, select the Serial radio button and enter the COM port number that you determined earlier. ボーレートもあわせて指定します。今回は115,200を入力します
  5. PUTTY-Configuration
  6. [Open(開く)]をクリックして、シリアル接続を確立します。ボードが接続されていて、正しいCOMポートが入力されていれば、ターミナル・ウィンドウが開きます。設定が正しくない場合は、アラートが表示されます
  7. 以上で設定は完了です

セキュリティと整合性

セキュリティと整合性

ドキュメントとビデオ 説明
AN4507 Using the Kinetis Security and Flash Protection Features Using the system security and flash protection features on Kinetis MCUs to protect code and data from unauthorized access or modification.

有線通信

有線通信

The FRDM-KW38 includes an NXP TJA1057 CAN transceiver and an NXP TJA1027 LIN transceiver.

ドキュメントとビデオ 説明
AN12377 Tuning I²C Timing in Target Mode How to configure the I²C timing of a responder device to meet application needs, which apply to Kinetis parts that contain I²C IP instead of LPI2C.
AN12948 Using LIN or CAN Bus to Upgrade Image on the KW36/38 How to use the LIN or CAN nodes, which have OTAP capability to upgrade the nodes, which have no OTAP capability, by LIN or CAN bus.

MCUXpresso SDKサンプル

SDKには複数のサンプル、デモ、ドライバが含まれており、初めて使用する際に役立ちます。有線通信に関するいくつかの一般的な例を以下に挙げます。

Bubble Demo (I²C example)

Demonstrates basic usage of the onboard accelerometer to implement a bubble level. A bubble level utilizes two axes to visually show deviation from a level plane (0 degrees) on a given axis.

Path: /boards/frdmkw38/demo_apps/bubble

LIN Demo

Demonstrates signal transfer between controller and responder nodes using the LIN stack driver built on Low Power UART.

Path: /boards/frdmkw38/demo_apps/lin_stack

シェルのデモ(UARTの例)

コマンドライン・シェル・アプリケーションの実装方法のデモ。

Path: /boards/frdmkw38/demo_apps/shell

ドライバ・サンプル

A number of driver examples exist within the SDK including I²C, DSPI, FLEXCAN and Low Power UART.

Path: /boards/frdmkw38/driver_examples

ワイヤレス・コネクティビティ

ワイヤレス・コネクティビティ

ドキュメントとビデオ 説明
AN12561 Kinetis KW38 Bluetooth Low Energy 5.0 Advertising Extension Enablement in Legacy Bluetooth Low Energy Examples Provides instructions on how to enable new Bluetooth Low Energy 5.0 Advertising extension features in a legacy Bluetooth Low Energy example.
AN2731 Compact Planar Antennas for 2.4 GHz Communication This document focuses on helping customers understand enough board layout and antenna basics to select a correct antenna type for their application and avoid typical layout mistakes that cause performance issues. Several popular antennas are presented as possible solutions for IEEE 802.15.4 and Bluetooth low energy applications.
AN12872 Anti-relay Attack Using GFSK This document introduces the anti-relay attack using GFSK, focusing on the multi-link monitoring concepts and applications. It proposes a system implementation using KW36 or KW38 Wireless MCU.
AN12977 KW38/KW36 Localization Based on RSSI Ranging Provides an introduction to localization based on the Bluetooth LE RSSI ranging. It implements a simple trilateral localization system using the Kinetis KW38 wireless MCU.
AN12517 FRDM-KW38 Co-existence with RF System Evaluation Report for Bluetooth Low Energy Application Provides the RF evaluation test results of the FRDM-KW38 for Bluetooth LE applications (2FSK modulation). It includes the test setup description and the tools used to perform the tests on your own.
AN12272 Use of Unique 40-bit MAC Address in Kinetis Wireless Microcontrollers Describes how IEEE MAC addresses are handled in the Bluetooth low energy (BLE) and IEEE 802.15.4.
FRDM-KW38 Radio Certification Documents FRDM-KW38 platforms have passed the CE RED and RCC radio certification. Find information on the certification documents and test reports here.
KW37/38/39 Bluetooth LE Range Performance Provides information on distance measurements depending on the Bluetooth LE data rate using the FRDM-KW38 board.

MCUXpresso SDKサンプル

SDKには複数のサンプル、デモ、ドライバが含まれており、初めて使用する際に役立ちます。Some common examples for wireless connectivity are listed below.

Bluetooth Low Energy Demos

How to use the Bluetooth Low Energy protocol.

Path: /boards/frdmkw38/wireless_examples/bluetooth

Generic FSK Demos

How to use the Generic FSK.

Path: /boards/frdmkw38/wireless_examples/genfsk

Hybrid Bluetooth LE and GenFSK Demo

How to use the Bluetooth Low Energy protocol and Generic FSK in a single application.

Path: /boards/frdmkw38/wireless_examples/hybrid

パワー・マネジメント

パワー・マネジメント

ドキュメントとビデオ 説明
AN4503 Power Management for Kinetis MCUs When and how to use Kinetis low-power modes.
AN12459 Kinetis KW38 Power Consumption Analysis Provides information about the power consumption of Kinetis KW39/38/37 wireless MCU when using BLE protocol and how the software and hardware are configured to achieve best low-power operation.
AN5025 MKW4xZ/3xZ/3xA/2xZ DC-DC Power Management Describes the usage and operation of the DC-DC switching Power Supply converter for the MKW4xZ/3xZ/3xA/2Xz families.
Configuration for Unused pins/GPIOs on Kinetis Best practices to configure a GPIO if the pin is not used.

MCUXpresso SDKサンプル

SDKには複数のサンプル、デモ、ドライバが含まれており、初めて使用する際に役立ちます。Some common examples for power management are listed below.

Power Mode Switch Demo

Demonstrates the use of power modes in the SDK.

Path: /boards/frdmkw38/demo_apps/power_mode_switch

パワー・マネージャのデモ

How to change power modes in the SDK.

Path: /boards/frdmkw38/demo_apps/power_manager

ADC Low Power Demo

Demonstrates the usage of the ADC peripheral while in a low power mode.

Path: /boards/frdmkw38/demo_apps/adc16_low_power

Bluetooth LE Responder Low Power Demo

Demonstrates the usage of low power mode on a Bluetooth LE responder device.

Path: /boards/frdmkw38/reference_design/bluetooth/lp

Bluetooth LE Controller Low Power Demo

Demonstrates the usage of low power mode on a Bluetooth LE controller device.

Path: /reference_design/bluetooth/lp_master

デバイス管理とセキュアOTA

デバイス管理とセキュアOTA

ドキュメントとビデオ 説明 ダウンロード
AN4282 Using the Kinetis Family Enhanced EEPROM Functionality Explains the features and usage of the Enhanced EEPROM functionality. -
FRDM-KW38 OpenSDA Bootloader and Application Webpage Provides information about the power consumption of Kinetis KW39/38/37 wireless MCU when using BLE protocol and how the software and hardware are configured to achieve best low-power operation. -
AN12979 KW38 Integrating the OTAP Client Service into a Bluetooth LE Peripheral Device Describes the integration of the Over The Air Profile into Bluetooth LE peripheral examples. ダウンロード
AN12980 KW38 Integrating the OTAP Client Service into a Bluetooth LE Central Device Describes the integration of the Over The Air Profile into Bluetooth LE examples. ダウンロード
Reprogramming a KW38 device using the OTAP Client Software This document guides to load a new software image in a KW38 device through (Over The Air Programming) OTAP Bluetooth LE service. -

MCUXpresso SDKサンプル

SDKには複数のサンプル、デモ、ドライバが含まれており、初めて使用する際に役立ちます。Some common examples for device management and secure OTA are listed below.

Bluetooth Low Energy Demos

How to use the Bluetooth Low Energy protocol.

Path: /boards/frdmkw38/wireless_examples/bluetooth

Flash Examples

Demonstrate flash driver usage in the SDK environment.

Path: /boards/frdmkw38/driver_examples/flash

Generic FSK Demos

How to use the Generic FSK.

Path: /boards/frdmkw38/wireless_examples/genfsk

Hybrid Bluetooth LE and GenFSK Demo

How to use the Bluetooth Low Energy protocol and Generic FSK in a single application.

Path: /boards/frdmkw38/wireless_examples/hybrid

サポート

トレーニング

Want to learn more about using the FRDM-KW38? オンラインの簡単な技術セッションから実践的な詳細トレーニングまで、さまざまなトレーニングを用意しています。

ドキュメントとビデオ 説明
MCUXpresso IDEとMCUXpresso Config Toolsを使用した基本的なアプリケーション開発 この3部構成のビデオ・シリーズでは、インポートされたSDKサンプル・プロジェクトを使用する際や新規プロジェクトを作成する際における、MCUXpresso IDEとConfig Tools間の基本的なインタラクションについて取り上げています。
AN12518 Hardware Design Considerations for MK39A/38A/37A/38Z/37Z Bluetooth LE Devices Describes Printed Circuit Board (PCB) design considerations for the MKW39A/38A/37A/38Z/37Z 48-pin QFN (HVQFN-7 x 7 Pitch 0.5 mm) wettable flank package. Included are layouts of the component copper layer, solder mask and solder paste stencil.
The Best Way to Build Your PCB Right the First Time Using the KW38 All of the important documents in one place concerning radio performance, low power and radio certification.
KW38 KW39 KW37 Hardware Board PCB Design-in Checklist Describes the usage and operation of the DC-DC switching Power Supply converter for the MKW4xZ/3xZ/3xA/2Xz families.
Project CHIPの未来を切り開く In this session, we'll take a closer look at Project CHIP and illustrate how NXP's portfolio is uniquely positioned to support Project CHIP-based designs.