可以烧录和获取固件

This commit is contained in:
ranchuan
2024-10-14 19:42:08 +08:00
parent 59e2a639a3
commit 531a857057
6 changed files with 84 additions and 60 deletions

View File

@@ -254,6 +254,7 @@ def bin_to_hex_file(bin_file_name:str,hex_file_name:str,info_file_name:str=None)
else:
info=load_flash_info(info_file_name)
text=bin_to_hex2(bin)
print(f"write to file {hex_file_name}")
with open(hex_file_name,mode='w+',encoding="utf-8") as f:
f.write(text)