轉(zhuǎn)自:https://arduino.stackexchange.com/questions/55702/esp32-disable-brownout-detector#
步驟1:修改Arduino\hardware\espressif\esp32\tools\sdk\sdkconfig文件济似,
CONFIG_BROWNOUT_DET= //previous was "=y"
CONFIG_BROWNOUT_DET_LVL_SEL_0=? ? ? //previous was "=y"
CONFIG_BROWNOUT_DET_LVL_SEL_1=
CONFIG_BROWNOUT_DET_LVL_SEL_2=
CONFIG_BROWNOUT_DET_LVL_SEL_3=
CONFIG_BROWNOUT_DET_LVL_SEL_4=
CONFIG_BROWNOUT_DET_LVL_SEL_5=
CONFIG_BROWNOUT_DET_LVL_SEL_6=
CONFIG_BROWNOUT_DET_LVL_SEL_7=
CONFIG_BROWNOUT_DET_LVL=? ? ? ? ? //previous was "=0"
步驟2:
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
setup(){
? ? WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0); //disable brownout detector? ?
}