Timeout error is displayed on uploading code to TI

2019-08-28 01:58发布

问题:

Timeout error is displayed on flashing cc2650, performed the following steps:

  1. Mass erased the cc2650 module and put it in bootloader mode.
  2. Connected the cc2650 mote with ubuntu machine
  3. Compiled the client example for the target using the following command: make TARGET=srf06-cc26xx BOARD=launchpad/cc2650 savetarget
  4. Tried to flash the cc2650 module with the following command:
sudo make BOARD=launchpad/cc2650 PORT=/dev/ttyACM0 hello-world.upload

"ERROR: Timeout waiting for ACK/NACK after 'Get Status (0x23)'" error message is displayed:

sudo make BOARD=launchpad/cc2650 PORT=/dev/ttyACM0 hello-world.upload
using saved target 'srf06-cc26xx'
  CC        ../../cpu/cc26xx-cc13xx/lib/cc26xxware/startup_files/ccfg.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        hello-world.c
hello-world.c: In function 'process_thread_hello_world_process':
hello-world.c:26:11: warning: unused variable 'a2' [-Wunused-variable]
 int a1=7, a2=8;
           ^
hello-world.c:26:5: warning: unused variable 'a1' [-Wunused-variable]
 int a1=7, a2=8;
     ^
  LD        hello-world.elf
arm-none-eabi-objcopy -O binary --gap-fill 0xff hello-world.elf hello-world.bin
python ../../tools/cc2538-bsl/cc2538-bsl.py -e -w -v -p /dev/ttyACM0 hello-world.bin
Opening port /dev/ttyACM0, baud 500000
Reading data from hello-world.bin
Cannot auto-detect firmware filetype: Assuming .bin
Connecting to target...
CC2650 PG2.3 (7x7mm): 128KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x0001FFD8
Primary IEEE Address: 00:12:4B:00:0F:24:E2:01
Erasing all main bank flash sectors
    Erase done
Writing 131072 bytes starting at address 0x00000000
Write 128 bytes at 0x0001FF800
ERROR: Timeout waiting for ACK/NACK after 'Get Status (0x23)'
make: *** [hello-world.upload] Error 1
rm hello-world.co obj_srf06-cc26xx/fault-handlers.o obj_srf06-cc26xx/startup_gcc.o
标签: c contiki