一、编译
在安装的环境中,进入border-router目录,编译border-router.c。
具体命令:
cd contiki/examples/cc2530dk/border-router
make border-router
运行之后报错:
缺少srec_cat工具,此工具可将bin转换为hex。安装此工具,执行命令:
sudo apt-get install srecord
再次进行编译,之后在border-router目录下,有border-router.hex文件
二、烧写
在border-router目录下,有border-router.hex文件。将其拷贝至widows环境下,通过SmartRFFlash Programmer烧写工具烧写到节点。