MainWindow MainWindow 输入信息 选择新bin文件 第1个旧版本bin文件 第2个旧版本bin文件 第3个旧版本bin文件 第4个旧版本bin文件 第5个旧版本bin文件 第6个旧版本bin文件 第7个旧版本bin文件 第8个旧版本bin文件 打包bin文件 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">注意事项:</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">1,文件格式必须是【.bin】;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2,文件名必须以版本号结尾例如:【XXXX_01013002.bin】;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3,文件大小不能超过256K字节;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">4,主程序路径下会自动生成初始化文件【dfotaConfig.ini】,记录相关信息以备下次使用;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">5,输入的,无论新/旧文件,如果尾部有20个附加字节,则会被剪掉;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">6,生成的打包bin文件,与new文件同路径;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">7,在当前路径下,生成log子目录,存放日志文件;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">8,在当前路径下,生成tmp子目录,存放过程临时文件;</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">9,生成包选项:</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=0,z_flag=0,无差分,无压缩;只有new文件的内容,没有old文件内容</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=0,z_flag=1,无差分,有压缩;只有new文件的内容,没有old文件内容</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=1,z_flag=0,禁止选项</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> d_flag=1,z_flag=1,有差分,有压缩;有new文件的内容,有old文件内容(最多8个old)</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p></body></html> 差分 压缩 时间戳测试: CRC32测试 STM32 CRC32测试:切掉尾部长度= 升级包生成 打包 全不选 全选 包校验 包读取 新bin文件入口地址:0x 80000000 例如0x80000000 清除日志 退出 -- 测试2 测试 4 0 1900-00-00 00:00:00.000 0 File Open