
An ESP32 boots normally, prints the first few serial messages, and reboots as soon as Wi-Fi starts. If the serial console reports that the brownout detector was triggered, start with the power path. The reset tells you that the supply fell below the detector threshold. Your job is to find where it dropped and what made it drop.
Capture the first reset before changing anything
Open the serial monitor at the baud rate your firmware uses, reset the board, and record the lines immediately before and after the first reboot. If your application logs when it calls Wi-Fi setup, note whether the reset begins there or later, while transmitting traffic. A fast voltage collapse can cut off the brownout message, so a partial line does not rule it out.
ESP-IDF exposes the last reset reason through esp_reset_reason(). On Arduino-ESP32, include esp_system.h and add the following diagnostic near the start of setup(), after Serial.begin(). This snippet is illustrative. The serial message and a supply measurement give you more evidence than the reset code alone.
#include <esp_system.h>
const auto reason = esp_reset_reason();
Serial.printf("Reset reason: %d\n", static_cast<int>(reason));
if (reason == ESP_RST_BROWNOUT) {
Serial.println("Previous reset: supply brownout");
}
Keep watchdog resets and external resets in separate buckets. A watchdog trace suggests a firmware stall. If EN goes low while the supply stays stable, inspect the reset circuit and any serial adapter or peripheral that drives it. The next experiment depends on which signal actually moved. Espressif system API
Make the failure repeatable with the smallest setup
- Start with the board alone. Disconnect optional displays, radios, relays and sensor modules. Use a known-good short USB cable and a supply that fits the board input rating. Disconnect power before moving connections.
- Keep the firmware constant. Run the same build and the same Wi-Fi action for several attempts. Log which power source, cable and accessories were connected on each attempt.
- Swap one variable. Try another cable first, then another power source. If only one swap fixes the fault, retest with the original part to see whether the failure returns.
- Reconnect loads one at a time. Check whether the failure returns when the display lights, the radio transmits, or the relay switches. Power external loads from a supply sized for them and follow the board and module documentation for grounding and signal levels.
A development board may take USB power through a cable, connector, protection device and onboard regulator. A good reading at the USB source tells you little about the transient at the ESP32 module. Thin leads, loose breadboard contacts and a regulator close to its limit can each make a stable supply look unstable at the load.
Measure voltage where the ESP32 receives it
Measure the board’s 3.3 V rail at the closest accessible point to the module, using a nearby board ground. A multimeter can reveal a consistently low rail, but it can miss a brief dip. On a scope, start with a short probe ground connection and a falling-edge trigger. Capture the rail during the Wi-Fi start that causes the reset. Check the regulator input on a second channel if you can.
- Input and 3.3 V drop together. Trace the problem upstream through the cable, connector, source current limit or input power wiring.
- Input holds while 3.3 V falls. Inspect the regulator’s current capability, required input-to-output headroom, output capacitor requirements and the connection between the regulator and the module.
- 3.3 V looks stable but EN falls. Probe EN near the module and compare it with the input rail. Check the reset switch, board auto-reset circuitry and any external wiring on EN.
Use the cover illustration as a visual example of a dip. It does not show a measurement from this guide. Record the minimum rail voltage and the conditions of your own test. When comparing scope captures, use the same probe point, trigger and firmware activity.
Fix the power path and rerun the same test
On a development board, start by replacing the cable or source that reproduced the issue. Before supplying a pin directly, check that board’s schematic. A 5 V input and a 3.3 V pin are different points in the power path. Avoid powering multiple inputs unless the board documentation explicitly allows it.
For a custom board based on the original ESP32, Espressif recommends a 3.3 V supply rated for at least 500 mA in its general single-supply design guidance, plus capacitance at the power entrance and at the relevant rails. Follow your exact chip or module reference design and the regulator datasheet. Extra capacitance can help with a short transient, but it cannot replace a source that cannot deliver the needed current. Espressif ESP32 schematic checklist
Leave the brownout detector enabled and use it to check the repair. Repeat cold boots, Wi-Fi association and sustained traffic. Test again with normal peripherals connected. Record the cable, supply and workload that passed so the next person can reproduce the setup. Espressif fatal errors and brownout behavior