Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Marty
#22187 I have an LED connected to GPIO2 through a 220ohm resistor. When I upload my sketch, the sketch works fine once the upload is completed.

If I remove power, remove the GPIO0 - GND short, and reapply power, the blue LED on the ESP8266 stays on constantly and my LED comes on (should be initially off).

If I remove the connection to my LED, cycle power, and then reconnect my LED, the sketch works perfectly.

Can anyone explain what is happening here.

Thanks,
Marty
User avatar
By Marty
#22279 Thanks Lethe,

You are correct, switching the polarity of the LED fixed the problem.

Is it commonly known about this behavior of GPIO2? I had not come across this in the documentation before.

Now I see a small note on the ESP8266 Arduino Githup site "GPIO2 is alternative TX for the boot loader mode". I would not have read into that statement about preventing the voltage on that pin from going low during boot-up.

Is this situation covered in some other documentation ? It's rather important.

Regads,
Marty