1.. _frdm_kw41z_shield:
2
3NXP FRDM-KW41Z Shield
4#####################
5
6Overview
7********
8
9The FRDM-KW41Z is a development kit enabled by the Kinetis |reg| W series
10KW41Z/31Z/21Z (KW41Z) family built on ARM |reg| Cortex |reg|-M0+ processor with
11integrated 2.4 GHz transceiver supporting Bluetooth |reg| Smart/Bluetooth
12|reg| Low Energy
13(BLE) v4.2, Generic FSK, IEEE |reg| 802.15.4 and Thread.
14
15The FRDM-KW41Z can be used as a standalone board or as an Arduino shield. This
16document covers usage as a shield; see :zephyr:board:`frdm_kw41z` for usage as a
17standalone board.
18
19Bluetooth Controller
20********************
21
22To use the FRDM-KW41Z as a Bluetooth low energy controller shield with a serial
23host controller interface (HCI):
24
25#. Download the MCUXpresso SDK for FRDM-KW41Z from the `MCUXpresso SDK Builder
26   Website`_.
27
28#. Open the MCUXpresso IDE or IAR project in
29   :file:`boards/frdmkw41z/wireless_examples/bluetooth/hci_black_box/bm`
30
31#. Open :file:`source/common/app_preinclude.h` and add the following line:
32
33   .. code-block:: console
34
35      #define gSerialMgrRxBufSize_c 64
36
37#. Build the project to generate a binary :file:`hci_black_box_frdmkw41z.bin`.
38
39#. Connect the FRDM-KW41Z board to your computer with a USB cable. A USB mass
40   storage device should enumerate.
41
42#. Program the binary to flash by copying it to the USB mass storage device.
43
44#. Remove the USB cable to power down the board.
45
46#. Configure the jumpers J30 and J31 such that:
47
48   - J30 pin 1 is attached to J31 pin 2
49   - J30 pin 2 is attached to J31 pin 1
50
51   The jumpers should be parallel to the Arduino headers. This configuration
52   routes the UART RX and TX signals to the Arduino header, rather than to the
53   OpenSDA circuit.
54
55#. Attach the FRDM-KW41Z to the Arduino header on your selected main board,
56   such as :zephyr:board:`mimxrt1050_evk` or :zephyr:board:`frdm_k64f`.
57
58#. Set ``--shield frdm_kw41z`` when you invoke ``west build`` in
59   your Zephyr bluetooth application. For example,
60
61   .. zephyr-app-commands::
62      :zephyr-app: samples/bluetooth/peripheral_hr
63      :board: frdm_k64f
64      :shield: frdm_kw41z
65      :goals: build
66
67References
68**********
69
70.. target-notes::
71
72.. _MCUXpresso SDK Builder Website:
73   https://mcuxpresso.nxp.com
74