crash.software
Projects
Pull Requests
Issues
Builds
CatSniffer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
CatSniffer
Files
🤬
Sign In
82c30b5a
ROOT
/
firmware
/
cc2538-bsl
/
cc2538-bsl.py
Search
History
1308 lines
|
ISO-8859-1
|
47 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Popen
PIPE
sys
getopt
glob
time
os
struct
binascii
traceback
magic
have_magic
IntelHex
have_hex_support
QUIET
serial
mdebug
(level,message,attr='\n')
CHIP_ID_STRS
RETURN_CMD_STRS
COMMAND_RET_SUCCESS
COMMAND_RET_UNKNOWN_CMD
COMMAND_RET_INVALID_CMD
COMMAND_RET_INVALID_ADR
COMMAND_RET_FLASH_FAIL
CmdException
(Exception)
FirmwareFile
(object)
HEX_FILE_EXTENSIONS
_crc32
bytes
__init__
(self,path)
crc32
(self)
CommandInterface
(object)
ACK_BYTE
NACK_BYTE
sp
open
(self,aport=None,abaudrate=500000)
invoke_bootloader
(self,dtr_active_high=False,inverted=False)
close
(self)
_wait_for_ack
(self,info="",timeout=1)
_encode_addr
(self,addr)
_decode_addr
(self,byte0,byte1,byte2,byte3)
_calc_checks
(self,cmd,addr,size)
_write
(self,data,is_retry=False)
_read
(self,length)
sendAck
(self)
sendNAck
(self)
receivePacket
(self)
sendSynch
(self)
checkLastCmd
(self)
cmdPing
(self)
cmdReset
(self)
cmdGetChipId
(self)
cmdGetStatus
(self)
cmdSetXOsc
(self)
cmdRun
(self,addr)
cmdEraseMemory
(self,addr,size)
cmdBankErase
(self)
cmdCRC32
(self,addr,size)
cmdCRC32CC26xx
(self,addr,size)
cmdDownload
(self,addr,size)
cmdSendData
(self,data)
cmdMemRead
(self,addr)
cmdMemReadCC26xx
(self,addr)
cmdMemWrite
(self,addr,data,width)
writeMemory
(self,addr,data)
Chip
(object)
command_interface
flash_start_addr
has_cmd_set_xosc
page_size
__init__
(self,command_interface)
page_to_addr
(self,pages)
crc
(self,address,size)
disable_bootloader
(self)
CC2538
(Chip)
flash_start_addr
addr_ieee_address_secondary
has_cmd_set_xosc
bootloader_dis_val
crc_cmd
size
bootloader_address
__init__
(self,command_interface)
erase
(self)
read_memory
(self,addr)
CC26xx
(Chip)
MISC_CONF_1
PROTO_MASK_BLE
PROTO_MASK_IEEE
PROTO_MASK_BOTH
bootloader_dis_val
crc_cmd
page_size
size
bootloader_address
addr_ieee_address_secondary
__init__
(self,command_interface)
_identify_cc26xx
(self,pg,protocols)
_identify_cc13xx
(self,pg,protocols)
erase
(self)
read_memory
(self,addr)
query_yes_no
(question,default="yes")
parse_ieee_address
(inaddr)
_parse_range_values
(device,values)
parse_page_address_range
(device,pg_range)
print_version
()
usage
()
conf
ports
cmd
firmware
chip_id
chip_id_str
device
erase_range
crc_local
crc_target
ieee_addr
ieee_addr_bytes
length
rdata
All occurrences
Please wait...
Page is in error, reload to recover