Skip to content

v2.4.0 and Soft WDT reset while WiFi.forceSleepBegin() execution #4082

Closed
@essenemari

Description

@essenemari

Basic Infos

After board upgrade: "esp8266 by Community" from 2.3.0 to 2.4.0 observed Soft WDT reset on WiFi.forceSleepBegin(); execution.

Hardware

Hardware: ESP-12E, ESP-07
Core Version: 2.4.0

Description

Hi Team,
thanks a lot for your awesome work on ESP8266! Appreciate!

I am using WiFi.forceSleepBegin(); as critical command to turn off WiFi module for 10 minutes then turnning on WiFi module for 15 seconds to execute commands then turn WiFi off again. On 2.3.0 it does work perfect (currently ~10 ESP devices).
Noticed recently, that there is new 2.4.0 ESP8266 board software version, so upgraded and found out that my ESPs are reseting. If you'll take a look for loop it crashes exactly after Serial.println("Before WiFi.forceSleepBegin()"); and usually on 2nd or 3rd loop.
When downgraded to esp v2.3.0 - back to normal.

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 521K
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck

Sketch

#include "JsonStreamingParser.h"
#include "JsonListener.h"
#include "ExampleParser.h"
#include "Base64.h"
#include <ESP8266WiFi.h>
long int cykl_counter_start = 600000;

void setup() {
}

void loop() {
for (cykl_counter = cykl_counter_start; cykl_counter > 0; cykl_counter--) {
delay(1);
if (cykl_counter == cykl_counter_delay) {
delay(100);
Serial.println("Before WiFi.forceSleepBegin()");
WiFi.forceSleepBegin();
delay(100);
Serial.println("Sleeping");
}
if (cykl_counter == 15000) {
Serial.println("WiFi.forceSleepWake()");
WiFi.forceSleepWake();
Serial.println("Wakeing");
delay(100);
}
if (cykl_counter == 10000) {
Serial.println("Tasks");
delay(100);
}
}
}

Debug Messages

Soft WDT reset

ctx: cont 
sp: 3fff0770 end: 3fff0970 offset: 01b0

>>>stack>>>
3fff0920:  0001360d 00000600 3ffef638 4022608c  
3fff0930:  0fffffff 4020533a 00000000 40205325  
3fff0940:  00000000 3ffef53c 3ffef540 40203a16  
3fff0950:  3fffdad0 00000000 3ffef93c 40207090  
3fff0960:  feefeffe feefeffe 3ffef950 40100710  
<<<stack<<<

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


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

wdt reset

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions