ESP32 boot log: what rst and boot actually mean

An ESP32 prints two lines before your program says anything, and the second one is the most misread line in embedded support. Here is the whole table it comes from, the half of it that is not an error at all, and what each reset reason actually means.

Last checked against the source code on 2026-11-14.

The line itself, split in two

After every reset the ESP32 ROM prints a banner at 115200 baud, whatever baud rate your program later uses. Espressif’s own documentation for it is exact, and it is worth reading twice:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
     |                            |
     |                            +-- the strapping pins, as a register value
     +-- the reason for the reset

Espressif’s boot-mode documentation says rst:0xNN (REASON) “is an enumerated value (and description) of the reason for the reset”, and that boot:0xNN (DESCRIPTION) “is the hex value of the strapping pins, as represented in the GPIO_STRAP register”, where “each bit corresponds to one strapping pin: set if that pin was high on reset, cleared if it was low”. It adds that “not all strapping pins affect the boot mode”.

So boot:0x13 is not a fault code, and SPI_FAST_FLASH_BOOT is the normal case: the chip booted from flash the way it is supposed to. The same field reading DOWNLOAD_BOOT(...) or DOWNLOAD(USB/UART0) is the one that matters in the other direction — that board is sitting in the serial bootloader waiting for esptool, and is not running your program at all. Espressif lists SPI_FLASH_BOOT, SDIO_REI_FEO_V1_BOOT and ATE_BOOT as unsupported modes. We do not publish a bit-to-pin table for GPIO_STRAP, because Espressif does not publish one on that page either; it refers you to the Technical Reference Manual.

Every reset reason the ESP32 ROM can print

This is ESP-IDF’s own RESET_REASON enum, from esp_rom/esp32/include/esp32/rom/rtc.h. The means column is the header’s own comment. The what to do column is ours, not Espressif’s. Value 2 is absent from the vendor enum, so it is absent here: a table that filled it in would be inventing a reason.

rst:NameMeans (ESP-IDF)What to do
0x0NO_MEANno reason recordedNothing to read from this one; look at the lines after the banner.
0x1POWERON_RESETVbat power on resetA normal cold start: power was applied, or the board was replugged. Expected after a flash.
0x3SW_RESETsoftware reset digital coreSomething called esp_restart() or the ROM's own restart. Look for the line before it.
0x4OWDT_RESETlegacy watch dog reset digital coreThe old RTC watchdog fired. Usually a hang before the app's own watchdog was configured.
0x5DEEPSLEEP_RESETdeep sleep reset digital coreThe board woke from deep sleep. Expected if your program sleeps.
0x6SDIO_RESETreset by SLC module, reset digital coreAn SDIO host reset the chip. Rare outside SDIO designs.
0x7TG0WDT_SYS_RESETTimer Group0 Watch dog reset digital coreA task watchdog timeout: something blocked without yielding. Find the last line printed.
0x8TG1WDT_SYS_RESETTimer Group1 Watch dog reset digital coreA task watchdog timeout, timer group 1. Same read as TG0.
0x9RTCWDT_SYS_RESETRTC Watch dog Reset digital coreThe RTC watchdog fired. Typically a hang very early, before the app got going.
0xaINTRUSION_RESETInstrusion tested to reset CPUA hardware intrusion/tamper reset. Rare on a dev board.
0xbTGWDT_CPU_RESETTime Group reset CPUA timer-group watchdog reset the CPU core only.
0xcSW_CPU_RESETSoftware reset CPUThe usual one after esptool flashes and resets the board, and after a panic handler restarts it. Benign on its own; read the lines above it.
0xdRTCWDT_CPU_RESETRTC Watch dog Reset CPUThe RTC watchdog reset the CPU. Look for a hang right after boot.
0xeEXT_CPU_RESETfor APP CPU, reset by PRO CPUThe app CPU was reset by the pro CPU. Normal during startup on dual-core parts.
0xfRTCWDT_BROWN_OUT_RESETReset when the vdd voltage is not stableA power problem, not a code problem: the supply sagged. Try a different USB port or cable, or power the board properly if it drives a load.
0x10RTCWDT_RTC_RESETRTC Watch dog reset digital core and rtc moduleThe RTC watchdog reset everything. On a board that was just flashed this is most often an incomplete image: the bootloader, partition table or app is missing, or the image went to the wrong offset.

The classic ESP32’s table is the one above. The S2, S3, C3 and C6 ROMs print the same banner shape with their own enum, so a name that is not in this table is a newer chip’s, not a corrupted line.

The three lines that mean your code died, not that the board reset

A reset reason tells you the chip restarted. ESP-IDF’s fatal-errors guide is what tells you why. Its panic handler prints “Guru Meditation Error: Core 0 panic’ed (IllegalInstruction). Exception was unhandled.” with the cause in the parentheses, then a Backtrace: line which “contains PC:SP pairs, where PC is the Program Counter and SP is Stack Pointer”. The brownout detector prints Brownout detector was triggered and the chip resets.

These are the patterns MCUPort matches, and what it calls each one:

Reading it as one verdict instead of by eye

