aioscilloscope / Learn / An ESP32's boot message

Decode an ESP32's boot message with an oscilloscope, no firmware needed

Every ESP32 talks the moment it resets: before any program runs, its ROM prints a few lines at 115,200 baud. There is nothing to program, and the EN button repeats it as often as you like.

CH1Step by step

  1. Find UART0's TX pin. GPIO1 on a classic ESP32, GPIO43 on an S2 or S3, GPIO21 on a C3, GPIO16 on a C6. Dev boards often mark it TX or TX0.
  2. Connect the probe. Tip on that pin, ground clip on GND. Power the board from USB as usual.
  3. Set the channel. CH1 at 1 V/div, DC, probe 10×, 0 to 3.3 V on screen.
  4. Set the time base. 20 ms/div, the trigger point near the left edge. Memory depth 250 kpts or more, for 10 samples a bit.
  5. Arm on the start bit. Edge trigger, CH1, Falling, 1.6 V. Press Single.
  6. Reset the chip. Press the board's EN (or RST) button. The ROM prints its message and the scope stops on the first start bit.
  7. Decode it. Serial decoder: source CH1, threshold 1.6 V, idle high, 115,200 baud, 8 data bits, no parity, 1 stop bit, ASCII.

CH2What each line means

A classic ESP32's ROM message, from Espressif's documentation:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:8452
load:0x40078000,len:13608
load:0x40080400,len:6664
entry 0x40080764

CH3Why did it reset?

The classic ESP32's reset reasons (ESP-IDF's ROM header):

rst:NameWhat it means
0x1POWERON_RESETPower-on reset
0x3SW_RESETSoftware reset of the digital core
0x5DEEPSLEEP_RESETWaking from deep sleep
0x7, 0x8TG0WDT_SYS_RESET, TG1WDT_SYS_RESETA watchdog ran out: a program stopped responding
0xcSW_CPU_RESETSoftware reset of the CPU
0xfRTCWDT_BROWN_OUT_RESETThe supply voltage dipped (a brown-out)

Newer chips name their reasons their own way; an ESP32-S3 prints rst:0x1 (POWERON).

CH4Change how it boots

Hold BOOT (it pulls GPIO0 low), press and release EN, then release BOOT. The message now says DOWNLOAD_BOOT(...): the chip waits to be programmed. Press EN alone and it boots normally again.

The ESP8266 and 74,880 baud

The ESP8266 prints its boot message at 74,880 baud (Espressif's documentation, with a 26 MHz crystal), so a monitor at 115,200 shows garbage at every reset. A good baud-rate exercise: one bit is 13.4 µs.

If nothing sensible shows

What you seeWhat to change
Nothing on the pin at resetThe wrong pin for this chip, or GPIO15 held low (on a classic ESP32 that silences the ROM).
Characters, but garbageWrong baud rate: 115,200 for the ESP32 family, 74,880 for the ESP8266.
Invalid headerThe ROM could not read a valid bootloader from flash.

Questions

Why does my serial monitor show garbage when the ESP resets?

The ROM prints at a fixed rate and the monitor is at another: 115,200 baud for the ESP32 family, 74,880 for the ESP8266.

What does rst:0x1 (POWERON_RESET) mean?

That the ESP32 started from a power-on reset. The number after rst: is the reset reason.

Do I need to program the ESP32 for this?

No. The message comes from the ROM built into the chip, before any program runs. A brand-new board prints it too.

More to try

Every guide