- Sat Jul 04, 2015 7:17 pm
#22461
Ive been studying these devices recently but am far from an expert. However, here is what I think I am seeing. The GPIO2 pin has two purposes on the device. The first is that it can act as a GPIO. The second, is that it is the TX line of a second UART (Serial connector). This means that if the device starts to communicate using the 2nd UART, the TX line will start receiving data. As such, you should not ground or set high this pin as if it should start sending data, that will be a "short" (if grounded and you transmit a "1", that will short the pin (me thinks)).
Now ... you may say that this does not apply to you since you may not be explicitly writing to the 2nd UART (known as UART1 - the first is UART0). However, the device writes to UART1 by itself in certain circumstances.
First, when you flash the device, the data received is apparently also written to the TX pin of UART1 (GPIO2).
Second, the "debug" code in the device writes its output to UART1.
Free ESP8266 book available for download
here.