Brownout handling
Posted: Tue Mar 02, 2021 10:05 am
Hi All,
I would like to discuss proper brownout handling.
The ESP32 chip detects a brownout status and triggers a BROWNOUT reset (if enabled) to properly handle the brownout situation (e.g. saving data to flash, signaling low power alarm, etc). From a brownout state there are two ways out: If power further drops, it causes a shutdown. If power comes back it will clear the brownout state and continues operation without any reset. Am I right so far?
Question: After "properly handling" the brownout situation, what is the proper operation to halt the processor in a way that makes sure that when power comes back, then the processor can start operation from a determined state (e.g. PWRON reset) regardless if it was shut down due to low power, or if it has "survived" the brownout state?
A possible answer: keep watching the brownout status and if it goes back to normal, issue a sw reset....would that work?
Thanks
Andrew
I would like to discuss proper brownout handling.
The ESP32 chip detects a brownout status and triggers a BROWNOUT reset (if enabled) to properly handle the brownout situation (e.g. saving data to flash, signaling low power alarm, etc). From a brownout state there are two ways out: If power further drops, it causes a shutdown. If power comes back it will clear the brownout state and continues operation without any reset. Am I right so far?
Question: After "properly handling" the brownout situation, what is the proper operation to halt the processor in a way that makes sure that when power comes back, then the processor can start operation from a determined state (e.g. PWRON reset) regardless if it was shut down due to low power, or if it has "survived" the brownout state?
A possible answer: keep watching the brownout status and if it goes back to normal, issue a sw reset....would that work?
Thanks
Andrew