is there a cold restart/reboot?

danny@cs.huji.ac.il
Posts: 31
Joined: Thu Mar 30, 2017 10:39 am

is there a cold restart/reboot?

Postby danny@cs.huji.ac.il » Thu Jan 04, 2018 12:13 pm

In certain cases I need to reboot the esp32, i.e. after a firmware update (via OTA)
but using esp_restart() not always works, mainly it either hangs, or some wierd leftovers
are there. hitting the reset button helps.

So my question is, is there some software brute force reboot?

thanks,
danny

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: is there a cold restart/reboot?

Postby ESP_Angus » Thu Jan 04, 2018 11:49 pm

Hi danny,

esp_restart() should be quite close to a full system reset (same as the reset button), although pin strapping and some other very early initialisation is not repeated.
danny@cs.huji.ac.il wrote:mainly it either hangs, or some wierd leftovers
are there.
Can you supply any more details of this? What IDF & bootloader version you have, the exact output you get, etc? This sounds like a bug of some kind (possibly in the esp_restart() logic, before the reset actually happens).
So my question is, is there some software brute force reboot?
In theory there is esp_restart_noos(), which skips trying to cleanly shut down the WiFi & Bluetooth stacks or to stop the RTOS scheduler and proceeds to reset the chip (esp_restart() calls esp_restart_noos()). It's not recommended to call this function directly, though.

danny@cs.huji.ac.il
Posts: 31
Joined: Thu Mar 30, 2017 10:39 am

Re: is there a cold restart/reboot?

Postby danny@cs.huji.ac.il » Fri Jan 05, 2018 6:41 am

the idf is quite resent, from master about a week ago.

I have several boards, and the symptomes are not identical, this particular one,
hangs very often in the same spot, i'll try to attach the console output.

I have seen in the past, when I was playing with pwm, that after a reboot the pwm went on running,
only powere cycle stopped it.

Sometimes, either the wifi fails to connect, or the spi connected rfid reader failes to initialize.

apart from this 'little problem' it's working great!

thanks,
danny
bug.txt
(5.79 KiB) Downloaded 1029 times

Who is online

Users browsing this forum: Google [Bot] and 118 guests