Skip to content
packetThrower

GUI tour

etch341 GUI showing the Detect pane with a chip identified, the workflow sidebar, and the activity log

Launching the binary with no subcommand opens the desktop GUI. On the released installers this is what double-clicking the app does (or running it from the Start menu / gtk-launch etch341 on Linux). From a source build, cargo run does the same.

The window is split into three regions:

  • Sidebar (left) — vertical pane selector. At the very top, a SPI / I²C bus toggle swaps the whole tool set between SPI flash and 24Cxx EEPROMs (see I²C EEPROMs). For SPI, the top half is a stepper showing the canonical workflow (Detect → Read → Erase → Write → Verify); click any step at any time, no enforced ordering. Below a thin divider sit the inspection / diagnostic tools (Blank check, Status regs, Security regs, Hex viewer, BIOS explorer), and ⚙ Settings is pinned to the bottom.
  • Main pane (top right) — the current pane’s controls and content.
  • Activity log (bottom) — chronological log of operations, results, and errors. Resizable: drag the splitter to give it more or less vertical space. The height is persisted across launches. Icon buttons in its top-right corner: Pop out (↗) moves the log into its own window, Save (💾) writes it to a text file, and Clear (⌫) clears it (see Activity log).

The window’s own size + position is also persisted, so it opens where you left it.

etch341 has a full application menu. On macOS it’s the native menu bar; on Windows and Linux the same menus render as an in-window bar in the title bar (those platforms have no OS-level menu bar).

  • etch341 — About, Settings… (Cmd/Ctrl+,), Quit (Cmd/Ctrl+Q).
  • File — Open BIOS Image… (Cmd/Ctrl+O) loads a dump straight into the BIOS explorer.
  • Edit — Copy Selection, Find / Find Next / Find Previous (the same hex-viewer shortcuts).
  • View — an SPI / I²C mode radio (mirrors the sidebar bus toggle) plus quick jumps to the Hex viewer and BIOS explorer.
  • Actions — bus-aware: it lists the current bus’s operations and rebuilds when you switch buses. On SPI: Detect Chip (Cmd/Ctrl+D), Read / Erase / Write / Verify, Blank Check, Status Registers, Security / OTP. On I²C: Scan Bus (Cmd/Ctrl+D), Read / Erase / Write / Verify, Blank Check. The identify item (Detect / Scan) runs immediately; the destructive ops open their pane, where the file pickers and arm/confirm step live, so nothing fires from a stray keystroke.

The top header shows the connection state and the active operation’s progress (when one is running):

  • no CH341A (red) — no programmer plugged in. etch341 checks USB every second, so this changes as you plug or unplug it.
  • CH341A (green) — programmer connected, no chip identified yet. Switching between SPI and I²C returns to this state.
  • CH341A · no chip (amber) — SPI Detect found nothing on the bus.
  • CH341A · chip · size (green) — after an SPI Detect, or after any successful I²C operation (showing the 24Cxx you picked, since I²C has no chip ID). Run Detect again after swapping SPI chips.

A 16 MB read in progress: the header shows its progress and a Cancel button, and the operation buttons and SPI / I²C toggle are greyed out

While a read, write, erase or other chip operation is running, the operation buttons and the SPI / I²C toggle are greyed out, and menu items or shortcuts that would start another one log “Busy: wait for the current operation to finish” instead. Everything else stays live: switch panes, open the Hex viewer or BIOS explorer, browse the chip database, or change Settings.

Reads, verifies, blank checks and SPI writes show a Cancel button next to the progress readout. The operation stops after the chunk (or, for a write, the erase block or page) that’s in flight, so the bus is always left idle. A cancelled read deletes its partial dump; a cancelled write leaves the chip partly erased or written. A write erases before it programs, so a cancel early on can leave the old contents partly erased with nothing new written yet. SPI erase has no Cancel: it’s a single chip-erase command that the chip finishes on its own. I²C writes and erases go out in one quick call.

Every operation reports its outcome two ways: a line in the activity log (the running history), and a coloured result line in the pane itself — a green ✓ on success with a short summary (e.g. how many bytes were read or written and to where, or “Chip matches the file”) or a red ✗ on failure: a hardware error, a verify mismatch, or a blocked click like “Pick a chip first”. The result line clears when you switch panes, so it always reflects the pane in front of you. Detect, Status regs, and Security regs show their richer result card on success and fall back to the red ✗ line on error.

