Go Down

Topic: My wdt resets, even when running simple sketches - ESP8266-12E (Read 245 times) previous topic - next topic

fisk33a

Aug 02, 2019, 12:06 am Last Edit: Aug 02, 2019, 10:30 pm by fisk33a Reason: The post was too long
Hi forum,

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

wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld

This is the message my ESP8266-12E keeps printing in the serial monitor over and over again, even when running simple sketches like the "Blink" sketch. And then, sometimes, after printing this for 5 min or so, the sketch starts to work again, even though it didn't work initially.

I know it is the watchdog timer that restarts the chip, but why would it do that when running such a simple sketch? And how come the sketches sometimes work great, and other times just prints this in the serial monitor over and over?
Is my ESP broken? am i missing something?

DrAzzy

wdt reset means that something the sketch tried to do took long enough that the watchdog timer reset the chip. The esp8266 wdt is always on due to the need to to time-sensitive stuff relating to wifi protocol.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

fisk33a

Yes, but what is weird is that even though the sketch only has setup() and loop() in them, the problem still occurs. And even if i run a simple sketch such as "Blink", it still occurs. So i can't see why the wdt would reset the chip.

DrAzzy

Hm, yeah, blink should not be doing that - delay() calls yield() while waiting as I understand, so that should keep the ESP happy.

Does Blink without Delay also trigger it?

Using latest version of ESP8266 core?



There is a forum somewhere dedicated to ESP8266 on Arduino - you may well get better results there.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

fisk33a

I haven't tried without delay. But the thing is that, sometimes the blink sketch will work perfectly fine, but then when i either reset the chip or unplug and replug the power, it sometimes starts resetting over and over again.

I have pasted that link in the additional boards manager, so im pretty sure it is the latest version

Go Up