You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Strange output on serial port when reset ESP #3047
It is normal in ESP8266 and is independent of the framework you use. Espressif says it can not be disabled.
But you should connect GPIO15 as TX and GPIO13 as RX and swap the default pins after the boot. You should not receive the garbage.
void setup() {
// initialize serial:
Serial.begin(115200);
// swap UART pins
Serial.swap();
}
Another option may be to transmit with Serial1 (GPIO2) and receive with Serial (GPIO3).
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
}
That is a serious problem. I spent a week debugging a circuit of a DHT and ESP8266-01 and because I was using GPIO2 (which is also a serial TXD1) and the esp is throwing this boot message on all Serials it seems. So, on ESP8266-01 only one pin available, and that is GPIO-0
Activity
lrmoreno007 commentedon Mar 15, 2017
It is normal in ESP8266 and is independent of the framework you use. Espressif says it can not be disabled.
But you should connect GPIO15 as TX and GPIO13 as RX and swap the default pins after the boot. You should not receive the garbage.
void setup() {
// initialize serial:
Serial.begin(115200);
// swap UART pins
Serial.swap();
}
Another option may be to transmit with Serial1 (GPIO2) and receive with Serial (GPIO3).
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
}
Serial1.println();
Serial1.write();
Serial1.printf();
.......
Serial.available();
Serial.read();
Serial.readString();
......
Serial1 should not transmit the initial garbage. I can't try it today.
Another option (not good) use SoftwareSerial library for ESP8266 and any other pin available.
tomaszmacnar commentedon Mar 15, 2017
Thanks for answear. I will check this solutions soon :)
davisonja commentedon Mar 15, 2017
lrmoreno007 commentedon Mar 15, 2017
No, it's a boot log from the ROM. For that reason Espressif can't deactivate it, at least that's what they say.
davisonja commentedon Mar 15, 2017
Yes, the ROM bootloader. Which, among other things, outputs log information on the reset cause and the boot mode.
covers it.
devyte commentedon Sep 7, 2017
Those messages can't be avoided on the main serial port. If you need a clean startup, please follow the suggestions above.
Closing.
SergiuToporjinschi commentedon Jul 11, 2019
That is a serious problem. I spent a week debugging a circuit of a DHT and ESP8266-01 and because I was using GPIO2 (which is also a serial TXD1) and the esp is throwing this boot message on all Serials it seems. So, on ESP8266-01 only one pin available, and that is GPIO-0