解决ew写配置错误的bug,升级ew程序不更改配置区

This commit is contained in:
ranchuan
2023-12-15 19:21:17 +08:00
parent fd1deab81c
commit e4fde0a436
6 changed files with 5 additions and 3 deletions

BIN
doc/CSMZM_V0.11.bin Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -63,7 +63,7 @@ def creat():
d+=arr_byte_copy(0x00,1024*16-len(d))
crc_all=crc32(d)
crc_app=crc32(d[4096:])
crc_app=crc32(d[4096:4096+11*1024])
print("crc32 of all data:",hex(crc_all))
print("crc32 for 0x1000:",hex(crc_app))
d+=arr_from_int(crc_all)