Connectiong GPIO2 to GND on Startup results in junk in COM
Posted: Sun Feb 22, 2015 4:29 am
I'm using EPS12 with the latest NODEMCU firmware and have a switch connected to GPIO2 ... when the switch is closed the GPIO2 is connected to GND via 10k resistor.
What i noticed is that if The switch is closed during power on (i.e. GPIO2 is connected to GND) the module is unable to boot normally (i get bunch of repeated garbage on the serial). If open (pulled up) or left floating boot up is normal.
Now i understand that connecting GPIO0 on bootup puts the ESP in firmware upload mode, but i'cant seem to find anything related to GPIO2?
Does pulling GPIO2 low on restart also put the ESP in firmware upload mode?
Can anyone tell me if any other GPIOs have the same effect on boot mode if connected to ground?
I plan to use the ESP together with the reed switch to sense the state of the garage doors (pulling GPIO low then door is open) and since power outages are quite common aroung here it might happen that the esp will reboot while the door is open and that could cause it to go in the loop which is unacceptable.
Thanks
What i noticed is that if The switch is closed during power on (i.e. GPIO2 is connected to GND) the module is unable to boot normally (i get bunch of repeated garbage on the serial). If open (pulled up) or left floating boot up is normal.
Now i understand that connecting GPIO0 on bootup puts the ESP in firmware upload mode, but i'cant seem to find anything related to GPIO2?
Does pulling GPIO2 low on restart also put the ESP in firmware upload mode?
Can anyone tell me if any other GPIOs have the same effect on boot mode if connected to ground?
I plan to use the ESP together with the reed switch to sense the state of the garage doors (pulling GPIO low then door is open) and since power outages are quite common aroung here it might happen that the esp will reboot while the door is open and that could cause it to go in the loop which is unacceptable.
Thanks