提高bin_to_hex的速度
This commit is contained in:
11
kunlun.py
11
kunlun.py
@@ -143,15 +143,6 @@ def putc(data, timeout=1):
|
||||
|
||||
|
||||
|
||||
'''
|
||||
IMG_TYPE 0xfc00 sp.bin
|
||||
IMG_TYPE 0xfc01 sbl.bin
|
||||
IMG_TYPE 0xfc05 oem.bin
|
||||
IMG_TYPE 0xfc03 pib.bin
|
||||
IMG_TYPE 0xfc08 ht.bin
|
||||
|
||||
'''
|
||||
|
||||
|
||||
_work_dir='work'
|
||||
if not os.path.exists(_work_dir):
|
||||
@@ -201,7 +192,7 @@ def upload_fun():
|
||||
|
||||
myprint ("Total transmission time: %s s" % str(trans_time_0+trans_time_1))
|
||||
myprint("Start transform bin to hex.")
|
||||
bin_to_hex_file(calc_upload_name(), calc_hex_name(),calc_flash_info_name())
|
||||
bin_to_hex_file(calc_upload_name(), calc_hex_name())
|
||||
myprint("Transform to hex end.")
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user