refactor(gui,config): rename file path fields and split BIN selector

- Rename bit_path -> bootloader_bit_path for clarity
- Rename elf_path -> bootloader_elf_path for clarity
- Split single bin_path into bootloader_bin_path (flash) and
  firmware_bin_path (TFTP upload)
- Reorder Configuration panel: BIT -> ELF -> Bootloader BIN ->
  Firmware BIN
- Update display names with file extensions and context labels
- Update all step references (Step 2 flash, Step 3 bootloader,
  Step 4 TFTP) to use new field names
This commit is contained in:
Jeremy Shen
2026-06-09 16:58:45 +08:00
parent bd39023ba7
commit 5277c88e3d
3 changed files with 72 additions and 50 deletions
+12 -9
View File
@@ -20,9 +20,10 @@ DEFAULT_CONFIG: dict[str, Any] = {
"tftp_upload_name": "z7bin",
"serial_port": "",
"serial_baudrate": 115200,
"bin_path": "",
"elf_path": "",
"bit_path": "",
"bootloader_bit_path": "",
"bootloader_elf_path": "",
"bootloader_bin_path": "",
"firmware_bin_path": "",
"reboot_timeout": 30,
"ping_timeout": 5,
"ping_count": 3,
@@ -42,9 +43,10 @@ class Config:
tftp_upload_name: str = "z7bin"
serial_port: str = ""
serial_baudrate: int = 115200
bin_path: str = ""
elf_path: str = ""
bit_path: str = ""
bootloader_bit_path: str = ""
bootloader_elf_path: str = ""
bootloader_bin_path: str = ""
firmware_bin_path: str = ""
reboot_timeout: int = 30
ping_timeout: int = 5
ping_count: int = 3
@@ -142,9 +144,10 @@ class Config:
"tftp_upload_name": self.tftp_upload_name,
"serial_port": self.serial_port,
"serial_baudrate": self.serial_baudrate,
"bin_path": self._relative_path(self.bin_path),
"elf_path": self._relative_path(self.elf_path),
"bit_path": self._relative_path(self.bit_path),
"bootloader_bit_path": self._relative_path(self.bootloader_bit_path),
"bootloader_elf_path": self._relative_path(self.bootloader_elf_path),
"bootloader_bin_path": self._relative_path(self.bootloader_bin_path),
"firmware_bin_path": self._relative_path(self.firmware_bin_path),
"reboot_timeout": self.reboot_timeout,
"ping_timeout": self.ping_timeout,
"ping_count": self.ping_count,