社区导航

 
快捷导航
  • 首页
  • 论坛
  • 查看新帖
  • 最新回复
  • 精华区
  • 社区活动
  • 联系管理员
  • 消灭零回复
  • E金币兑换
搜索
查看: 478|回复: 2

[讨论] 【KW41Z】运行openthead的步骤

[复制链接]

2348

TA的帖子

3

TA的资源

五彩晶圆(中级)

Rank: 8Rank: 8

发表于 2017-7-16 16:17:22 | 显示全部楼层 |阅读模式
OpenThread on NXP(Freescale) Kinetis MKW41Z512 Example
This directory contains example platform drivers for the NXP(Freescale) Kinetis MKW41Z512 based on FRDM-KW41Zhardware 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.
Toolchain
Download and install the GNU toolchain for ARM Cortex-M.
Build Examples$ 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 binfiles using arm-none-eabi-objcopy:
$ arm-none-eabi-objcopy -O binary ot-cli-ftd ot-cli-ftd.bin
Flash Binaries
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.
Running the example
  • 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:
    • Baud rate: 115200
    • 8 data bits
    • 1 stop bit
    • No parity
    • No flow control
  • Open a terminal connection on the first board and start a new Thread network.

> panid 0xabcdDone> ifconfig upDone> thread startDone
  • After a couple of seconds the node will become a Leader of the network.
> stateLeader
  • Open a terminal connection on the second board and attach a node to the network.
> panid 0xabcdDone> ifconfig upDone> thread startDone
  • After a couple of seconds the second node will attach and become a Child.
> stateChild
  • List all IPv6 addresses of the first board.
> ipaddrfdde:ad00:beef:0:0:ff:fe00:fc00fdde:ad00:beef:0:0:ff:fe00:9c00fdde:ad00:beef:0:4bcb:73a5:7c28:318efe80:0:0:0:5c91:c61:b67c:271c
  • Choose one of them and send an ICMPv6 ping from the second board.
> ping fdde:ad00:beef:0:0:ff:fe00:fc0016 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.

以上是KW41Z运行openthread的方法,参考platform/kw41z下面的readme文档即可
按照toolchain属于第一步,然后指定平台make即可,整个过程很简单,暂时就不拿板子跑了。
毕竟跑完了就没有然后了,这是个大问题,所以我们要思考学习什么,有个侧重点。

电工

回复

使用道具 举报

1258

TA的帖子

2

TA的资源

纯净的硅(高级)

Rank: 6Rank: 6

发表于 2017-7-17 11:02:26 | 显示全部楼层
毕竟跑完了就没有然后了,这是个大问题

就是这样

点评

是啊 所以都没有跑。。 free有啥高见  详情 回复 发表于 2017-7-17 14:49
人已离开,无事别找,找也找不到。

回复

使用道具 举报

2348

TA的帖子

3

TA的资源

五彩晶圆(中级)

Rank: 8Rank: 8

 楼主| 发表于 2017-7-17 14:49:33 | 显示全部楼层
freebsder 发表于 2017-7-17 11:02
毕竟跑完了就没有然后了,这是个大问题

就是这样

是啊
所以都没有跑。。
free有啥高见
电工

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 论坛活动 E手掌握

    扫码关注
    EEWORLD 官方微信

  • EE福利  唾手可得

    扫码关注
    EE福利 唾手可得

小黑屋|手机版|Archiver|电子工程世界 ( 京ICP证 060456

GMT+8, 2017-9-23 22:39 , Processed in 0.258070 second(s), 16 queries , Redis On.

快速回复 返回顶部 返回列表