Can't get a clean restart via software
Posted: Sat Aug 14, 2021 5:30 pm
I have a situation where the ESP.restart does not properly reset the ESP32 NodeMCU-32s, 38 pin board. It does do a restart, but some of the data is corrupted instead of being cleared out when the sketch runs anew. However, if I press the hard EN/RST button, all is fine. Unfortunately this board does not allow use of the ESP.reset function which would clear all data and start a "fresh" run of the sketch.
I tried to use the GPIO2 pin, and others, to force the EN/RST to LOW and it does reset the ESP, B-U-T it will keep the EN/RST LOW and does not go back HIGH on reboot as stated, so it's caught in a restart loop. Also, if GPIO2 is connected to EN/RST the button is nonfunctional as it's being held HIGH by GPIO2.
And in either of these situations, I am unable to upload any modified sketch until I remove the connection from GPIO2 to EN/RST.
I tried to use the GPIO2 pin, and others, to force the EN/RST to LOW and it does reset the ESP, B-U-T it will keep the EN/RST LOW and does not go back HIGH on reboot as stated, so it's caught in a restart loop. Also, if GPIO2 is connected to EN/RST the button is nonfunctional as it's being held HIGH by GPIO2.
And in either of these situations, I am unable to upload any modified sketch until I remove the connection from GPIO2 to EN/RST.