The simplest pane. Click the “Detect chip” button → reads the JEDEC ID via opcode 0x9F → looks up the chip in the embedded database. The log shows the raw JEDEC bytes; the header shows the friendly chip name + capacity once a match lands.

MISO floats high (returns 0xFFFFFF) means the chip isn’t responding — typically clip orientation, missing VCC, or a held HOLD#/CE# pin. MISO stuck low (0x000000) means an in-circuit host controller is actively pulling the line low. See Wiring + voltage for the recovery paths.

The chip database browser: one sortable table of every bundled SPI flash and I²C EEPROM, with a vendor filter and search

The “Browse chip database” button opens the full catalogue in its own window — every bundled SPI flash and I²C EEPROM chip, with a vendor dropdown, a live name/JEDEC search, and a colour-coded Voltage column. It’s read-only and offline (the database is compiled into the binary), so you can keep it open beside the Detect result as a reference. SPI and I²C parts share one table with a Vendor column; click a column’s sort arrows to sort by it (again to reverse, a third time to restore catalogue order), and drag a header edge to resize the column. Columns that don’t apply to a bus (JEDEC and Sector for I²C, Addr for SPI) show “—”.

Voltage is colour-coded so the parts that need care stand out:

  • SPI shows each chip’s single rail as a traffic light — green 3.3V, amber 2.3V, red 1.8V — keyed to how much it minds a stock 3.3V rig. 1.8V parts need a 1.8V-capable programmer; connecting one to a plain 3.3V setup over-volts every pin.
  • I²C 24Cxx are a wide-range family (~1.8–5.5V, commonly run at 3.3V or 5V on the CH341A’s jumper), shown in a dedicated blue to mark them as a tolerant range rather than a single rail.

The same listing is available headless via the CLI’s etch341 chips table.

Picks a known chip, reads its full contents to a file. The file is named etch341-read-<date>_<time>.bin (local time, e.g. etch341-read-2026-05-29_14-03-07.bin) and lands in your home directory by default — change the folder in Settings → Programmer → Read save location. The Hex pane can then open that file for inspection.

Each of these is arm-then-confirm: first click sets the button to “Click again to confirm” with an amber warning banner; second click within the same pane visit fires the actual destructive operation. Switching panes resets the arm state — there’s no way to accidentally erase a chip by mis-clicking once.

Write does erase + program + verify in one pass by default (the CLI --no-erase / --no-verify flags aren’t exposed in the GUI because the destructive variants are the rare cases).

The Hex viewer showing a firmware file in hex and ASCII, with bytes colour-coded by category

The Hex pane has its own internal toggle between Hex view (per-byte hex + ASCII columns, virtualised so it scrolls 32 MB files smoothly) and Strings view (extracted printable ASCII runs, with offset on the left).

The unified Find input sits below the Browse button and applies to both Hex and Strings views.

  • 55 AA or 55AA → searches for the hex byte pair 0x55 0xAA.
  • Award BIOS → searches for the ASCII string (case-insensitive on letters, exact for non-letters).
  • 0x10000 → jumps to that offset.

When matches are found, the chevron buttons step between them and a counter shows i+1 / N. The matched bytes get a blue tint in the Hex view; matching strings get bolded in the Strings view.

Click a byte to anchor a selection. Drag (within a row, or across rows) to extend it. Shift+click to extend the existing selection without resetting the anchor. The footer shows Selection: 0x{lo}..0x{hi} ({N} bytes). Cmd+C copies the selected range as space-separated upper-case hex to the system clipboard. Cmd+C only fires when the Hex pane is the visible pane — typing Cmd+C in any Input still gets normal text copy.

The Keyboard shortcuts section lists the Hex viewer’s find, copy and zoom keys.

The BIOS explorer with an Insyde image loaded: the menu-page tree on the left, Setup settings on the right

The BIOS explorer pane reads a UEFI BIOS dump and reconstructs the firmware Setup menu — the same view as the CLI’s bios settings, but browsable. Point it at a full flash dump (the file picker, or File → Open BIOS Image…) and it walks the firmware volumes, decompresses the section trees, and parses the IFR forms + HII strings.

  • A navigator on the left mirrors the firmware’s menu hierarchy; click a page to scope the list to it, or pick All settings. A Boot order entry decodes BootOrder + the Boot#### load options when the dump has them.
  • Each row shows the option label, its current value, and the variable + offset it lives at. Hover for the help text, the full list of choices, the numeric range, and the changed-from-default delta. A colour dot marks state — changed (amber), set (green), not set (grey) — and a ✷ flags options the firmware may hide or lock.
  • The filter box narrows by label (e.g. vt-d), Changed only hides defaults, Export JSON… saves the parsed settings, and Compare with… opens a second dump in a side-by-side diff window (A red / B green, grouped by menu page).
  • When the dump carries an Intel Flash Descriptor, a Flash layout (IFD) strip appears with the region map (Descriptor / BIOS / ME / GbE) — offsets, sizes, and a 🔒 / ⚠ lock badge on the Descriptor and ME regions. This is the GUI form of etch341 ifd.

It’s read-only — there’s no Setup-write path. AMI Aptio images resolve fully; Insyde/Phoenix images parse, but factory values only show up from a live chip dump (a BIOS update ships blank NVRAM, so values read as not set).

Reads SR1 / SR2 / SR3 and decodes the standard bit fields. Same view (and same logic) as the etch341 sr CLI command — useful for diagnosing “writes silently failing” (block-protect bits set) or “quad mode not enabled” (QE clear). SR1 works on any SPI NOR chip; SR2 / SR3 follow the W25Q convention and show “didn’t respond” on chips that don’t implement them. Raw hex shown for every register so you can cross-check the datasheet.

Reads, erases, and programs the chip’s three security registers (Winbond W25Q / GigaDevice GD25Q convention, opcodes 0x48 / 0x44 / 0x42) — the same operations as the etch341 otp CLI commands. These commonly hold serial numbers, MAC addresses, or vendor keys.

Read dumps all three as offset / hex / ASCII; a register that’s still blank reads back all 0xFF and collapses to a one-line note. The card’s Copy button puts the full dump on the clipboard.

The Modify section targets one register (the radio selector) and offers Erase and Write-from-file, each behind the same two-stage arm/confirm as the Erase / Write panes — first click arms, second fires. Both are read-back verified. Programming only clears bits, so erase the register first for a clean write. The GUI writes from offset 0; for a partial write at an offset, use the CLI’s otp write --start. Erase and write are repeatable — etch341 never sets the one-time lock bits.

The I²C Write pane after writing and verifying an 8 KB file to a 24C64; the header shows the chip

The SPI / I²C toggle at the top of the sidebar switches the whole tool set to the 24Cxx EEPROM workflow. I²C has no JEDEC autodetect, so in place of a Detect step every I²C pane starts with a chip dropdown — pick the part (24C01 … 24C512) once and the choice follows you across panes. The panes mirror the SPI side:

  • Scan — probes the bus (0x08..0x77) and lists the 7-bit addresses that ACK. A 24Cxx with its address pins grounded shows at 0x50. A blank EEPROM (all 0xFF) can’t be detected this way — the CH341 never exposes the I²C ACK bit, so it reads like an empty bus; pick the chip and read it directly.
  • Read — dumps the whole chip to a timestamped file in your Read save location.
  • Write / Verify — program from a file (Write verifies afterward) or compare against one without writing. Write is arm-then-confirm, same as the SPI destructive panes.
  • Erase — writes 0xFF to every byte (EEPROMs have no sector-erase); also arm-then-confirm.
  • Blank check — confirms every byte reads back as 0xFF.

I²C runs at 100 kHz by default; pick 20 or 400 kHz in Settings → Programmer → I²C EEPROM (the bus caps at 400 kHz — see the I²C page). The protocol is silicon-validated on a 24C02, a 24C08 and a 24C64 — one chip from each addressing scheme. Full reference: Usage → I²C.

Settings → Programmer: SPI clock, verify after write, I²C clock and address straps, and the read save location

The pane is configuration-only — the activity log is hidden while Settings is the active pane so the body has room to breathe. It has its own page list with a search box (type to filter settings by name), and a small amber dot rides the ⚙ Settings sidebar item when a newer release is available (see Updates below). Every setting saves immediately. The pages:

  • Programmer
    • SPI clock speed — 20 / 100 / 400 / 750 kHz. The bus rate every CH341A op uses; the next op picks up the new value when it opens the device. (I²C ops cap at 400 kHz regardless — see the I²C page.)
    • Verify after write — read the chip back and compare after every SPI and I²C write. On by default; turning it off saves time on large chips (CLI: --no-verify).
    • I²C EEPROM → I²C clock speed — 20 / 100 / 400 kHz for every I²C op (CLI: --speed). 100 kHz by default.
    • I²C EEPROM → Address pin straps (A2 A1 A0) — how the EEPROM’s address pins are tied, as 0–7. Leave at 0 (all grounded) for a chip in the CH341A socket (CLI: --straps).
    • Read save location — where the Read pane writes its dumps. Defaults to your home directory; Browse to pick another.
  • Appearance (the ↺ button in its header resets the page’s settings to their defaults)
    • Accent color — pick one of eight swatches; the whole UI recolors live (buttons, selections, switches, radio dots, sidebar). Button labels switch between dark and light per accent so they stay readable.
    • Hex viewer — independent font sizes for the Hex and Strings views. Mirrors the Cmd/Ctrl + = / - / 0 shortcuts.
    • Show local time in the activity log — local time zone or UTC. Storage is always UTC; this only changes the display, and it re-formats existing lines too.
    • Use local time in saved log files — the same choice for the log’s Save button, set separately: off (the default) writes UTC whatever the activity log shows.
  • General
    • Window — restore window position on startup. Off by default; when on, the window’s last bounds are snapshotted on graceful close and restored on next launch.
    • Updates — switch the boot-time new-version check on or off, see the installed version, and View release / Check now. Detection only — it never downloads or installs. See Updates.
    • Preferences file displays the on-disk prefs path (~/.config/etch341/prefs.toml on Linux/macOS, %APPDATA%\etch341\prefs.toml on Windows) with an Open folder button that pops the containing directory in the OS file manager (open / explorer / xdg-open).

On launch (unless you turn it off in Settings → Updates), etch341 checks the project’s GitHub releases for a newer stable version. If one exists, a small amber dot appears on the ⚙ Settings sidebar item, and Settings → Updates shows the available version with a View release button that opens the release page in your browser.

It’s detection only — etch341 never downloads or replaces anything on disk; you choose whether and when to install. The check runs on a background thread, so a slow or offline network never stalls the UI (it just finds nothing). Check now re-runs it on demand. Pre-releases are ignored — only stable releases trigger the dot.

Every operation logs HH:MM:SS message lines, scrollable, with the most recent at the bottom. Long lines wrap. Drag the splitter above the log to resize it; the height persists. Timestamps render in UTC by default — switch to local time in Settings → Appearance.

Icon buttons sit in the log’s top-right corner:

  • Pop out (↗) detaches the log into its own window. It stays live — new lines stream into it and it follows the tail (unless you’ve scrolled up to read history). Closing the window re-docks the log; while it’s popped out, the active pane takes the full height.
  • Save (💾) writes the log to a text file you pick (default name etch341-log-<date>_<time>.txt in the Read save location), one HH:MM:SS message line per entry, in UTC unless Settings → Appearance → Use local time in saved log files is on. Also in the popped-out window.
  • Clear (⌫) clears the log.

Cmd on macOS, Ctrl on Windows and Linux.

Anywhere

Shortcut Action
Cmd+D Detect the chip (SPI) or scan the bus (I²C)
Cmd+O Open a BIOS image in the BIOS explorer
Cmd+, Open Settings
Cmd+Q Quit

Hex viewer

Shortcut Action
Cmd+F Jump to the Find bar
Enter (in the Find bar) Go to the first match, or to 0xOFFSET
Cmd+G / Cmd+Shift+G Next / previous match
Cmd+C Copy the selected bytes as hex
Cmd+= (or Cmd++) / Cmd+- Bigger / smaller text in the visible view
Cmd+0 Reset that view’s text size

Erase and Write have no shortcut on purpose: they always go through the pane’s arm-then-confirm buttons.