-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
NodeMCU ESP8266 12E - serial monitor garbage output #4005
Comments
set the baudrate in your IDE ser.mon. window to 74880 and use Serial.begin(74880); in your sketch, then everything should be ok. |
@5chufti legend ! On my system ser.mon window doesn't even need to be at 74880 - as long as the sketch has Serial.begin(74880) it seems to work fine. thank you |
Oh man, it took half a day to stumble upon this issue. |
@pauledd yes highly frustrating - and probably the card - I repurchased two Makerfocus NodeMCU 12E cards from amazon and don't have the same issues (though some sketches are a little fussy on the baud rate selected in the SM - but not the sketch). |
You are a hero, I've been searching sites and posts for a day now and this is the one that fixed it for me. They must have a clock divisor set wrong some place! Thank you!!!! |
If the crystal is running 1.5 times too fast, could this be why my wifi is not working? |
Depend if this frequency is properly reflected in the esp_init_data block. |
Same here! |
Hi,
I still have not found a solution. I'll email you if I do.
I'm not sure the serial issue is a fundamental problem with the board and
the bad clock rate is keeping the wifi from working.
I'm still working on it and I ordered a different board.
FYI, my email is [email protected]
…On Sun, Jan 14, 2018 at 8:23 PM, Jungseo Park ***@***.***> wrote:
Same here!
I got a Lolin ESP8266 nodeMCU v3 from aliexpress..
I'm testing on Hellow Server example code.
it only works fine at sketch 74880, ser.mon 115200.
But the wifi is not working..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4005 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhmuVOCKlVWVv7yLKEuwfZjXO9Gui_a1ks5tKraYgaJpZM4RJDN1>
.
|
I got my money back for the faulty unit and ordered another one here in germany. The board looks quite the same like the Chinese one except one part: the faulty china unit has on that wifi metal case printed "Vendor AI-THINKER". The good one I got from germany has printed HYSIRY and this "pacman" next to the Wifi-logo. |
I"m not sure where the esp_init_data block is or how to debug it.
In Arduino IDE the board is set to 80MHz.
…On Sun, Jan 14, 2018 at 3:18 PM, 5chufti ***@***.***> wrote:
Depend if this frequency is properly reflected in the esp_init_data block.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4005 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhmuVKI4fT8fHS9SnwkRCnHbVe9akBcVks5tKm8lgaJpZM4RJDN1>
.
|
Did you have the same baud rate issue/no wifi on the Chinese board and then
have it work on the German board?
If so I will quit trying on the HiLetgo board I have and wait for a new
board.
…On Mon, Jan 15, 2018 at 1:28 AM, pauledd ***@***.***> wrote:
I got my money back for the faulty unit and ordered another one here in
germany. The board looks quite the same like the Chinese one except one
part: the faulty china unit has on that wifi metal case printed "Vendor
AI-THINKER". The good one I got from germany has printed HYSIRY and this
"pacman" next to the Wifi-logo.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4005 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhmuVKU9IphPAoaw6P0A7JeZjYH4Rg5sks5tKv4mgaJpZM4RJDN1>
.
|
Yes, 74880 baud and no wifi. But be warned, dont try to identify "good" boards on the shop images of the board. I noticed that with the china seller. He sent me the "AI-THINKER" board while in his shop the images did not have that logo. Its a bit trial and error... |
I'm on the same boat. If I try the wifiscan example, I only get some readable output when I set to 74880 and keep reading at 115200, but I don't get any wifi. |
And the Blink examples don't work with the builtin led either |
unfortunately there is no "standard" for the builtin led for esp "generic boards", so your mileage with blink example will vary. The latest github should have some led selection menu I heared... |
Just wanted to update you.
I got a new HiLetgo board and it works fine.
My conclusion is that if you have to set baudrate to 74880 to get a good
output 115200, the board is bad and wifi will not work. Throw it away and
get a new one.
For $6 it is not worth wasting your time on. I'm still waiting to see if
HiLetgo atleast does the right thing and replaces the two bad boards that I
have now.
…On Tue, Jan 16, 2018 at 10:08 AM, 5chufti ***@***.***> wrote:
unfortunately there is no "standard" for the builtin led for esp "generic
boards", so your mileage with blink example *will* vary. The latest
github should have some led selection menu I heared...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4005 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhmuVLHiPWLikQ8QIulPOG1Gl_IeRzCxks5tLMl5gaJpZM4RJDN1>
.
|
I have a board that has the same issue, looks like the problem is it has a 40MHz crystal instead of the standard 26MHz one, what I did to solve this was to flash esp_init_data_default.bin with ESP8266 Download Tool changing CrystalFreq from 26M to 40M (I flashed it at 0x3fc000, having a 32mb board). |
ok, turns out that doesn't work with arduino, so what I did now was commenting line 91,93,94 and 95 from cores\esp8266\core_esp8266_phy.c and it seems to be working correctly, i'm not sure wifi works as intended, i'll have to test that. |
Did you try the 40MHz crystal setting in the IDE? |
Nice! It works at 40MHz! and 1 AP scanned with the example code of wifi scan, but it looks like not on my router.. at this time my iPhone can scan 7 AP's.. but the esp8266 can't scan all the AP's now. if I grasp the usb cable, 2 AP's could be scanned.. weird.. |
I have a LoLin NodeMCU v3, looks like the wifi works, although really really badly. try changing location to see if you can find at least one AP. |
@m-m-0-0 I'm literally touching the router with the same board as you. Was the frequency the only thing you changed on arduino? Which board do you set on arduino IDE? |
@surak I set NodeMCU 1.0, with all the other settings unchanged. |
Ok. Still confused on what the solution to this issue. I just downloaded the latest version of the core and tried the same dev board as in post 1. The only think that seems to work is setting the baud rate to 74880? I did notice that v1.0 of the board defaults to the 40Mz crystal. I tried the solution in the above post but it did not work either - I do get a warning "warning: espcomm_send_command: wrong direction/command: 0x01 0x00, expected 0x01 0x08". Or is the solution ditch this board for something else? |
The above did not work for me either. However, I did order two new boards
and had no problems.
I then emailed HiLetGo and they sent me replacement boards at no charge. I
also ordered several more with no problem.
I highly recommend that you throw the board you have away and order another
one.
…On Tue, Mar 20, 2018 at 10:40 PM, Mike S ***@***.***> wrote:
Ok. Still confused on what the solution to this issue. I just downloaded
the latest version of the core and tried the same dev board as in post 1.
The only think that seems to work is setting the baud rate to 74880? I did
notice that v1.0 of the board defaults to the 40Mz crystal. I tried the
solution in the above post but it did not work either - I do get a warning
"warning: espcomm_send_command: wrong direction/command: 0x01 0x00,
expected 0x01 0x08".
Or is the solution ditch this board for something else?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4005 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhmuVL2wdjIXwhv2R6lxYqEf_zFnVEJ2ks5tgcvLgaJpZM4RJDN1>
.
|
Exactly for this case it is possible to set crystal to 40MHz. With this setting baudrates and WiFi will be ok again. If the upload (flash) still fails it is more likely a problem of simple nature like bad usb cable etc. Please send all "defective" boards in my direction, I can allways use some spares ... |
Thanks Guys for the responses. Sorry it took me so long to respond. Been tied up since I posted. I email them and see if they send me a replacement. Thanks |
I now have another board that does not work unless I set the baud rate to
74880. I have flashed the same firmware that I flashed into the working
boards.
Is it possible that this board has a different crystal and needs to a
different esp_init_data block?
If so, how do I change this block?
…On Sun, Jan 14, 2018 at 3:18 PM, 5chufti ***@***.***> wrote:
Depend if this frequency is properly reflected in the esp_init_data block.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4005 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhmuVKI4fT8fHS9SnwkRCnHbVe9akBcVks5tKm8lgaJpZM4RJDN1>
.
|
@brucebuxkemper yes, it depends on the board manufacturer. It should be enough to select the crystal freq from the IDE menu. |
All I had to do is - stooped using GPIO 15 ( I had an external LED connected to GPIO Pin 15 with pull down resistor. Not sure why this solved my problem but I will be investigating this soon. |
Guys thanks for the hints, and this got my (pos?) working finally. I created a new boards.txt config which works for mine. My vendor was AI-THINKER. Access point works now at least...
|
I am still not able to get Wifi module to work correctly when building with Arduino. Upon further investigation, I am selecting a 4MB flash which I have. I found a post on epressif's forum where someone else had trouble. They said, flash it with the default blank.bin, and see if the AP works, if it does then the chip is fine. So I did that, and sure enough the AP works without issue. Since I have a 4MB flash, if I dump the address for 0x3FC000 for 128 bytes, I should get the correct esp_init_data, which I do when I flash with the defaults. However when I flash a Sketch with Arduino IDE I get some weird looking block where the esp_init_data should be. Is this just how Arudino does it, or is something broken? How I flash with defaults
0x3FC000 with defaults flashed
0x3FC000 after Arduino flashes
|
I believe that we don't use the esp_init_data.bin, and instead we build the init data from a C array defined in a .c file. |
Devyte, What’s the best way to troubleshoot the Wifi AP not working when building and deploying via Arduino IDE? I’ve tried with Core and Wifi debugging but it doesn’t tell any useful information. Additionally while it’s not a big deal if you aren’t using the bin, but is the CPU not looking specifically at 0x3fc000 for my flash size at the esp init data? So when I write the sketch to the cpu, even when erased, the values at that offset don’t match the esp init data. So this to me concludes that arduino isnt writing the bin at the write locations. Or can the esp init address be configures during boot process which is taken care of in the build process? |
Hi all, I am facing the same issue whereby the output is gibberish. I tried using both serial.begin(9600) and serial.begin(74880), and also played around with the serial moniter IDE baud rate. I also used an upload speed of 115200. The rest of the configuration is the same as gigmaps who started this thread. My project is to print the digital Vernier calliper data values on the Arduino IDE with a delay(1000). I managed to print the correct values last week, however now when I try it again, it either sends a one-time gibberish output or does not send it at all. I did not change the circuit since it managed to work and even tried soldering since I thought that the breadboard was loose. I also checked using sample codes (Blink LED) and a sample code to print "Working" after delay(500). However, the sample codes were working fine which means that the board's chip is working. Please help! Thank you!! |
I have a cheap ali esp8266(esp-12e) and this worked best for me: (wifi is working and serial monitor of arduino is almost always showing correct symbols): Serial.begin(921600); UploadSpeed: 921600 Serial Monitor: 1000000 baud |
whit cristal Frequency = 26 Mhz works all right at mine esp-01 black!! |
I was able to see the serial output when I used this setting. But I was unable to connect to the wifi AP. |
The Serial output show some errors with Serial.begin(921600); in my Arduino Weros D1 (Wifi). Serial.begin(1000000); UploadSpeed: 921600 Serial Monitor: 1000000 bauds Using NodeMCU 1.0 (ESP-12E Module) |
Hey i think I also brought a cheap Chinese board though it was sold at a reputed shop, it prints gibberish at baud rates of 9600, and 115200, but at 74880 it started printing some English |
I was also having this issue in my own code but not in the samples. No samples show the use of pins other than LED_BUILTIN. I was able to isolate it to a single pinMode() I was calling. This was a result of assigning a GPIO that was not what I thought it was. On a vanilla Arduino I am used to assigning the pins based on what number is on the board. So when I set pin 7 for this board it is not equivalent to D7...? Anyways, referring to D#, changing my pinout and reading up on the GPIO pinout got me past this. |
sorry rst pin to gnd |
My problem was that I was setting GPIO1 (TXD0) as OUTPUT and writing LOW... After I stopped doing that, it started working (74880 baud). |
I was having a similar issue as others with a knock off ESP8266EX D1 Mini Pro; garbage in serial monitor, even though the board would flash successfully. Things started looking better using Serial.begin(74880); and changing various IDE options like the Crystal Freq, but WiFi was not working. Ultimately I figured out that it had a different size Flash chip than what was indicated on the product listing and purchase order. So when I set everything back to normal including Serial.begin(115200); Crystal Frequency 26MHz, etc, but choosing Flash Size 4MB (FS: 1MB my sketch starting working properly, WiFi started working, everything is good to go. Here are my Arduino settings |
|
Basic Info
Amica NodeMCU ESP8266MOD to Arduino IDE gives garbage / gibberish serial monitor output. Note that the Blink examples function perfectly (both native Arduino and ESP8266 versions). The only good serial monitor text I can generate from this board is the bootloader output after reset button is pressed. Anything else (I've tried many examples and all baud rates) gives garbage.
Hardware
Hardware: Amica ESP8266 CP2102 NodeMCU LUA ESP-12E WIFI Serial Wireless Module
Chip: ESP8266EX
Purchased From: https://www.amazon.com/gp/product/B010O1G1ES/ref=ask_ql_qh_dp_hza
Core Version: 2.4.0-rc2
OS: macOS High Sierra 10.13.2
Description
Arduino IDE v1.8.5 installed with latest rc2 version of esp8266/Arduino installed - with the Silicon Labs CP2102 drivers installed correctly. Using the latest version of esp8266/Arduino and can't get the module to output to serial monitor (only outputs gibberish characters) - except for bootloader reset. Serial monitor baud rate is 115200 - no other baud rate works with bootloader (gives 100% gibberish).
Settings in IDE
Module: NodeMCU 1.0 (ESP- 12E Module)
Flash Size: 4MB/1MB
CPU Frequency: 80Mhz
Flash Mode: n/a
Flash Frequency: ?? not sure where this is set in Arduino IDE ??
Upload Speed: 115200
Upload Using: USB
Reset Method: nodemcu
Serial Output
Sketch
Only testing with the WifiScan example for now
The text was updated successfully, but these errors were encountered: