ESP8266-12 deep sleep mode freezes chip

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Elektrofreak
Normal user
Posts: 22
Joined: 03 Mar 2016, 09:06

ESP8266-12 deep sleep mode freezes chip

#1 Post by Elektrofreak » 21 Nov 2016, 21:25

Dear all,

I am trying to get the ESP8266-12 running on my own board. I am using the current beta firmware (R143 I guess) and I don't have any problems when I don't use the sleep mode.

Concerning the Hardware, I have a 12k pull-up connected to the RESET-Pin. If i additionally connect the GPIO16-pin to the RESET-pin, the chip is stuck in reset (looks like because the current consumption is increased and it does not connect to the WiFi). It does not change if sleep mode is enabled or disabled in the web-interface....

Is this a known problem? How do I fix it?


Many thanks in advance for any hint to get rid of this problem ;)

Elektrofreak
Normal user
Posts: 22
Joined: 03 Mar 2016, 09:06

Re: ESP8266-12 deep sleep mode freezes chip

#2 Post by Elektrofreak » 06 Dec 2016, 12:04

Hello everybody,

unfortunately I could not find the issue until now. Could somebody give me some hints to find the root cause? The informations concerning deep sleep mode are very scattered and far from complete on the world wide web...


Many thanks in advance!

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: ESP8266-12 deep sleep mode freezes chip

#3 Post by Drum » 07 Dec 2016, 12:41

Okay, the pullup keeps the reset from doing an automating reset and GPIO 16 pulls it to ground to reset it and wake it up again.

I suspect you may have some other issues. Do you have a schematic, picture... What is your power circuit? Check the wiki there is a section on power, but without much more information it is impossible to suggest anything with any chance of working.

Elektrofreak
Normal user
Posts: 22
Joined: 03 Mar 2016, 09:06

Re: ESP8266-12 deep sleep mode freezes chip

#4 Post by Elektrofreak » 03 Jan 2017, 07:40

Dear all,

I finally found the root cause... It is very easy if you know :lol: .

In case you do a proper reset, the ESP8266 needs some time to clear the internal registers. If you connect GPIO16 directly to the reset pin, it will try to do the reset but the reset itself will release the reset. If the reset periode is too short, it could not reset completely all registers and so it might try again to reset or do anythink else than what you like it to do.

I have captured the reset pin voltage and found the waveform shown in the attachment. As you can see, it tries to reset many times but never really long or clear. After adding a 470R inbetween GPIO16 and the reset pin, it was fine :D . It now discharges the RESET capacity so it will keep the reset state even if GPIO has gone low again for a short periode which is okay for the ESP.

By the way: I removed the 100nF parallel to the reset pin trying to fix it (attached snapshot) but it made it more difficult to find the root cause. Now I have the 12k and the 100n as typically being used plus the 470R for the GPIO16 pin.
Attachments
IMG_20170102_210229.jpg
IMG_20170102_210229.jpg (173.32 KiB) Viewed 13152 times

filo
New user
Posts: 6
Joined: 16 Jan 2017, 20:04

Re: ESP8266-12 deep sleep mode freezes chip

#5 Post by filo » 16 Jan 2017, 20:10

Hi. Can you show your scheme? I fight all the time with deep sleep in ESP12E with ESPEasy newest FW and I don't know how I doing wrong, but my ESP never wake up! :?

Elektrofreak
Normal user
Posts: 22
Joined: 03 Mar 2016, 09:06

Re: ESP8266-12 deep sleep mode freezes chip

#6 Post by Elektrofreak » 17 Jan 2017, 07:55

I don't have a schematic right now. But you can test the following:
  • Check the voltage level / pull up & pull down resistors of GPIO0 (high), GPIO2 (high) and GPIO15 (low)
  • Check that you have a 12k between Reset and VDD
  • Check that you have a 100nF between Reset and GND
  • Check that you have a 470R between GPIO16 and Reset
  • Check that you have a >220µF capacitor and a ceramic 100nF between VDD and GND (as close as possible!)
  • Check that your power supply is capable of zero load (regulation speed at restart!), large current spikes (best >=500mA) and (in case of a buck-dc-dc) that it has a large primary side capacitor
  • Use an oscilloscope and probe the VDD, Reset and GPIO16 voltages
I hope this list is a good help :-)

filo
New user
Posts: 6
Joined: 16 Jan 2017, 20:04

Re: ESP8266-12 deep sleep mode freezes chip

#7 Post by filo » 20 Jan 2017, 17:01

Only last point is not feasible for me because I haven't oscilloscope, but besides fulfill all the requirements. Did not work :(
After ESP sleep down, then send "ets Jan 8 2013, rst cause:5, boot mode:(3,6)" and that's all :(

filo
New user
Posts: 6
Joined: 16 Jan 2017, 20:04

Re: ESP8266-12 deep sleep mode freezes chip

#8 Post by filo » 20 Jan 2017, 19:59

WORKIG ! :D
But ony 120 build, not for 147 ;)

Ayoub
New user
Posts: 1
Joined: 06 Mar 2018, 12:34

Re: ESP8266-12 deep sleep mode freezes chip

#9 Post by Ayoub » 06 Mar 2018, 12:39

Hi guys, I have the same prob here. My ESP-12E won't wake up and the serial monitor shows some randome characters. I didn't understand filo's final response.
Please help me out.

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests