user26743: I am bit of a noob when it comes to ESP programming. I have an ESP01 and a USB programmer for it, but every time I unplug it, it resets, which makes me wonder how can I make it battery-powered since every reboot resets the program.

user20650: The ESP-01 ... and all ESP8622 ... have two modes for operation.

Flash mode / Boot load mode - on bootup (at the time an electrical current is first applied, or after the reset pin is grounded), if the GPIO0 (GPIO Zero) pin {On the ESP-01 this is the 7th pin} is connected to ground, the chip goes into non-run, receive program mode.  This is where you load the compiled program.

Normal - on bootup (as above), but GPIO0 is NOT ground, then the ESP-01 goes into run mode.



26743: <p>I am bit of a noob when it comes to ESP programming. I have an ESP01 and a USB programmer for it, but every time I unplug it, it resets, which makes me wonder how can I make it battery-powered since every reboot resets the program.</p>
 20650: <p>The ESP-01 ... and all ESP8622 ... have two modes for operation.</p>
<ol>
<li><p>Flash mode / Boot load mode - on bootup (at the time an electrical current is first applied, or after the reset pin is grounded), if the GPIO0 (GPIO Zero) pin {<a href="https://en.wikipedia.org/wiki/ESP8266#Pinout_of_ESP-01" rel="nofollow noreferrer">On the ESP-01 this is the 7th pin</a>} is connected to ground, the chip goes into non-run, receive program mode.  This is where you load the compiled program.</p>
</li>
<li><p>Normal - on bootup (as above), but GPIO0 is <em><strong>NOT</strong></em> ground, then the ESP-01 goes into run mode.</p>
</li>
</ol>
