2018-11-01 08:40:27 +08:00
|
|
|
.. _frdm_kw41z_shield:
|
|
|
|
|
2019-08-29 01:53:36 +08:00
|
|
|
NXP FRDM-KW41Z Shield
|
|
|
|
#####################
|
2018-11-01 08:40:27 +08:00
|
|
|
|
|
|
|
Overview
|
|
|
|
********
|
|
|
|
|
|
|
|
The FRDM-KW41Z is a development kit enabled by the Kinetis |reg| W series
|
|
|
|
KW41Z/31Z/21Z (KW41Z) family built on ARM |reg| Cortex |reg|-M0+ processor with
|
|
|
|
integrated 2.4 GHz transceiver supporting Bluetooth |reg| Smart/Bluetooth
|
|
|
|
|reg| Low Energy
|
|
|
|
(BLE) v4.2, Generic FSK, IEEE |reg| 802.15.4 and Thread.
|
|
|
|
|
|
|
|
The FRDM-KW41Z can be used as a standalone board or as an Arduino shield. This
|
|
|
|
document covers usage as a shield; see :ref:`frdm_kw41z` for usage as a
|
|
|
|
standalone board.
|
|
|
|
|
|
|
|
Bluetooth Controller
|
|
|
|
********************
|
|
|
|
|
|
|
|
To use the FRDM-KW41Z as a Bluetooth low energy controller shield with a serial
|
|
|
|
host controller interface (HCI):
|
|
|
|
|
|
|
|
#. Download the MCUXpresso SDK for FRDM-KW41Z from the `MCUXpresso SDK Builder
|
|
|
|
Website`_.
|
|
|
|
|
|
|
|
#. Open the MCUXpresso IDE or IAR project in
|
|
|
|
:file:`boards/frdmkw41z/wireless_examples/bluetooth/hci_black_box/bm`
|
|
|
|
|
|
|
|
#. Open :file:`source/common/app_preinclude.h` and add the following line:
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
#define gSerialMgrRxBufSize_c 64
|
|
|
|
|
|
|
|
#. Build the project to generate a binary :file:`hci_black_box_frdmkw41z.bin`.
|
|
|
|
|
|
|
|
#. Connect the FRDM-KW41Z board to your computer with a USB cable. A USB mass
|
|
|
|
storage device should enumerate.
|
|
|
|
|
|
|
|
#. Program the binary to flash by copying it to the USB mass storage device.
|
|
|
|
|
|
|
|
#. Remove the USB cable to power down the board.
|
|
|
|
|
|
|
|
#. Configure the jumpers J30 and J31 such that:
|
|
|
|
- J30 pin 1 is attached to J31 pin 2
|
|
|
|
- J30 pin 2 is attached to J31 pin 1
|
|
|
|
The jumpers should be parallel to the Arduino headers. This configuration
|
|
|
|
routes the UART RX and TX signals to the Arduino header, rather than to the
|
|
|
|
OpenSDA circuit.
|
|
|
|
|
|
|
|
#. Attach the FRDM-KW41Z to the Arduino header on your selected main board,
|
|
|
|
such as :ref:`mimxrt1050_evk` or :ref:`frdm_k64f`.
|
|
|
|
|
2019-08-26 01:06:22 +08:00
|
|
|
#. Set ``-DSHIELD=frdm_kw41z`` when you invoke ``west build`` in
|
2019-06-14 03:59:12 +08:00
|
|
|
your Zephyr bluetooth application. For example,
|
2019-02-13 03:07:45 +08:00
|
|
|
|
|
|
|
.. zephyr-app-commands::
|
|
|
|
:zephyr-app: samples/bluetooth/peripheral_hr
|
|
|
|
:board: frdm_k64f
|
|
|
|
:shield: frdm_kw41z
|
|
|
|
:goals: build
|
2018-11-01 08:40:27 +08:00
|
|
|
|
|
|
|
References
|
|
|
|
**********
|
|
|
|
|
|
|
|
.. target-notes::
|
|
|
|
|
|
|
|
.. _MCUXpresso SDK Builder Website:
|
|
|
|
https://mcuxpresso.nxp.com
|