This directory contains example platform drivers for the NXP(Freescale) Kinetis MKW41Z512 based on FRDM-KW41Z hardware platform.
The example platform drivers are intended to present the minimal code necessary to support OpenThread. As a result, the example platform drivers do not necessarily highlight the platform's full capabilities.
Download and install the GNU toolchain for ARM Cortex-M.
$ cd <path-to-openthread> $ ./bootstrap $ make -f examples/Makefile-kw41z
After a successful build, the elf
files are found in <path-to-openthread>/output/kw41z/bin
. You can convert them to bin
files using arm-none-eabi-objcopy
:
$ arm-none-eabi-objcopy -O binary ot-cli-ftd ot-cli-ftd.bin
Compiled binaries may be flashed onto the MKW41Z512 using drag-and-drop into the board's MSD Bootloader or the NXP(Freescale) Test Tool or JTAG interface. The NXP(Freescale) Test Tool provides a convenient method for flashing a MKW41Z512 via the J-Link.
Prepare two boards with the flashed CLI Example
(as shown above).
The CLI example uses UART connection. To view raw UART output, start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
Open a terminal connection on the first board and start a new Thread network.
> panid 0xabcd Done > ifconfig up Done > thread start Done
> state Leader
> panid 0xabcd Done > ifconfig up Done > thread start Done
> state Child
> ipaddr fdde:ad00:beef:0:0:ff:fe00:fc00 fdde:ad00:beef:0:0:ff:fe00:9c00 fdde:ad00:beef:0:4bcb:73a5:7c28:318e fe80:0:0:0:5c91:c61:b67c:271c
> ping fdde:ad00:beef:0:0:ff:fe00:fc00 16 bytes from fdde:ad00:beef:0:0:ff:fe00:fc00: icmp_seq=1 hlim=64 time=8ms
For a list of all available commands, visit OpenThread CLI Reference README.md.