From 6b866bdefd5f6961ed27ac1d886bf46471add060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=20=E6=B3=BD=E9=9A=86?= Date: Thu, 13 Jun 2024 21:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BF=BD=E7=95=A5=E6=96=87?= =?UTF-8?q?=E4=BB=B6;=20=E6=B7=BB=E5=8A=A0=E5=8D=87=E7=BA=A7=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B4=E6=A8=A1=E5=BC=8F=E6=96=87=E4=BB=B6;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + resource/File_Upgrade1.hexpat | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 resource/File_Upgrade1.hexpat diff --git a/.gitignore b/.gitignore index dfe6956..e125a3d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ # 生成结果 result/*.bin +result/*.html diff --git a/resource/File_Upgrade1.hexpat b/resource/File_Upgrade1.hexpat new file mode 100644 index 0000000..db4a536 --- /dev/null +++ b/resource/File_Upgrade1.hexpat @@ -0,0 +1,36 @@ +struct time +{ + u16 year; + u8 month; + u8 day; + u8 hour; + u8 min; + +}; + +struct block_cpu +{ + u32 prog_size; + u8 byte_verify[16]; +}; + + +char file_mark[0x08] @ 0x00; +u16 prod_type @ 0x08; +char prog_id[0x0C] @ 0x0A; + +u8 mark_compress @ 0x16; +u8 mark_verify @ 0x17; +u8 byte_verify[0x10] @ 0x18; + +time file_time @ 0x28; +u32 data_size @ 0x2E; +block_cpu cpu1 @ 0x32; +block_cpu cpu2 @ 0x46; +u16 prog_type @ 0x5A; + +u16 area @ 0x5C; + +char prog_name[64] @ 0x5E; +u8 Unused[24] @ 0x9E; +u16 Header_verify @ 0xB6; \ No newline at end of file