ESP32 "Brownout detector was triggered"

The chip measured its supply voltage falling below a safe level and reset itself. The problem is in the power supply, and it shows up most when WiFi starts.

E (412) BOD: Brownout detector was triggered

ets Jun  8 2016 00:22:57

rst:0xf (RTCWDT_BROWN_OUT_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

If the voltage drops fast, only part of the message makes it to the console, or none of it, and the next boot shows the brownout reset reason.

Why it happens

The ESP32 draws short current peaks of several hundred milliamps when its radio transmits, most of all when WiFi connects. If the supply cannot deliver them, the voltage at the chip dips and the brownout detector resets it, often in a loop: boot, connect, dip, reset.

Fix the supply

Turning the detector off (CONFIG_ESP_BROWNOUT_DET) does not fix anything: the chip keeps running on a voltage where flash reads and the radio can fail, and the failures get harder to explain.

A device that browns out only at a customer's site, on their power supply, shows up in Pinscope as restarts with the brownout reason, per device: health monitoring.

Related errors: rst:0x… reset reasons · Task watchdog got triggered · Interrupt wdt timeout · Cache disabled but cached memory region accessed. All ESP32 errors: the list. Messages and causes from ESP-IDF's panic handler and Espressif's Fatal Errors guide.

More