Skip to content

GD6 Flasher Desktop User Manual (Windows) ​

Offline Windows ESP32 Serial Flasher & GatewayID Provisioning Tool

ItemDetails
ApplicationGD6 Flasher Desktop (Offline Portable for Windows)
Versionv1.1.5 (bundled with esptool-js v0.5.7)
Operating SystemWindows 10 / Windows 11 (64-bit x64)
Target HardwareGD6 LoRaWAN Gateway (ESP32-S3 N8R8, 8MB Flash) & ESP32 / S2 / S3 / C3 / C6 / H2
Operation Mode100% local & offline — no browser, no Python, no backend login, no internet
DistributionSingle-file portable GD6-Flasher-1.1.5-win-x64-portable.exe & win-unpacked/

1. Introduction & Preparation ​

GD6 Flasher Desktop for Windows is a self-contained offline serial flashing utility designed for production-line provisioning, field recovery, and engineering debugging. Built on Electron, it bundles Espressif's esptool-js engine together with GD6-specific hardware safeguards: TPL5010 external watchdog feeding, PlatformIO-equivalent hard reset, automated post-flash GatewayID writing, and a built-in serial monitor.

Desktop Serial Flasher vs. Gateway Web OTA

This application writes directly to the ESP32 flash chip over USB serial. It is meant for blank-chip provisioning, factory batch flashing, and device recovery. It does not require gateway network access and is separate from the gateway's browser OTA update feature.

1.1 Desktop App vs. Browser Web Flasher ​

AspectWindows Desktop App (This Manual)Browser Web Flasher (tools/flasher)
RuntimeDouble-click .exe; no browser or Python requiredRequires desktop Chrome / Edge + server.py
Network & TLS100% offline; zero HTTPS self-signed cert warningsLAN access needs Caddy HTTPS & cert approval
AuthenticationNo login required; ready immediately on launchRequires admin / operator account login
COM Port SelectionNative Windows COM dropdown with hot-plug refreshBrowser WebSerial picker dialog on every connect
Firmware SourceScan local dist/ folder or browse / drag-and-drop .binMust upload images to backend console first
Flashing EngineFull & partition flash, TPL5010 feed, GatewayID, monitorIdentical shared core modules & hardware protocol

1.2 System Requirements & Deliverables ​

  • Operating System: Windows 10 (1903+) or Windows 11, 64-bit (x64).
  • Single-File Portable (.exe): GD6-Flasher-1.1.5-win-x64-portable.exe (~75 MB) — copy to any Windows PC and double-click without installation.
  • Unpacked Portable Directory: win-unpacked/GD6 Flasher.exe — launches instantly without self-extraction overhead; ideal for high-throughput factory stations.
  • USB Serial Drivers: ESP32-S3 native USB-Serial-JTAG uses Windows built-in usbser.sys (driverless). If using a CH340 or CP210x adapter and Windows Device Manager shows a warning icon, install the corresponding WCH CH340 or Silicon Labs CP210x driver first.

1.3 Flashing Workflow & Hardware Connections ​

Figure 1: Standard 5-step flashing workflow and hardware connection comparison

Figure 1: Standard 5-step flashing workflow and hardware connection comparison

2. Workspace Overview ​

Launching GD6 Flasher opens directly into the main workspace with no login gate. The layout follows a top-to-bottom workflow: select a COM port and identify the chip, load local images and run the flash, then review logs or inspect live serial output at the bottom.

Figure 2: GD6 Flasher Desktop main window overview

Figure 2: GD6 Flasher Desktop main window overview

① Topbar Status & Language Toggle: Displays live connection state (Disconnected / Connected / Working / Error) and instant Chinese / English (中 / EN) switching.

② 01 Connect device: Windows COM port dropdown with refresh button, baud rate selector, and Connect / Disconnect button.

③ 02 Chip info: Displays detected chip model, factory MAC address, and flash capacity after connection.

④ 03 Flash images: Local folder bar, Full image / Partitions mode switch, watchdog & GatewayID controls, and Flash / Abort buttons.

⑤ Console (Log / Serial monitor): Copy or clear operation logs, or switch to Serial monitor for live UART inspection.

