Brownout detector was triggered

  • ESP32

You may see

Brownout detector was triggered
rst:0xc (SW_CPU_RESET)

Why it happens

  • A thin or long USB cable, a weak USB port or a hub.
  • A motor, relay, pump or servo powered from the ESP32's own pins.
  • A loose power wire.

How to fix it

  1. Use a short, thick USB cable and a direct port or a good 5 V phone charger.
  2. Power motors, pumps and servos from their own supply, and join the two grounds.
  3. Unplug parts one at a time until the restarts stop. The last one was the culprit.
  4. Don't switch the detector off in code: the board may then misbehave instead.

It worked if: The Serial Monitor runs for a few minutes without the message, with Wi-Fi and the motor working.

From the official documentation. Message from Espressif's fatal errors page. Sources: Espressif: fatal errors, Espressif esptool: troubleshooting.

Didn't help? Search another error or ask us.