BugZapper: flash ESP8266/ESP32 firmware and watch serial output in one tool

#esp32 #esp8266 #flasher

No replies · 0 views · started 42 minutes ago · 3 min read

GumSlone Administrator Principal · 1,698 posts #1

Flashing an ESP board usually means juggling tools: one app to flash (NodeMCU PyFlasher, the Arduino IDE or raw esptool commands), another to watch the serial output (CoolTerm, PuTTY, screen), and a "port busy" error every time you forget to close one of them. BugZapper puts it all in one small window.

What is it?

A tiny, dependency-light flasher for ESP8266, ESP8285 and ESP32 boards, with both a GUI and a command line. It runs on Windows, macOS and Linux.

  • Nothing to install: esptool and pyserial come bundled, so all you need is python3 (plus Tk for the GUI). There are also prebuilt standalone downloads with Python included.
  • Flash and monitor in one place: after flashing it reopens the serial monitor on its own, so you see the boot log right away, with no "port busy" clash.
  • A proper serial monitor: line numbers, ANSI colours, live baud switching, sending text to the board, and saving or live-logging to a file.

Handy features

  • Chip info: probes the connected board for chip type, MAC address and flash size before you choose an image.
  • Erase only: wipes the whole chip without writing firmware, which clears stored Wi-Fi credentials or rescues a board stuck in a boot loop. It asks first.
  • Safe cancel: abort while it's stuck at "Connecting…" on the wrong port. Cancelling locks the moment writing starts, so you can't brick a board halfway through.
  • ESP32 multi-part images: bootloader at 0x1000, partitions at 0x8000, app at 0x10000. Add the parts by hand or Scan a build folder to fill them in. Single merged images still flash at 0x0.
  • NodeMCU Lua tab: upload init.lua and data files to the board's filesystem, list files, or format it.
  • Drop-in: it finds ./firmware/*.bin automatically, so you can bundle it with your own firmware project.

Using it

GUI:

./bugzapper.sh              # macOS / Linux
bugzapper.bat               # Windows

Command line:

python3 flash.py                         # flash the first ./firmware/*.bin to the auto-found port
python3 flash.py -f build/app.bin -e     # a specific file, erase first
python3 flash.py -p COM5 -b 460800       # explicit port and baud
python3 flash.py -i                      # chip info
python3 flash.py --erase-only            # wipe the chip
python3 flash.py --scan build/           # ESP32: flash all parts of a build folder

On macOS, ./make_app.sh builds a double-clickable BugZapper.app with its own Dock icon.

Downloads

The GitHub Releases page has ready-made builds for Apple Silicon Macs, Intel Macs, Windows 10/11 and Linux x64, with nothing else to install.

Who is it for?

  • Beginners who just want to put a .bin on a board and see what it prints.
  • Makers shipping firmware: drop BugZapper next to your .bin files so users can flash them in one click.
  • Anyone tired of closing the serial monitor every time they want to flash.

It's also perfect for flashing a tray of ESP-01s for a BunkerNet mesh.

GitHub: https://github.com/gumslone/BugZapper

What do you use to flash your ESP boards today, and what's the most annoying part of it?

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close