Skip to content

Strange output on serial port when reset ESP #3047

Closed

Description

@tomaszmacnar

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

Activity

  1. lrmoreno007 commented on Mar 15, 2017

    @lrmoreno007
    Contributor

    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.

  2. tomaszmacnar commented on Mar 15, 2017

    @tomaszmacnar
    Author

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

  3. davisonja commented on Mar 15, 2017

    @davisonja
  4. lrmoreno007 commented on Mar 15, 2017

    @lrmoreno007
    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.

  5. davisonja commented on Mar 15, 2017

    @davisonja

    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.

  6. devyte commented on Sep 7, 2017

    @devyte
    Collaborator

    Those messages can't be avoided on the main serial port. If you need a clean startup, please follow the suggestions above.
    Closing.

  7. SergiuToporjinschi commented on Jul 11, 2019

    @SergiuToporjinschi

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions