-->
Page 1 of 1

boot to sketch?

PostPosted: Sun May 31, 2015 11:08 pm
by andymule
with gpio_0 to gnd, i can boot and flash from arduino ide all day. I thought moving the gpio_0 to high would let me reboot into my sketch, but this isn't working.

How do i reboot into my sketch after flashing it from arduino so i can consider it "deployed"?

Re: boot to sketch?

PostPosted: Mon Jun 01, 2015 5:31 pm
by andymule
through fiddling, i solved my own problem. gpio_0 IS the switch between normal and flash mode: http://www.electrodragon.com/w/ESP8266

BUT it wasn't working when directly wired to VCC. I had to put a resistor between GPIO0 and VCC (pull up), and then it booted.

for some reason, pull downs and pullups on CHPD make my esp03 not boot correctly, so here's my working setups:

(flash mode, no resistors)
CHPD -> VCC
GPIO0 -> ground
GPIO15 -> ground

(normal operation)
CHPD -> VCC
GPIO0 -> pull up (~350 ohm resistor to vcc)
GPIO15 -> ground

Re: boot to sketch?

PostPosted: Mon Jun 01, 2015 6:43 pm
by andymule
reddit conversation revealed that this is even easier. no resistors ever needed.

(flash mode, no resistors)
CHPD -> VCC
GPIO0 -> ground
GPIO15 -> ground

(normal operation)
CHPD -> VCC
GPIO0 -> floating (no connection)
GPIO15 -> ground