Soft WDT Reset

Please help. What does this error code mead?

Soft WDT reset

stack>>>

ctx: cont
sp: 3ffffdb0 end: 3fffffc0 offset: 01a0
3fffff50: 00000000 3ffee4b8 3ffe8684 40201aa5
3fffff60: 0089971f 00000002 3ffee4b8 40201ad4
3fffff70: 00000014 3ffee374 3ffee4b8 3ffee520
3fffff80: 00000014 3ffee374 3ffe84d0 402011a2
3fffff90: 3fffdad0 00000000 3ffee374 402012ce
3fffffa0: feefeffe feefeffe 3ffee4e0 4020221c
3fffffb0: feefeffe feefeffe 3ffe84f4 4010106d
<<<stack<<<

how did you got this error ? explain

it only happen if I change the delay to millis

void counter(){ 


   while(b!=20)
{    
  StartTime = millis();
  if (StartTime - checkTime>= 1000) {
  b=b-1;
  checkTime = StartTime;    //  delay replaced with millis
  lcd.setCursor(10,1);
  lcd.print("   ");
  lcd.print(b); 
  Serial.println(b);
} 
   }
   
    while(a!=1)
{
    
  StartTime = millis();
  if (StartTime - checkTime>= 1000) {
  a=a-1;
  checkTime = StartTime;       //  delay replaced with millis
  lcd.setCursor(10,1);
  lcd.print("    ");
  lcd.print(a); 
  Serial.println(a);
} 
          
   } 


} [code/]

which board are you using ? esp8266 ?

Yes. esp8266

it runs fine with delay but if I use millis that's where the error occur.

What I want to do is to cancel the delay or skip the delay if don't want to wait for the delay to finish.

please checkout this github post and also this post as well, maybe helpful

Thanks m_k_akash. I'll check on this :slight_smile: