A modern, cross-platform desktop app to flash, inspect and secure ESP32 and ESP8266 chips,
with a built-in Arduino-style IDE to write, compile and upload code to ESP, AVR, STM32 and RP2040 boards.
Built on Espressif's official esptool and
arduino-cli with a Qt 6 interface.
| Page | What you can do |
|---|---|
| Flash | Write any number of images at any offsets in one go. Drag & drop .bin files and the offsets are guessed from the names (bootloader / partitions / app, or 0x… in the name). Layout presets for ESP32, S3/C3/C6/H2 and P4/C5. Flash mode / frequency / size, erase-all, compression, skip-already-flashed, verify, merge into one .bin and erase flash. |
| Code | Arduino-style IDE: write sketches with syntax highlighting, autocomplete and multiple file tabs, then Verify / Upload to the board on PORT. Includes a Boards manager (ESP32, ESP8266, AVR, STM32, RP2040 …), a Library manager, board options (partition scheme, upload speed …), examples, and clickable compiler errors. See Code page. |
| Memory | Read flash to a file (or ALL), erase a region, peek / poke 32-bit memory words, dump memory, read / write the SPI flash status register. |
| Device | Chip ID, MAC address, flash ID & size, security info, load an image into RAM and run it, reset and run the app. |
| Tools | ELF → binary, image info (headers, segments, checksum), generate a flash-encryption key and burn it into an eFuse key block. |
| eFuse | Read every eFuse into a sortable, searchable table with category and non-zero filters. Burn a value through a dialog that requires you to type the eFuse name. Export to Excel (.xlsx) or CSV, or get a raw dump. Also has a virtual chip mode for trying things without hardware. |
| Monitor | Serial console with timestamps, line-ending choice, a board-reset button, and log saving. It pauses automatically while an operation uses the port, then reconnects. |
| Settings | System / light / dark theme, reset strategy (--before / --after), connect attempts, --no-stub, and profiles that save every field to a JSON file. |
Shared across all pages:
- Live console with colored output, a progress bar with percentage, elapsed time and a Stop button (Esc). It can be copied or saved.
- Hot-plug detection: serial ports refresh by themselves, and a newly plugged board is selected automatically.
- Fully responsive:
- the sidebar collapses to icons on small windows;
- cards reflow into 1–3 columns;
- the connection bar wraps;
- on very wide screens the console moves beside the pages.
- HiDPI-sharp: all icons are vector graphics, and themes follow the OS dark-mode setting.
- Every field is remembered between sessions.
- Supports all chips of esptool 5.x: ESP8266, ESP32, ‑S2, ‑S3, ‑C2, ‑C3, ‑C5, ‑C6, ‑C61, ‑H2, ‑P4…
| Keys | Action |
|---|---|
Ctrl+1 … Ctrl+8 |
Switch page |
Ctrl+Enter |
Flash selected images |
Ctrl+R / Ctrl+U |
Code page: verify (compile) / upload |
Ctrl+S / Ctrl+Shift+S |
Code page: save / save as |
Ctrl+F / Ctrl+H / Ctrl+G |
Code page: find / replace / go to line |
Ctrl+/ / Ctrl+Space |
Code page: toggle comment / autocomplete |
Ctrl+wheel, Ctrl+= / Ctrl+- |
Code page: zoom the editor |
Esc |
Stop the running operation |
F5 |
Rescan serial ports |
Ctrl+J / Ctrl+L |
Show/hide console / clear console |
Ctrl+T |
Toggle light/dark theme |
Ctrl+B |
Collapse/expand sidebar |
The Code page works like the Arduino IDE, built into Flash. Compiling, uploading, cores and libraries are handled by arduino-cli, the engine behind Arduino IDE 2. The installer includes it. When you run from source, the Code page offers to download it the first time (about 20 MB, checksum-verified).
-
Install a board core. Open Boards and install the core for your board family:
esp32:esp32for ESP32 / S2 / S3 / C3 / C6 / H2 / P4;esp8266:esp8266for ESP8266;arduino:avrfor Uno / Nano / Mega;- also STM32 and RP2040.
The board-index URLs for ESP32, ESP8266, RP2040 and STM32 are preset; add more under Board URLs…. The ESP32 core downloads about 1–2 GB of compilers the first time.
-
Pick the board in the BOARD box (type to search). Use ⚙ for board options such as the partition scheme, flash size or upload speed. The scan button identifies boards with a native USB chip on PORT.
-
Write code. You get syntax highlighting, autocomplete (
Ctrl+Space), auto-indent, bracket matching, comment toggling, find/replace, multiple file tabs (+adds a.hor.cpp) and examples (Examples menu). -
Verify (
Ctrl+R) to compile, or Upload (Ctrl+U) to compile and flash the board on PORT. The serial monitor pauses during the upload and reconnects afterwards.- Compiler errors are underlined in the editor, marked in the gutter, and clickable in the console.
- The footer shows the flash and RAM usage.
-
Export compiled binaries (Sketch menu) writes the
.binfiles into the sketch'sbuild/folder. For ESP boards it can load them straight into the Flash page.
New sketches start as untitled scratch sketches, kept automatically. Use Save as to give one a name and a folder;
the default is Documents/Arduino. Cores, libraries and the sketchbook are shared with the Arduino IDE.
No Python is needed for either option. Download from the releases page.
Windows
Flash-<version>-Setup.exeis the installer. It installs per user without admin rights (or for all users if you choose), adds a Start-menu entry, an optional desktop icon and an uninstaller in Settings → Apps. Sample MicroPython firmware is included. Installing a newer version upgrades the old one in place.Flash-<version>-windows-x64.zipis the portable version. Unzip it anywhere and runFlash\Flash.exe.
Silent install, for IT or scripts: Flash-<version>-Setup.exe /VERYSILENT /CURRENTUSER.
Linux
tar xzf Flash-<version>-linux-x86_64.tar.gz
bash Flash-<version>/install.sh # installs to ~/.local, adds a menu entry and the 'flash-esp' command
bash Flash-<version>/install.sh --uninstallRequirements: Python 3.10+ (tested with 3.14).
Windows (PowerShell)
git clone https://github.com/Gueni/flash.git
cd flash
powershell -ExecutionPolicy Bypass -File scripts\setup_venv.ps1
.venv\Scripts\python.exe main.pyLinux
git clone https://github.com/Gueni/flash.git
cd flash
bash scripts/setup_venv.sh
.venv/bin/python main.pyYou can also install it as a package with pip install . and then start it with flash-esp.
The build scripts do everything in order:
- set up the venv and install the dependencies;
- run the unit tests;
- build the app with PyInstaller from
flash.spec; - smoke-test the bundled esptool;
- package the result.
# Windows -> release\Flash-<v>-Setup.exe + release\Flash-<v>-windows-x64.zip
powershell -ExecutionPolicy Bypass -File scripts\build.ps1
powershell -ExecutionPolicy Bypass -File scripts\build.ps1 -OneFile # single portable .exe insteadThe Windows installer is compiled from installer/flash.iss with
Inno Setup 6 (winget install JRSoftware.InnoSetup). Without Inno Setup the
script still produces the portable zip.
# Linux -> release/Flash-<v>-linux-<arch>.tar.gz (with install.sh)
bash scripts/build.sh
bash scripts/build.sh --install # ...and install it for the current user
bash scripts/build.sh --onefile # single portable binary insteadPyInstaller can't cross-compile, so build the Windows installer on Windows and the Linux package on Linux.
flash/
├── main.py # launcher: python main.py (also the PyInstaller entry)
├── flash.spec # PyInstaller build definition
├── installer/flash.iss # Inno Setup script (Windows installer)
├── pyproject.toml # package metadata (pip install .)
├── requirements.txt # runtime deps requirements-dev.txt -> + PyInstaller
├── scripts/ # setup_venv.{ps1,sh}, build.{ps1,sh}, install_linux.sh, style.py (house style)
├── assets/img/ # README screenshots
├── tests/ # unit tests (test_flash_core.py, test_arduino.py) + sample firmware/images
└── src/flash/
├── app.py # QApplication setup, --run-tool dispatch
├── settings.py # persistent state + JSON profiles
├── assets/ # app icon and logo (bundled)
├── core/ # no GUI code in here
│ ├── tools.py # esptool/espefuse/espsecure invocation, arg builders, output parsing
│ ├── runner.py # QProcess runner: streaming output, progress, stop
│ ├── arduino.py # arduino-cli: download, command lines, JSON / compiler-output parsing, sketches
│ ├── serial_monitor.py
│ └── efuse.py # eFuse JSON parsing + xlsx/csv export
└── ui/
├── theme.py # light/dark palettes -> Qt stylesheet
├── icons.py # inline SVG icon set
├── code_editor.py # C++/Arduino editor: highlighting, completion, diagnostics, find/replace
├── arduino_dialogs.py # Boards manager and Library manager
├── titlebar.py # custom window title bar (frameless window chrome)
├── widgets.py # FlowLayout, ResponsiveGrid, Card, inputs, Console, Toast
├── main_window.py # sidebar, connection bar, console, responsive behaviour
└── pages/ # flash, code, memory, device, tools, efuse, monitor, settings
Every operation runs in a separate process, so a hung transfer can always be stopped and never freezes the window:
- From source: the app runs
python -m esptool …. - In the packaged exe: there is no Python interpreter, so the exe starts itself again as
Flash.exe --run-tool esptool …, and that copy runs the bundled esptool.
In both cases the output is parsed live for progress and errors.
python -m unittest tests.test_flash_core tests.test_arduino -vThe tests cover argument building, number parsing, progress parsing and eFuse parsing/export. They also run the
real tools offline: image-info on the sample firmware, and an espefuse --virt summary. No board is needed.
The other tests/test_*.py files are the legacy upstream esptool 2.x suites, and they need hardware.
| Problem | Fix |
|---|---|
AttributeError: module 'serial' has no attribute 'Serial' |
The wrong PyPI package serial is installed and hides pyserial. Run pip uninstall serial and then pip install --force-reinstall pyserial. The setup scripts do this for you. |
Linux: Permission denied: '/dev/ttyUSB0' |
Run sudo usermod -aG dialout $USER, then log out and back in. Don't run the app with sudo. |
Linux: Could not load the Qt platform plugin "xcb" |
Run sudo apt install libxcb-cursor0 (or the equivalent package for your distro). |
Failed to connect to ESP32: No serial data received |
Hold BOOT, tap EN/RESET, then try again. Or, in Settings, set Before to no-reset and put the chip in download mode by hand. A lower baud rate can also help. |
| Port busy | Close other serial monitors. Flash's own monitor pauses itself while an operation runs. |
- esptool / espefuse / espsecure by Espressif Systems and contributors (GPL-2.0-or-later). Flash drives these tools and bundles them in the packaged executable.
- Qt for Python (PySide6) and pySerial.
- Author: Mohamed Gueni. Issues and pull requests are welcome.




