Tool/software: Code Composer Studio
Hi,
I am using launchxl-cc2640r2 kit. i want to upgrade firmware with python script(link : github.com/.../cc2538-bsl) from ROM bootloader. i am not able to upgrade.
below is code configuration and error log.
//#####################################
// Bootloader settings
//#####################################
#ifndef SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE
//#define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0x00 // Disable ROM boot loader
#define SET_CCFG_BL_CONFIG_BOOTLOADER_ENABLE 0xC5 // Enable ROM boot loader
#endif
#ifndef SET_CCFG_BL_CONFIG_BL_LEVEL
#define SET_CCFG_BL_CONFIG_BL_LEVEL 0x0 // Active low to open boot loader backdoor
//#define SET_CCFG_BL_CONFIG_BL_LEVEL 0x1 // Active high to open boot loader backdoor
#endif
#ifndef SET_CCFG_BL_CONFIG_BL_PIN_NUMBER
#define SET_CCFG_BL_CONFIG_BL_PIN_NUMBER 0x0e // DIO number for boot loader backdoor
#endif
#ifndef SET_CCFG_BL_CONFIG_BL_ENABLE
#define SET_CCFG_BL_CONFIG_BL_ENABLE 0xC5 // Enabled boot loader backdoor
// #define SET_CCFG_BL_CONFIG_BL_ENABLE 0xFF // Disabled boot loader backdoor
#endif
---- LOG ----
$ sudo python3.5 cc2538-bsl.py -e -w -V -p /dev/ttyACM0 -b 115200 release/Handset_oad_all.bin
Opening port /dev/ttyACM0, baud 115200
Reading data from release/Handset_oad_all.bin
Firmware file: Raw Binary
Connecting to target...
*** sending synch sequence
Traceback (most recent call last):
File "cc2538-bsl.py", line 1149, in <module>
if not cmd.sendSynch():
File "cc2538-bsl.py", line 392, in sendSynch
return self._wait_for_ack("Synch (0x55 0x55)", 2)
File "cc2538-bsl.py", line 275, in _wait_for_ack
% (info,))
CmdException: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'