Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange output on serial port when reset ESP #3047

Closed
tomaszmacnar opened this issue Mar 14, 2017 · 7 comments
Closed

Strange output on serial port when reset ESP #3047

tomaszmacnar opened this issue Mar 14, 2017 · 7 comments

Comments

@tomaszmacnar
Copy link

tomaszmacnar commented Mar 14, 2017

Basic Infos

Hardware

Hardware: ESP-07
Core Version: 2.3.0

Description

When upload any program (for example Blink) I have output (like in screen) on serial port. I need to have clean console. How to fix it ?
outut2

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 1MB
CPU Frequency: 80Mhz
Flash Mode: DIO
Flash Frequency: 40Mhz
Upload Using: no_ide_how_it_check
Reset Method: ck

@lrmoreno007
Copy link
Contributor

lrmoreno007 commented 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
Copy link
Author

Thanks for answear. I will check this solutions soon :)

@davisonja
Copy link

davisonja commented Mar 15, 2017 via email

@lrmoreno007
Copy link
Contributor

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
Copy link

Yes, the ROM bootloader. Which, among other things, outputs log information on the reset cause and the boot mode.

https://github.com/espressif/esptool/wiki/ESP8266-Boot-ROM-Log

covers it.

@devyte
Copy link
Collaborator

devyte commented 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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants