-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hanging ESP.restart() #1722
Comments
the |
OK, thanks for your explanation...... I was reading the ESP.restart() issues. |
yes, the manually reset after serial flashing is the latest work around. |
OK, thanks.... I think, I can live with it...... :-) |
Would it be possible for the ESP gurus to write a README guide to the ESP, just a list of known issues that a newbie could read, I just spent a few hours trying to work out why system restart seemingly randomly works... and this is why, would be great to have a list of known strange issues someone just starting with the ESP could read and save a lot of headaches ! :) For some reason , this only happens with larger programs, if you just upload a program with the system restart command in and that is it, it works fine.... not sure if that helps ? Thanks |
I've had the same problem, even with a pull up on GPOIO#0, it didn't work. Then I reasoned that as I was using GPIO as an output, maybe the hardware wasn't reseting it to an input on a soft reset, so the reset would depend upon the state of GPIO#0. So, I set GPIO#0 high before doing the restart and it works! |
i have a solution; close WiFi; forceSleepBegin(); |
hi there After flashing all AT commands worck good.
who can help me ??? |
@karenYerevan this repo has nothing to do with the AT command set. I suggest asking at a community forum like esp8266.com. |
@karenYerevan AFAIK, after flash via serial, you need to do a hard/manual reboot at the very first time(power OFF and ON, ESP8266). See in this comment |
yes i done that many many time, but that dosnt worck |
If a GPIO pin is set high or low prior to restart, will it remain in that state after the restart? I want to remember that state when the program reboots, if that makes any sense. |
GPIO pins will be re-inited before setup() |
You have to have a jumper on D0 and Rst. That worked for me |
added WiFi status connected test in main loop. But note this restart() function ONLY works After the board has been manually rebooted at least once after flashing see: esp8266/Arduino#1722
according to esp8266/Arduino#1722 (comment) there are some issues with ESP.restart() hanging sometimes, and the only known workaround is to shut off wifi beforehand to avoid a race with the wifi stack.
according to esp8266/Arduino#1722 (comment) there are some issues with ESP.restart() hanging sometimes, and the only known workaround is to shut off wifi beforehand to avoid a race with the wifi stack.
Does reset cut full power? |
Hi,
what´s the difference between
ESP.reset() and ESP.restart()?
Both work, but sometimes the ESP does not starts again.
working restart:
hanging restart:
The text was updated successfully, but these errors were encountered: