platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
855 stars 570 forks source link

ESP32-C3 Brownout event Halt with no recovery. #1371

Closed brunofgc closed 1 month ago

brunofgc commented 1 month ago

Hi there! I'm using the ESP32-C3 with the Arduino Framework.

The system uses a battery as backup for AC Power Source, and it works okay. However, when the battery drains too much, the system stops working. Additionally, when the AC Power is restored, it recharges the battery, but the system doesn't resume working. I need to completely turn off and turn on again in order to back working. "Hardware Reset".

Do you know of any system functions or calls that can detect when the system halts/fails for any reason? Perhaps I could detect a "brownout event" and take some actions accordingly?

Thank you in advance.

valeros commented 1 month ago

Hi @brunofgc, the issue tracker in this repository is not the right place to ask project-specific questions, please forward it to https://github.com/espressif/arduino-esp32