-->
Page 1 of 1

A very dumb move - Deep Sleep / sleeping beauty?

PostPosted: Fri Oct 02, 2015 11:37 am
by Vincent Lê
Hi,

I made an horrible mistake (end of the week, tired, ...): I wrote a dumb init file like that
Code: Select allprint("-- Enter deep sleep mode")
node.dsleep(10*1000*1000)


:cry: ...yes I know this is bad, but now, I have two problems:

(1) BIG problem: how do I trash my init file in this infinite loop?
(2) small problem: my ESP stays in deep sleep mode, through my pins GPIO16 and RST are linked.

Is there a solution? :cry:

Re: A very dumb move - Deep Sleep / sleeping beauty?

PostPosted: Fri Oct 02, 2015 12:20 pm
by Barnabybear
Hi, disconnect power - take GPIO 0 low - power up and flash.
Disconect power should stop current sketch - flash mode should stop it running again.

Re: A very dumb move - Deep Sleep / sleeping beauty?

PostPosted: Mon Oct 05, 2015 5:16 am
by Vincent Lê
I doesn't work.
What do you mean exaclty by "flash" ?
I just did:
1- power off
2- gpio0 LOW
3- power on
4- reset

Re: A very dumb move - Deep Sleep / sleeping beauty?

PostPosted: Mon Oct 05, 2015 6:15 am
by Vincent Lê
OK, got it .. I know now how to flash my ESP