Why does ESP8266 show 'Garbage' characters?

AcmeUK
Posts: 20
Joined: Wed Dec 06, 2023 5:14 pm

Why does ESP8266 show 'Garbage' characters?

Postby AcmeUK » Wed Dec 06, 2023 5:38 pm

Many ESP8266 newcomers complain that when they boot the esp8266 all they see is 'Garbage'!

This is because the the ESP8266 boot ROM runs at 74880 Baud.

Many people complain at the 'choice' of 74880; well there is a technical reason for it.

On the google.groups esp-open-rtos Forum I found a post by Angus Gratton.

He gives this explanation:-
On reset, ESP8266 hardware default baud rate depends on the crystal choice. With a 40MHz crystal you get 115200bps. With a 26MHz crystal you get proportionally less, 74880bps (115200*26/40). Almost everyone (including Espressif) ships hardware with a 26MHz crystal, so almost everyone gets 74880bps by default.

So, when the ESP8266 boots the baudrate is 74880, until you change it in your sketch. What you are calling 'Garbage' are boot time messages. These messages can help with debugging.

I prefer to run my sketches at 74880, so that I can see the boot time messages. 74880 is sufficient for most purposes.

One problem is that some terminals do not support the 74880 Baud rate. To overcome this I use CoolTerm set to run at the 74880 non-standard baud rate by using a simple baudrates.ini file, see here :-http://forums.the-meiers.org/viewtopic.php?f=4&t=479

Hope this helps.

(This is a revised reposting of this topic that was originally on the old ESP8266 Forum; so that Newbies can find it) :)

mgchristensen
Posts: 1
Joined: Sat Dec 16, 2023 2:41 pm

Re: Why does ESP8266 show 'Garbage' characters?

Postby mgchristensen » Sat Dec 16, 2023 2:51 pm

Thank you for posting this. It is a clear explanation of the why.

Now for me the hunt is on. CoolTerm does not run under Gnu/Linux, and minicom will not allow 74880 data speed.

Will post solution if I am successful.

ESP_Sprite
Posts: 9568
Joined: Thu Nov 26, 2015 4:08 am

Re: Why does ESP8266 show 'Garbage' characters?

Postby ESP_Sprite » Sun Dec 17, 2023 1:28 am

Not sure if it's specific to the FTDI chip I used around that time, but for me, this worked.

AcmeUK
Posts: 20
Joined: Wed Dec 06, 2023 5:14 pm

Re: Why does ESP8266 show 'Garbage' characters?

Postby AcmeUK » Sun Dec 17, 2023 10:40 am

The Arduino IDE serial monitor has the 74880 baud option.

Who is online

Users browsing this forum: No registered users and 65 guests