提高bin_to_hex的速度

This commit is contained in:
2024-10-14 22:01:52 +08:00
parent 531a857057
commit 3057c6f5a1
2 changed files with 13 additions and 46 deletions

View File

@@ -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.")