Skip to content

Loop in loop() causing Soft WDT reset #2866

@ludekvodicka

Description

@ludekvodicka

Basic Infos

Hardware

Hardware: WemosD1 mini v 2.1.0

Description

I'm getting "Soft WDT reset" in simple loop.

Soft WDT reset

ctx: cont 
sp: 3ffef1d0 end: 3ffef3d0 offset: 01b0

Stack (I'm not able to decode it. i don't have such option in my arduino app)

>>>stack>>>
3ffef380:  3ffe8430 feefeffe 3ffef360 3ffef390  
3ffef390:  40106af0 00000338 00000000 3ffee39c  
3ffef3a0:  3fffdad0 00000000 00000338 40201c55  
3ffef3b0:  feefeffe feefeffe 3ffee394 40202138  
3ffef3c0:  feefeffe feefeffe 3ffee3b0 40100114  
<<<stack<<<

This is sample code, It's very simplifed version of my app only to present the bug. App crash always when counter is 824.

void setup()
{
  Serial.begin(9600);
  Serial.println("Start");
  pinMode(D1, OUTPUT);
}

void loop()
{
  for ( long nBlinkLong=0; nBlinkLong < 20 * 1000; nBlinkLong++ )
  {
    Serial.printf("%d,", nBlinkLong);
    digitalWrite(D1, LOW);
    delayMicroseconds(1000);
  }
}

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions