闪烁的cc2650上显示超时错误,具体步骤如下:
make TARGET=srf06-cc26xx BOARD=launchpad/cc2650 savetarget
sudo make PORT=/dev/ttyACM0 BOARD=launchpad/cc2650 client.upload
sudo make PORT=/dev/ttyACM0 BOARD=launchpad/cc2650 client.upload
[sudo] password for subhanshu:
using saved target 'srf06-cc26xx'
CC ../../../cpu/cc26xx-cc13xx/lib/cc26xxware/startup_files/ccfg.c
CC ../../../platform/srf06-cc26xx/launchpad/launchpad-sensors.c
CC ../../../platform/srf06-cc26xx/common/ext-flash.c
CC ../../../platform/srf06-cc26xx/common/board-spi.c
CC ../../../cpu/cc26xx-cc13xx/./ieee-addr.c
AR contiki-srf06-cc26xx.a
CC ../../../cpu/cc26xx-cc13xx/./fault-handlers.c
CC ../../../cpu/cc26xx-cc13xx/lib/cc26xxware/startup_files/startup_gcc.c
CC client.c
LD client.elf
arm-none-eabi-objcopy -O binary --gap-fill 0xff client.elf client.bin
python ../../../tools/cc2538-bsl/cc2538-bsl.py -e -w -v -p /dev/ttyACM0 client.bin
Opening port /dev/ttyACM0, baud 500000
Reading data from client.bin
Cannot auto-detect firmware filetype: Assuming .bin
Connecting to target...
ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
../../../cpu/cc26xx-cc13xx/Makefile.cc26xx-cc13xx:152: recipe for target 'client.upload' failed
make: *** [client.upload] Error 1
答案 0 :(得分:0)
要通过.upload
目标成功闪烁,该板必须处于引导加载程序模式。
要在TI Launchpad上进入引导加载程序模式,请执行以下操作:
完成此操作后,在主机上运行make client.upload
将刷新主板。
更具体地说,在主板复位期间,需要启用引导加载程序模式的固件配置,并且引导加载程序引脚需要处于正确的电平。 CCXXWARE_CONF_BL_LEVEL
和CCXXWARE_CONF_BL_PIN_NUMBER
是此处的相关定义(分别是级别和引脚号)。在Contiki和Contiki-NG中,默认情况下启用了引导加载程序模式,并且TI Launchpads映射到了左用户按钮。
例如,可以使用德州仪器(TI)提供的Uniflash应用程序通过JTAG刷新固件的另一种方式。