2911|2

2144

帖子

3

TA的资源

五彩晶圆(中级)

楼主
 

【KW41Z】运行openthead的步骤 [复制链接]

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 /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
链接已隐藏,如需查看请登录或者注册
.

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

此帖出自NXP MCU论坛

最新回复

毕竟跑完了就没有然后了,这是个大问题 就是这样  详情 回复 发表于 2017-7-17 11:02
点赞 关注
个人签名电工
 

回复
举报

7671

帖子

2

TA的资源

五彩晶圆(高级)

沙发
 
毕竟跑完了就没有然后了,这是个大问题

就是这样
此帖出自NXP MCU论坛

点评

是啊 所以都没有跑。。 free有啥高见  详情 回复 发表于 2017-7-17 14:49
 
个人签名

默认摸鱼,再摸鱼。2022、9、28

 
 

回复

2144

帖子

3

TA的资源

五彩晶圆(中级)

板凳
 
freebsder 发表于 2017-7-17 11:02
毕竟跑完了就没有然后了,这是个大问题

就是这样

是啊
所以都没有跑。。
free有啥高见
此帖出自NXP MCU论坛
 
个人签名电工
 
 

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

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/6 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表