0

enter image description here

I connected like this status(D0 ~ RST) on my ESP8266 NODEMCU board for making deepSleep & wakeup automatically.

after I set like this,

ESP.deepSleep(5e6); // 5second for entering deepSleep mode then wake up automatically

this code can be work. but the problem after that is, 'ESP8266 is no more reset itself'.

for example,

ESP.reset();

this code do not working.

more serious problem is unable to watchdog - reset. as usual, when system confronts some problem, internal watchdog bite its system so System do reset. but after I connected D0-RST, and confronting error, watchdog bite system - but system do not 'reset'.

see this code & system message.

void setup() {
  // put your setup code here, to run once:

  Serial.begin(115200);
  Serial.println("hello");

  for(int i=0;i<10;i++){

     digitalWrite(LED_BUILTIN, LOW); //turn on
  delay(100);                   
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off
  Serial.println("blink");

  }
    delay(3000);

    while(true){
      //when system enter here, watchdog always bite.
    }
}
//this is system message
blink
blink
blink
blink
blink
blink
blink
blink
blink
blink

Soft WDT reset

>>>stack>>>

ctx: cont
sp: 3ffffdf0 end: 3fffffc0 offset: 01b0
3fffffa0:  feefeffe 00000000 3ffee2ec 40202aa8  
3fffffb0:  feefeffe feefeffe 3ffe84f4 40100a0d  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)


 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset
//no re-start 'blink' after !!

so How can I make my system to do reset(by WDT) & deepSleep/wakeup ? my board is always on the place where people cannot touch, so I need both option.

  • you have io 0 LOW. (boot mode:(1,6)) – Juraj Sep 5 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.