-->
Page 1 of 1

How do make ESP8266 retain the code uploaded

PostPosted: Tue Sep 27, 2016 10:46 am
by Pugazh
Hi Experts,

I am new to this forum and I am currently doing a project with ESP8266.

My recent experiment has been with FTD1232 and ESP8266. When i upload the code everything works well but I switch off the power and switch on, ESP80266 gets reset to blank and code has to be reloaded.

So can ESP8266 not retain the code on its own after power loss?

Re: How do make ESP8266 retain the code uploaded

PostPosted: Wed Sep 28, 2016 4:23 am
by eduperez
Are you sure you are wiring GPIO0 and GPIO2 properly?

Re: How do make ESP8266 retain the code uploaded

PostPosted: Wed Sep 28, 2016 11:02 am
by rudy
You have not said what software platform you are working with so it is impossible to give you an answer specific to your situation. You need to provide more information on what you have and how you are using it.

The ESP8266 code is saved for the Arduino platform (which I use) and many others.

Re: How do make ESP8266 retain the code uploaded

PostPosted: Wed Sep 28, 2016 1:23 pm
by martinayotte
When uploading succeeded and code properly running until next power cycle or reset, it means that you still have GPIO0 grounded, therefore re-entering into upload mode.