3. Connecting & Identifying the Chip ​

  1. Connect the GD6 gateway (directly over USB or via GD6-Downloader) to a PC USB port using a data-capable cable.

  2. The app listens to Windows USB plug/unplug events and automatically refreshes the Serial port dropdown within ~0.3 s; you can also click the Refresh button beside the dropdown.

  3. Choose the target COMx entry (ESP32-S3 native USB ports and your last-used COM port are pre-selected automatically).

  4. Confirm Connect baud (default 921600; reduce to 460800 or 115200 if using long cables or noisy USB hubs).

  5. Click Connect. The app handshakes with the ESP32 ROM bootloader and reads chip model, MAC address, and flash size.

Figure 3: Connected ESP32-S3 showing detected model, MAC address, and 8MB flash

Figure 3: Connected ESP32-S3 showing detected model, MAC address, and 8MB flash

① COM Port Selector & Refresh: Shows Windows COMx, device description, and USB chip tag; locked while connected to prevent accidental switching.

② Baud Rate & Connect/Disconnect: Switches to Disconnect once active; the status line underneath lights green with the active port name.

③ Chip Info Card: Displays exact chip silicon revision (ESP32-S3 (QFN56) (revision v0.2)), MAC address, and detected flash size (8MB).

④ Topbar Connection Pill: Turns green (Connected) and enables the Flash button once an image is ready.

3.1 USB-to-Serial Chip Hints ​

Dropdown Chip TagVID : PIDTypical Hardware
ESP32-S3 USB-JTAG303A : 1001GD6 Gateway ESP32-S3 native USB port (direct connection)
CH340 / CH9102/CH3431A86 : 7523 / 55D4GD6-Downloader board or WCH USB-UART adapter
CP210x10C4 : EA60Silicon Labs CP2102 / CP2104 USB-UART bridge
FTDI0403 : 6001 / 6015FT232RL / FT231X industrial USB-UART adapter

Hot-Plug Detection & Reset Protection

Unplugging the active USB cable while idle cleanly disconnects the session and updates the UI. During active flashing and hard reset (when ESP32-S3 native USB briefly re-enumerates), auto-disconnect is suppressed so post-flash reset and GatewayID provisioning complete uninterrupted.

4. Loading Local Firmware Images ​

GD6 Flasher Desktop reads .bin files directly from your Windows disk with no upload step. You can scan an entire build folder at once, pick individual .bin files, or drag and drop files directly onto the UI.

  1. Click Choose folder… in the 03 Flash images card and select a local directory (such as the dist/ output created by scripts/build_regions.py, or any flat folder containing .bin files).

  2. The app recursively scans up to 2 directory levels deep and shows a live count summary across all 6 image categories (full, app, fs, boot, part, ota).

  3. Images are automatically sorted by semantic version descending, then region/name ascending, placing the latest release at the top.

  4. Your selected folder path is persisted across restarts. Click Rescan after generating new firmware builds.

4.2 Method 2: Browse or Drag-and-Drop Single .bin Files ​

  • Full image mode: Click Browse .bin… next to the dropdown to select any 8MiB .bin file, or drag and drop the .bin file directly onto the Full image panel.
  • Partitions mode: Each of the 5 partition rows has its own folder browse button and supports drag-and-drop directly onto that row, automatically enabling the row and showing file size.

4.3 Automatic Image Classification Rules ​

CategoryClassification Rule (.type sidecar > filename > folder name)Example Filename
Full image (full)Filename ends with -full.bin, or inside full/ folderGD6-1.1.5-EU868-full.bin
BootloaderFilename contains bootloader, or inside bootloader/GD6-1.1.5-EU868-bootloader.bin
Partition tableFilename contains partition, or inside partition-table/GD6-1.1.5-EU868-partition-table.bin
OTA dataFilename contains otadata / ota_data, or inside otadata/GD6-1.1.5-EU868-otadata.bin
Filesystem (fs)Filename contains spiffs / littlefs / fatfs / fs, or inside spiffs/GD6-1.1.5-EU868-spiffs.bin
Firmware / AppDefault fallback for other .bin files, or inside firmware/GD6-1.1.5-EU868-firmware.bin

5. Flashing Guide ​

Full image is the default mode. It flashes a single pre-merged 8MiB regional image (combining bootloader, partition table, otadata, application firmware, and regional SPIFFS) in one step.

Figure 4: Full image flashing mode and GD6 hardware protection controls

Figure 4: Full image flashing mode and GD6 hardware protection controls

① Local Firmware Folder Bar: Displays the active folder path, category totals, and Choose folder… button.

② Mode Switcher: Toggle between Full image (default) and Partitions.

③ Full Image Picker: Dropdown lists only full images; use Browse .bin… or drag-and-drop for any standalone 8MiB file.

④ Full-Erase Warning: Full mode always writes at 0x0, sets flash size 8MB, and erases the entire flash (including NVS and saved configuration).

⑤ Feed GD6 external watchdog: Enabled by default; keep checked whenever flashing a GD6 ESP32-S3 gateway.

Strict 8MiB Validation & Configuration Erasure

Full image mode enforces an exact file size of 8 MiB (8,388,608 bytes) and always erases the entire flash, wiping previous NVS credentials and gateway settings. To update firmware while keeping existing device configuration, switch to Partitions mode and flash Firmware / App only.

5.2 Partitions Mode (Incremental Updates & Custom Offsets) ​

Switch to Partitions when updating individual partitions or preserving NVS settings. Each row filters local images strictly by matching partition type to prevent flashing an image to the wrong offset.

Figure 5: Partitions mode with 5 partition rows, per-row browse buttons, and erase options

Figure 5: Partitions mode with 5 partition rows, per-row browse buttons, and erase options

① Row Enable Checkbox: Only checked rows are written; picking or dropping a file auto-enables its row.

② Offset Column: Pre-aligned to partitions.csv (8MB dual-OTA); bootloader offset auto-adjusts to 0x1000 for ESP32/S2.

③ Type-Filtered Dropdown & Row Browse: Lists matching images only; click the folder button or drop a .bin file directly onto the row.

④ Flash Size & Erase All: Leave as keep with Erase all before flash OFF for routine incremental updates.

Partition RowDefault Offsetpartitions.csv MappingRecommended Usage
Bootloader0x0 (S3/C3/C6)bootloaderLeave unchecked for routine updates; enable on blank/erased chips
Partition table0x8000partition-tableLeave unchecked unless partition layout changed or chip is blank
OTA data0xf000otadata (8 KB)Leave unchecked for routine updates; enable to force boot from ota_0
Firmware / App0x20000ota_0 (2.75 MB)Enable alone for day-to-day application firmware upgrades
Filesystem image0x5A0000storage / spiffs (2.38 MB)Enable when updating the web console or resetting regional defaults

5.3 GD6 External Watchdog (TPL5010) Feeding ​

  • Why it is enabled by default: The GD6 board uses an external TPL5010 hardware watchdog (~8 s timeout, DONE connected to ESP32-S3 GPIO39). Full-chip erase and 8MB flashing take 30–50 s and would otherwise be interrupted by a hardware power reset.
  • How it works: Right after chip detection, the flasher configures ESP32-S3 LEDC registers to drive a continuous 4 Hz hardware pulse on GPIO39 and reads back every critical register to verify initialization before erasing or writing.
  • Non-GD6 boards: Non-ESP32-S3 chips automatically skip watchdog feeding. If flashing a third-party ESP32-S3 board that uses GPIO39 for another signal, uncheck this option first.
  • Safe recovery: Normal completion, user abort, and recoverable failures cleanly stop the feed and trigger a hard reset. If power or USB is lost unexpectedly mid-flash, power-cycle the gateway before retrying.

5.4 Optional: Write GatewayID After Flash ​

Enable Write GatewayID after flash to program the 16-hex LoRaWAN Gateway EUI (e.g. 5a53012a00000288) immediately after flashing. Enter the device login password (factory default: wifi!0804). Following hard reset, the desktop app opens the serial port at 115200, waits for debug CLI ready, sends auth and set gw, and waits for reboot confirmation.

Figure 6: Flashing progress, full log output, and automated GatewayID provisioning

Figure 6: Flashing progress, full log output, and automated GatewayID provisioning

① GatewayID Panel: Enable toggle, 16-hex EUI field, and device login password (masked as auth **** in logs).

② Flash / Abort Controls: Click red Abort anytime during flashing to safely stop watchdog feeding and hard-reset the board.

