Chat freely about anything...

User avatar
By wouter011
#7272 So I got my compiler setup and I'm able to build/flash any images to my ESP8266-02. I've got the following connections:
VCC -> 3.3V
GND -> ground
CH_PD -> 3.3V
RST -> 3.3V
GPIO0 -> ground for uploading firmware/not connected for booting in normal mode
GPIO2 -> connected to LED anode

I'm trying to set GPIO2 LOW and HIGH, alternating. I'm able to do this and after uploading the firmware my LED starts blinking at the right interval.

Now when I try to reboot the chip the LED isn't blinking anymore. When I reboot the chip without GPIO2 connected to the anode, and connecting it after a few seconds, the LED starts blinking.
Why am I unable to correctly boot the chip with GPIO2 connected to the anode? What steps can I take to solve this problem?
User avatar
By gwizz
#7275 I think when you connect the GPIO through the led (and presumably a resistor as well) to ground, you are effectively pulling it down. But to enter Flash boot mode, both GPIO 0 & 2 need to be high at least during the boot process.

At least that's my understanding. You could try connecting the led anode to vcc and the cathode to GPIO via resistor. That way it will be pulled up and shouldn't stop booting normally.

G