-->
Page 1 of 3

How to flash, when in deep sleep?

PostPosted: Sat Mar 18, 2017 2:51 pm
by bert2002
Hi,
i was just playing a little bit around with the deep sleep function and now my module is sleeping very deep and I can't flash it anymore. I think its normal that I can't flash it while it is sleeping, but how do I get it in a mode again to flash it? My test application is not running long enough to flash it.

Any ideas?

Thanks

Re: How to flash, when in deep sleep?

PostPosted: Sat Mar 18, 2017 2:57 pm
by schufti
remove the direkt link between rst and gpio16.
If you use a resistor, replace it with a higher one (2k2) or even better, a small signal schottky diode (cathode to gpio16).

Re: How to flash, when in deep sleep?

PostPosted: Sat Mar 18, 2017 3:14 pm
by bert2002
schufti wrote:remove the direkt link between rst and gpio16.
If you use a resistor, replace it with a higher one (2k2) or even better, a small signal schottky diode (cathode to gpio16).

Hi schufti, thanks for the fast reply. Unfortunately I dont have an direct link between RST and GPIO16, neither do I use a resistor (afaik). I am using the ESP8266 NodeMCU board with Arduino. Actually I have an RST and Flash button, but it didnt get them to work.

Thanks.

Re: How to flash, when in deep sleep?

PostPosted: Sat Mar 18, 2017 3:26 pm
by martinayotte
If you don't have any resistor or diode, the deepSleep wakeup will not work.
You should use RES + GPIO0 to enter in upload mode.
If this doesn't work, you must have a wiring problem.
Do you have GPIO2/GPIO0 pulled-up while GPIO15 pulled-down ?
Do you have CG_PD pulled-up ?