Page 1 of 2
ESP-01 program lost after reset
Posted:
Wed May 11, 2016 9:16 am
by Gene
I am using IDE 1.6.8 to program my ESP-01 and everything is working fine.... until I reset the power. I tried it with 4 different ESP-01, the result is the same - EEPROM is cleared after reboot. I must be doing something wrong but I use the same setup with Adafruit HUZZAH ESP8266 and I have no issues with it.
Any ideas? Thanks.
Re: ESP-01 program lost after reset
Posted:
Wed May 11, 2016 5:16 pm
by eduperez
GPIO0 / GPIO1 must be wired differently when booting normally than when booting to upload (and execute) a new firmware.
Re: ESP-01 program lost after reset
Posted:
Wed May 11, 2016 5:41 pm
by martinayotte
Small correction : it is GPIO0 and GPIO2 (not GPIO1).
@eduperez is right ! after upload, you need to switch GPIO0 to HIGH for normal execute mode at every power-up.
Re: ESP-01 program lost after reset
Posted:
Wed May 11, 2016 9:13 pm
by Gene
Thank you guys for your replies. Switching GPIO0 to HIGH at every boot up means that I can't really use it to control things, turn a relay for instance. Or am I missing something?