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
is there a cold restart/reboot?
Re: is there a cold restart/reboot?
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.
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.
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).danny@cs.huji.ac.il wrote:mainly it either hangs, or some wierd leftovers
are there.
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.So my question is, is there some software brute force reboot?
-
- Posts: 31
- Joined: Thu Mar 30, 2017 10:39 am
Re: is there a cold restart/reboot?
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
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
Who is online
Users browsing this forum: No registered users and 149 guests