Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Bilbro3
#94581 I'm working out some projects that use deep sleep to save power on a generic 8266 board. One of my early iterations went to sleep quickly. Now I am unable to reprogram the 8266 because it goes to sleep as soon as it wakes up. Is there a way to overcome this? Later I learned to stall for 5 or 10 seconds before sleep to give me time to reprogram with Arduino.
User avatar
By btidey
#94610 If the GPIO mode pins are set to enter programming mode before reset is activated then it should go straight to download mode without executing the user program that can send it to sleep.

Development boards with auto-programming circuitry should do this automatically. For other boards you need to set the GPIO (normally just setting GPIO0 low) before pressing reset.
User avatar
By schufti
#94614 just make sure that you don't use a direct connection (or low value resistor) between gpio16 and rst, that will make entering programming mode during deepsleep almost impossible. Use a diode instead.