ESP32 - PlatformIO no work

Hello! I have troubleshooting.

" Brownout detector was triggered

ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
entry 0x40080310 "

With what hardware setup / development board, with what code, platformio.ini?

Brownout is when the microcontroller detects that the 3.3V power supply line is breaking down. How do you power your board? Do you have something attached to it that draws lots of power?


platform = espressif32

board = esp32dev

framework = arduino

upload_port = COM3

upload_speed = 921600

monitor_port = COM3

monitor_speed = 115200

My board connect to USB notebook. NO ATTACHED TO PIN !!!

Custom hardware or a ESP32 Dev board? Which exactly?

Have you tried and read the suggestions at Brownout detector was triggered · Issue #168 · nkolban/esp32-snippets · GitHub, specifically e.g. connecting a big capacitor accross VIN and GND (or 3.3V and GND)? Or change the USB cable to a better and shorter one?

In another environment (Arduino IDE) the same error. This error occurs only after I start including WIFI in AP or STA mode. Board - Wi-Fi board LuaNode32 с ESP-32 Wi-Fi модуль LuaNode32 з ESP-32 купити в Києві та Україні.

Then it is very likely a hardware issue with your board. Activating the WiFi and joining a network powers on the WiFi radio, which has a high current spike at the beginning. If the bypass capacitance on the power supply is too low or the max peak current of the power regulator is too low, then the 3.3V collapses, causing a brownout. I would suggest to try a 100-470 µF capacitor between 3.3V and GND, or try to deactivate the brownout detection as the first thing in setup() (or app_main when using esp-idf) using

 #include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"


void setup()  {
    WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector
    //rest of code..

Many thanks for the advice and help. The problem was in the USB connector. Now everything starts to run.