0

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.

ocrdu
1,7953 gold badges12 silver badges24 bronze badges
asked Jan 2, 2021 at 9:39
5
  • 1
    What do you mean by 'reset the program'? The uploaded program should be retained on the esp01 and start running again after a reset/reboot. Commented Jan 2, 2021 at 10:07
  • Are you sure, that the program was correctly written to the ESP? How do you see, that the program is not working? Commented Jan 2, 2021 at 10:35
  • I wrote a simple blink program which made it blink when it was programmed.. But once i remove the usb programmer with the esp on, the turns off due to loosing power and when i then plug it in. I start as it was reset.. I flash it using arduino Commented Jan 2, 2021 at 11:41
  • It stops blinking in the intended frequency Commented Jan 2, 2021 at 12:47
  • 1
    if you have io 0 to ground it always goes into flashing mode. you have to pull-up io 0 Commented Jan 2, 2021 at 13:53

1 Answer 1

1

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

  1. 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.

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

answered Jan 4, 2021 at 7:00
1
  • 1
    I had it in flash mode all the time. Commented Jan 4, 2021 at 13:19

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.