③ Log Utilities: Copy complete operation logs to clipboard or clear the console.

④ Progress Bar: Shows indeterminate bar during erase and size-weighted percentage + filename during write.

Automatic UART0 vs. Native USB-Serial-JTAG Handling

On UART0 adapters (GD6-Downloader / H1), opening the COM port on Windows often asserts DTR and traps the chip in download mode; GD6 Flasher automatically de-asserts DTR and pulses RTS to boot application firmware. On ESP32-S3 native USB-Serial-JTAG (VID 0x303A), this pulse is skipped to avoid CDC re-enumeration.

6. Serial Monitor ​

Switch to the Serial monitor tab after flashing to inspect boot messages, Ethernet/4G/Wi-Fi uplink bring-up, SX1302 self-test status, and interactive debug_cli responses without launching an external terminal app.

Figure 7: Built-in serial monitor with color-coded output and interactive command input

Figure 7: Built-in serial monitor with color-coded output and interactive command input

① Console Tabs: Switch between Log (flashing history) and Serial monitor (live UART console).

② Baud & Connect Controls: Default 115200 matches GD6 firmware console; click Disconnect to release the COM port.

③ Color-Coded Output: Automatically highlights errors (red), warnings (amber), OK/ready/started lines (green), and sent commands (blue).

④ Command Input: Type a CLI command and press Enter (automatically appends \r\n).

6.1 Common debug CLI Commands ​

CommandPurposeExpected Output
helpList all available serial CLI commandsCommand usage summary
get gwRead current 16-hex GatewayID (no auth required)OK gw=5a53012a00000288
auth wifi!0804Authenticate with device password for write commandsOK auth
set gw <16-hex>Persist a new GatewayID and reboot device (requires auth)OK set gw=...; rebooting

7. Troubleshooting (FAQ) ​

SymptomLikely CauseResolution
Dropdown shows 'No serial ports detected'Charge-only USB cable, missing CH340/CP210x driver, or board unpoweredUse a verified USB data cable; check Windows Device Manager (Ports COM & LPT) and install CH340/CP210x drivers if flagged; click Refresh.
Connect timeout / Failed to connectChip not in ROM download mode, or COM port held by another programClose PlatformIO Monitor / PuTTY / SSCOM; hold BOOT, tap EN/RST, release BOOT, then click Connect again.
'The full image must be exactly 8MiB'Selected a single-partition binary (e.g. firmware.bin) in Full image modePick an exact 8.00 MB *-full.bin from dist/full/, or switch to Partitions mode to flash single partitions.
Watchdog init failed or mid-flash disconnectRegister readback mismatch, or previous interrupted session left TPL5010 latchedCompletely power-cycle the gateway (unplug power for 3+ s), re-enter download mode, and retry. Uncheck watchdog feed only on non-GD6 boards.
GatewayID write timed out after flashFirmware lacks debug CLI, wrong password, or SPIFFS missing global_conf.jsonOpen Serial monitor at 115200 to verify 'debug CLI ready' appears, check password (default wifi!0804), and ensure SPIFFS is flashed.
Garbled characters in Serial monitorMismatched monitor baud rateSet monitor baud rate to 115200 for GD6 ESP32-S3 firmware logs.
'Selected COM port is no longer available'USB cable loosened or Windows reassigned COM number before ConnectThe app never silently connects to another COM port; click Refresh, verify the target COMx, and reconnect.
Windows SmartScreen warning on portable .exeUnsigned open-source community buildClick 'More info' → 'Run anyway', or launch win-unpacked/GD6 Flasher.exe directly.

Appendix: Regenerating Manuals & Packaging ​

All screenshot capture, DOM-coordinate annotation, diagram rendering, and Markdown/Word generation scripts are checked into the repository. After updating the desktop UI, regenerate the entire bilingual manual suite with a single command:

sh
cd tools/flasher-desktop

# Re-capture all ZH & EN HiDPI screenshots, re-annotate, and rebuild MD + Word manuals
npm run docs:manual

# Run automated manual & embedded-image contract tests
cd ..
cd ..
python -m unittest scripts.test_flasher_desktop_manual -v

# Rebuild Windows x64 portable .exe and unpacked folder (output in release/)
cd tools/flasher-desktop
npm run build:win

Manual downloads ​