CC2538DK+contiki下载程序问题
您好,
我现在刚购买一套CC2538DK开发套件,里面有2套SmartRF06+CC2538子板,想运行一下Contiki 3.0中CC2538的例子,在Instant Contiki用make编译生成/contiki-release-3-0/examples/cc2538dk中的例子,得到cc2538-demo.elf和cc2538-demo.bin等文件。但是当运行make cc2538-demo.upload的时候,显示如下错误:
using saved target 'cc2538dk'
fatal: Not a git repository: '../../.git'
CC ../../cpu/cc2538/./ieee-addr.c
AR contiki-cc2538dk.a
CC ../../cpu/cc2538/cc2538.lds
CC ../../cpu/cc2538/./startup-gcc.c
CC cc2538-demo.c
LD cc2538-demo.elf
arm-none-eabi-objcopy -O binary --gap-fill 0xff cc2538-demo.elf cc2538-demo.bin
python ../../tools/cc2538-bsl/cc2538-bsl.py -e -w -v cc2538-demo.bin
File "../../tools/cc2538-bsl/cc2538-bsl.py", line 5
<!DOCTYPE html>
^
SyntaxError: invalid syntax
make: *** [cc2538-demo.upload] Error 1
rm cc2538-demo.co obj_cc2538dk/startup-gcc.o
烧写程序按照https://github.com/contiki-os/contiki/blob/master/platform/cc2538dk/README.md这里面Build your First Examples的方法来做,但显示如上错误。不知道是什么原因?谢谢
有一个CC2538DK运行contiki的例子,可以作为参考:http://embedded-funk.net/compiling-contiki-2-7-demo-for-cc2538dk-on-ms-windows/
好的,谢谢,这个例子很好。但是里面有两处问题,我在InstantContiki中用make编译cc2538dk的例子可以正常编译,但是用make cc2538-demo.upload和
make NODEID=0x79ab下载编译好的文件或是想要修改MAC地址,都下不进去,这是为什么呢?