-->
Page 8 of 8

Re: Hangs when coming out of Deep Sleep mode

PostPosted: Mon Mar 21, 2016 4:03 pm
by Mattia Durli
Hello Alan, check this other thread I started:
viewtopic.php?f=32&t=8663&e=0

I don't think the problem is in the DHT22, I'm having the problem with nothing connected.
Tried 160,330 and 660R. Better but doesn't solve.

Re: Hangs when coming out of Deep Sleep mode

PostPosted: Sat Jun 17, 2017 9:08 am
by Philbot
It's now 2017 and so this problem has been around for 2+ years.

I can replicate the problem as stated... deepsleep runs normally on an Adafruit Huzzuh for a while (minutes, hoyrs, days) and then for some reason, when it comes out of deep-sleep, it enters a mode that "looks" like it's in upload mode (because the LED is half on) but it neither accepts an upload, NOR will it run again just by pressing reset.

I initially thought this was a case of a bard board, because when I replaced the Huzzuh, it stopped failing, but several weeks later it's now doing it again.

It's almost as if the Deep-Sleep function is effected by the age of overall runtime of the ESP8266 module.
ie: the more times it's run, the more likely it is to fail next time. Perhaps a FLASH wearing out issue that makes deep-sleep wake up oddly.

Extremely frustrating, and the probably reason why no-one has released a reliable low power product based on the ESP8266

More info: Normally my code starts up as follows (if I set the monitor baud to 74880)

etc Jan 8 201#,rst Cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
Csum 0x2d
v09f0C112
~ld

But once the failure occurs, each time I press reset, I only get:

etc Jan 8 201#,rst Cause:2, boot mode:(3,6)

etc Jan 8 201#,rst Cause:2, boot mode:(3,6)

This is NOT my code..... It's in the firmware.