martinayotte wrote:eduperez wrote:GPIO0 must be high and GPIO2 must be low
Small correction : it is the reverse, GPIO2=HIGH and GPIO0=LOW for serial upload.
I stand corrected, thanks!
if (glbFlagRST) {
Serial << F("\nBOOTING");
unsigned long start = millis();
while (millis() - start < TIMEOUT_3) {
delay(250);
Serial << ".";
yield();
}
digitalWrite(0, HIGH);
pinMode(0, INPUT_PULLUP); // Run Program
pinMode(2, OUTPUT);
digitalWrite(2, LOW);
ESP.restart();
}