The reason this page exists in a product’s documentation and not only on a forum is that an AI agent working on firmware has the same problem you do, one layer up: it gets the raw banner back and has to guess. MCUPort’s flash_and_watch flashes, follows the board to the port its program comes back on, reads the output with arrival times, and answers with one of ran crashed brownout boot_loop silent no_match flash_failed — plus rom_reset, the decoded banner, when the board printed one.

flash_and_watch { "family": "esp32", "path": "COM5",
                 "firmwarePath": "build/app.bin", "expect": "ready" }

-> verdict: "boot_loop"
   because: "the board reset 3 times while watched: it is crashing or
             watchdog-resetting before it settles"
   rom_reset: "reset reason rst:0x10 RTCWDT_RTC_RESET (RTC Watch dog reset
               digital core and rtc module). ..."

Two details that matter for trusting it. The last banner wins, not the first: the first one after a flash is esptool’s own reset, so reading that one would report every healthy flash as a software reset. And a reset value the table does not have is reported as unknown with the raw text, never mapped to a neighbouring reason.

This is the part that has been run on real silicon: on 2026-10-31 a physical Arduino Nano ESP32 answered flash_and_watch through the built server over real stdio — ran on its own heartbeat line after a 9.0 s flash, and boot_loop for an image that dereferences NULL after boot. One board model, on one day; the decoding above is unit-tested against the ROM’s enum rather than against every chip.

Have your agent do this for you

Your agent can flash the board, read the banner and tell you which of these reasons it was, without you copying a serial log into the chat.

Install the server (macOS or Linux; Node.js 20 or newer, installs under your home directory, no root):

curl -fsSL https://mcuport.com/install.sh | sh

Windows PowerShell: irm https://mcuport.com/install.ps1 | iex

Then register it with Claude Code:

claude mcp add mcuport -- ~/.local/bin/mcuport

No board on the desk right now? The same server runs three simulated boards on the real MicroPython interpreter, so you can see the tool calls before you own anything: claude mcp add mcuport -e MCUPORT_SIMULATOR=1 -- ~/.local/bin/mcuport

No account, no sign-up and no upload: it is a local process that talks to your board over USB. The desktop server is free with unlimited boards — see pricing for the one thing that is not — and the quickstart has the Claude Desktop and Cursor config.

Frequently asked questions

What does rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) mean?
It is two separate facts, and only the first one is about a fault. rst:0x10 is the reset reason, value 16 in the ROM's RESET_REASON table: RTC Watch dog reset digital core and rtc module. boot:0x13 is not an error code at all -- Espressif's boot-mode documentation says it is "the hex value of the strapping pins, as represented in the GPIO_STRAP register", and SPI_FAST_FLASH_BOOT is the normal flash boot mode. So that line says: the RTC watchdog reset the chip, and the chip then tried to boot from flash normally. On a board you have just flashed, the usual cause is an incomplete image or an image written at the wrong offset.
Which rst: value means the board lost power rather than crashed?
rst:0xf (RTCWDT_BROWN_OUT_RESET), whose own description in the ROM header is "Reset when the vdd voltage is not stable". That is a power problem, not a code problem: a USB port that cannot supply enough current, a thin cable, or a load on 3V3. ESP-IDF also prints the line "Brownout detector was triggered" from the brownout detector before the chip resets, and warns that if the supply drops quickly only part of that message may reach the console.
Is rst:0xc (SW_CPU_RESET) after flashing a problem?
No, on its own. The usual one after esptool flashes and resets the board, and after a panic handler restarts it. Benign on its own; read the lines above it. esptool resets the board when it finishes writing, and the ESP-IDF panic handler also restarts the chip, so SW_CPU_RESET shows up in both the healthy case and the unhealthy one. What tells them apart is whether a panic or a "Brownout detector was triggered" line came before it, and whether the banner then appears again a second and third time.
Why does my ESP32 print nothing at all after reset?
Three ordinary causes, in order of likelihood: the serial port is open at the wrong baud rate (the ROM prints its banner at 115200 regardless of what your program later uses); the program hangs before its first print; or GPIO15 is being held low, which Espressif documents as silencing the boot messages printed by the ROM bootloader. A board with GPIO15 pulled down is working correctly and simply not telling you about it.
Can an AI agent read the reset reason instead of me?
Yes. MCUPort's flash_and_watch tool flashes the board, follows it to the port its program comes back on, reads the first output with arrival times, and returns one verdict out of ran, crashed, brownout, boot_loop, silent, no_match, flash_failed. When the board printed a ROM banner it also returns rom_reset: the decoded reason and the next step, from the same table this page prints. The decoding happens in the server, so the agent is not asked to interpret the raw line.
What strings count as a crash rather than a reset?
MCUPort watches for 7 of them: ESP-IDF panic (Guru Meditation), abort() was called, ESP-IDF backtrace, FreeRTOS stack overflow, assert failed, MicroPython exception, Cortex-M HardFault. The first three are ESP-IDF's own panic output -- the "Guru Meditation Error: Core 0 panic'ed (...)" line, the "Backtrace:" line of PC:SP pairs, and abort() -- and the rest cover FreeRTOS stack overflows, assertion failures, MicroPython tracebacks and Cortex-M hard faults on non-ESP boards. A crash signature wins over a reset count, because the panic says what happened and the reset only says that it did.