# Bin merge tool **Repository Path**: tang176084/bin-merge-tool ## Basic Information - **Project Name**: Bin merge tool - **Description**: 用python+qt做的二进制文件合并工具 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-12 - **Last Updated**: 2025-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BIN-merge-tool 用pyqt做的二进制文件合并工具,可以把多个二进制文件合并成一个文件,可以应用于一次性把多个bin烧录到单片机的不同地址。 # 使用说明 ![](doc/1.png) 1. 点击源文件,选择需要合并的文件 2. 设置偏移地址,第一个文件偏移地址为0,偏移地址都是相对于0的偏移量 3. 确认偏移地址后点击添加,文件将显示在上方列表中 4. 重复1-3步骤,可以添加多个文件 ![](doc/2.png) 5. 点击合并按钮,合并后的文件将保存在当前目录下,名称为merge_firware.bin # 代码运行 代码基于python3编写,界面使用pyqt5开发。初次运行需要安装pyqt5等相关依赖。 安装完成后,在命令行中运行以下命令: ```shell python main.py ``` # 生成exe 安装 PyInstaller: 在命令行中输入以下命令安装 PyInstaller: ```shell pip install pyinstaller ``` 或者: ```shell python -m pip install pyinstaller ``` windows系统下,输入以下命令生成exe文件: ```shell python -m PyInstaller main_win.spec ``` 我制作的基于stm32g0 iap升级的keil工程: [https://gitee.com/tang176084/stm32g0_iap_update](https://gitee.com/tang176084/stm32g0_iap_update) 我制作的基于Ymodel的升级工具: [https://gitee.com/tang176084/pyqt_-iap_-tool](https://gitee.com/tang176084/pyqt_-iap_-tool)