Part 1
요약·해설
MCUXpresso hci_black_box binary 생성부터 USB flash, J30/J31 교차 배선, main board 장착과 Zephyr build까지 9단계로 설명합니다.
Arm Cortex-M0+
BLE 4.2 · FSK · 802.15.4
Serial HCI · UART
hci_black_box
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
4513F85FA11AE2D6D1DDE8D318CF3CF834C0D7BF6C66AF56B5DEF9C7FA8501C6
.. _frdm_kw41z_shield:
NXP FRDM-KW41Z Shield
#####################
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`.
#. Set ``--shield frdm_kw41z`` when you invoke ``west build`` in
your Zephyr bluetooth application. For example,
.. zephyr-app-commands::
:zephyr-app: samples/bluetooth/peripheral_hr
:board: frdm_k64f
:shield: frdm_kw41z
:goals: build
References
**********
.. target-notes::
.. _MCUXpresso SDK Builder Website:
https://mcuxpresso.nxp.com
Part 3
한국어 전문 번역
개요
FRDM-KW41Z는 Arm Cortex-M0+ processor 기반 Kinetis W series KW41Z/31Z/21Z family를 사용하는 development kit입니다. Integrated 2.4GHz transceiver는 Bluetooth Smart/Bluetooth Low Energy(BLE) v4.2, Generic FSK, IEEE 802.15.4, Thread를 지원합니다.
FRDM-KW41Z는 standalone board 또는 Arduino shield로 사용할 수 있습니다. 이 문서는 shield로 사용하는 방법을 다룹니다.
Bluetooth controller로 준비하기
FRDM-KW41Z를 serial HCI(host controller interface)를 사용하는 Bluetooth Low Energy controller shield로 만들려면 다음 순서로 준비합니다.
- MCUXpresso SDK Builder에서 FRDM-KW41Z용 MCUXpresso SDK를 내려받습니다.
- MCUXpresso IDE 또는 IAR에서
boards/frdmkw41z/wireless_examples/bluetooth/hci_black_box/bmproject를 엽니다. source/common/app_preinclude.h를 열고 다음 정의를 추가합니다.#define gSerialMgrRxBufSize_c 64- Project를 빌드해
hci_black_box_frdmkw41z.binbinary를 생성합니다. - USB cable로 FRDM-KW41Z를 computer에 연결합니다. USB mass-storage device가 나타나야 합니다.
- 생성한 binary를 USB mass-storage device에 복사해 flash에 program합니다.
- USB cable을 제거해 board 전원을 끕니다.
J30 pin 1 → J31 pin 2,J30 pin 2 → J31 pin 1이 되도록 J30/J31 jumper를 교차 연결합니다. Jumper는 Arduino header와 평행해야 합니다. 이 configuration은 UART RX/TX를 OpenSDA circuit 대신 Arduino header로 보냅니다.- FRDM-KW41Z를 i.MX RT1050 EVK나 FRDM-K64F 같은 main board의 Arduino header에 장착합니다.
Zephyr application 빌드
Bluetooth application에서 west build를 실행할 때 --shield frdm_kw41z를 지정합니다. 다음 예시는 FRDM-K64F용 heart-rate peripheral sample입니다.
west build -b frdm_k64f --shield frdm_kw41z samples/bluetooth/peripheral_hr
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.