LOGBOOK

HELP

Quiz Entry - updated: 2026.11.24

What does esptool.py -p /dev/ttyUSB0 write_flash 0x10000 image.bin do, and why is the address 0x10000?

It writes a prebuilt application image into the ESP32's flash over the USB serial port, starting at offset 0x10000. That is where the default ESP-IDF partition table places the first app partition.

ESP32 flash map: bootloader at 0x1000, partition table at 0x8000, nvs at 0x9000, phy_init at 0xF000 and the factory app at 0x10000, where write-flash puts image.bin

* The default layout. Writing at 0x10000 replaces only the application. *

ESP32 flash is split into regions: the second-stage bootloader near the start, the partition table at 0x8000, and then the partitions it lists. In the default single-app layout the factory app partition begins at 0x10000, so writing image.bin there replaces the application while leaving the bootloader and partition table untouched.

The important word is binary: image.bin is just the bytes that go into flash. It runs fine, but it carries no symbol names and no debug information, so you can flash and run a program you have no source for. Studying it is another matter (see the ELF card).

In esptool v5 and later the command is spelled esptool -p /dev/ttyUSB0 write-flash 0x10000 image.bin; the old esptool.py and write_flash spellings still work but are deprecated.

Go deeper:

From Quiz: SIOT / Firmware Analysis and Hardening Against JTAG Attacks | Updated: Nov 24, 2026