Page 1 of 1

Sudden Power Off of ESP32

Posted: Tue May 15, 2018 3:54 pm
by Kp_Devil
Hi all,
This may sound a bit odd, but I still want to know, so my questions are as follows:-
I would just like to know that what will happen if the power supply of to my ESP32 suddenly goes off.
What impact will it have on my processor?
What other harm can it do to my system?
What are the possible steps that can be taken in such scenario?.
I know about the power modes, but we are looking for complete shut down of ESP32.

Re: Sudden Power Off of ESP32

Posted: Wed May 16, 2018 1:58 am
by mikemoy
Not sure I follow what you are asking. This is not a Linux type system where it would need a proper shutdown.
It's like any other micro. Sudden loss of power is not an issue.

Re: Sudden Power Off of ESP32

Posted: Wed May 16, 2018 4:36 am
by WiFive
The only potential problem would be if it is in the middle of a flash write or erase so you just have to plan for that. For example it won't boot a corrupt ota partition and will try to fall back to another partition.

Re: Sudden Power Off of ESP32

Posted: Wed May 16, 2018 10:22 am
by Kp_Devil
Thanks for your quick reply guys. . . .
I was actually planing to give an emergency power supply for shutting down in case of main power failure. So thats why I asked.
Do I need to put the emergency power supply? :D

Re: Sudden Power Off of ESP32

Posted: Wed May 16, 2018 2:37 pm
by kolban
In your application, have you implemented OTA processing? Are you writing to any Posix based flash based file systems? Are you using a micro-sd card or similar? Is your application forming a network connection to a partner where interruption of data receipt or transmission going to cause an unrecoverable problem? If not, then the likely answer is "no".

Re: Sudden Power Off of ESP32

Posted: Thu May 24, 2018 8:19 am
by Kp_Devil
Yes, I am using OTA and yes I am going to use SD Card.