Sudden Power Off of ESP32

Kp_Devil
Posts: 7
Joined: Sat May 05, 2018 11:56 am

Sudden Power Off of ESP32

Postby Kp_Devil » Tue May 15, 2018 3:54 pm

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.

mikemoy
Posts: 449
Joined: Fri Jan 12, 2018 9:10 pm

Re: Sudden Power Off of ESP32

Postby mikemoy » Wed May 16, 2018 1:58 am

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.

WiFive
Posts: 2887
Joined: Tue Dec 01, 2015 7:35 am

Re: Sudden Power Off of ESP32

Postby WiFive » Wed May 16, 2018 4:36 am

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.

Kp_Devil
Posts: 7
Joined: Sat May 05, 2018 11:56 am

Re: Sudden Power Off of ESP32

Postby Kp_Devil » Wed May 16, 2018 10:22 am

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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Sudden Power Off of ESP32

Postby kolban » Wed May 16, 2018 2:37 pm

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".
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Kp_Devil
Posts: 7
Joined: Sat May 05, 2018 11:56 am

Re: Sudden Power Off of ESP32

Postby Kp_Devil » Thu May 24, 2018 8:19 am

Yes, I am using OTA and yes I am going to use SD Card.

Who is online

Users browsing this forum: MSN [Bot] and 45 guests