-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
Unsupported baud rate 115200 #37
Comments
Could you please post the sketch itself and the verbose compiler output when you submit issues? Verbose output can be enabled in the Arduino preferences. Thanks.
This sketch with 115200 seems to work. |
Absolutely it compiles no problem and runs no problem but when flashing the chip this is the message I see.. unsupported baud rate – it still works… Sketch uses 189,636 bytes (36%) of program storage space. Maximum is 524,288 bytes. warning: unsupported baud rate: 115200, using 115200 Uploading 31488 bytes from C:\Users\Peter\AppData\Local\Temp\build71807972327932918.tmp/sketch_apr02b.cpp_00000.bin to flash at 0x00000000 ............................... Uploading 158184 bytes from C:\Users\Peter\AppData\Local\Temp\build71807972327932918.tmp/sketch_apr02b.cpp_40000.bin to flash at 0x00040000 ........................................................................................................................................................... From: Ivan Grokhotkov [mailto:notifications@github.com] Could you please post the sketch itself and the verbose compiler output when you submit issues? Verbose output can be enabled in the Arduino preferences. Thanks. void setup() { void loop() { } This sketch with 115200 seems to work. — |
Hmm. How is that possible?
Puzzled... |
Not sure if this is related but the LOGWARN message looks the same: Setting the upload speed to 921600 does not work, although 256000 is fine Der Sketch verwendet 184.858 Bytes (35%) des Programmspeicherplatzes. Das Maximum sind 524.288 Bytes. Der Sketch verwendet 184.858 Bytes (35%) des Programmspeicherplatzes. Das Maximum sind 524.288 Bytes. |
@cimba007 as you see from the code snippet above, 921600 is not supported on Windows (because windows doesn't have What I don't understand is how we can possibly get a message
from the code snippet above... |
Is there a way to increase the baud rate above CBR_256000 with windows? 256000 is already a huge speed improvement but more = better ;-) It seems odd, since I can do the following: Serial.begin(512000);
And now I can receive the messages perfectly fine. |
Well, just found this:
So maybe it's okay to define those on Windows as well. |
Ivan! 2015-04-02 20:29 GMT+05:00, cimba007 notifications@github.com:
|
I've got a new esptool build ready which adds support for higher baud rates on Windows: |
Perfect! I tryed some different baud-rates and here are the results for my 200kb sketch: 115200 ~21 seconds Only rough estimations with stopwatch. No error messages, works fine esptool v0.4.2-3-g1e36d49 - (c) 2014 Ch. Klippel ck@atelier-klippel.de |
Erm, I've just realised I have no idea how to set the baud rate in this Arduino environment for ESP8266. Someone enlighten me? |
Go to the following path: arduino-1.6.1-p1-windows\arduino-1.6.1\hardware\esp8266com\esp8266 and update the boards.txt with the current one from the repository: https://github.com/esp8266/Arduino/blob/esp8266/hardware/esp8266com/esp8266/boards.txt Now you can use Tool > UploadSpeed in the Arduino IDE
|
That looked impressive until I compiled and.. #include "pins_arduino.h" |
What Version are you using? I took the ~350mb download from here and started the arduino_debug.exe with administrator priviledges (otherwise the compiler will crash). The path suggests you are using the esp8266 library with the Arduino unmodified standalone? |
I'm using Arduino 1.62 - and all was well.... until.... I tried this mod (wish I'd kept the original) - I'm assuming all I need is a special pins_arduino.h ??? |
Taking the most recent revision from git was likely the problem — I renamed board variants a few hours ago. |
Yes that’s it thanks… as it happens my (fast) PC won’t do beyond 115kb, at the top speed nothing happens, at 230k it fails, 115k works a treat. :) From: Ivan Grokhotkov [mailto:notifications@github.com] Taking the most recent revision from git was likely the problem — I renamed board variants a few hours ago. — |
hmm, after i was just happy, that the upload baud-rate increased i now can now longer upload new sketches. i do not get any kind of error but after flashing there is just the old content on the esp. doing some investigation UPDATE: Apparently the new codes gets uploaded but one thing confused my After uploading a blank sketch the esp8266 still connects to my wifi with the last know connection settings (Serial output):
|
I tried it out, and 921,600 works with a pl2303hx on Win7E/64. It seems even more reliable than when I tried 256,000. Both the PL2303 and FT232 support 3mbps. I've even tested the pl2303 at 6mbps: So adding 3mbps support to esptool would probably work. |
I tried adding 3000000 to serialport_setbaudrate, and it didn't work. It did set the port to 3mbps, but gave a sync failed error every time I tried. I'm guessing the esp8266 bootloader won't autobaud above 921,600bps. Status for device COM16:
|
any updates on this? I'm getting |
@circuitFlower |
Hi, mac-ae:esptool-master ae$ sudo ./esptool.py read_mac I noticed that there’s a default usb set in the python file, should I change that? I did not have GPIO0 LOW, so I connected that, and now I’m getting this error (through the arduino-esp8266 ide).:
|
If you use esptool.py, then the port should be specified, as in If you get "FLASH_DOWNLOAD_BEGIN failed" error, try uploading once more (I get this error sometimes, but on the second try it usually works). I also have seen a case when an FTDI-based USB-serial converter did not work well with FTDI driver provided by Apple. Installing drivers from FTDI helped resolve the issue. |
High baud rates support is included into the latest esptool (which also resolves some of the upload issues). |
Arduino: 1.8.3 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 921600, 4M (3M SPIFFS)" I'm getting this ERROR when i use 921600 baudrate.... but its works on another Same module.... Build options changed, rebuilding all This report would have more information with |
Why on EARTH would anyone want to try serial comms at that speed... surely that is just asking for trouble? |
That's the maximum speed henceforth i don't want to waste my time by using other br, I have 3 modules with same specification model all models supports that br, but only one is not compatible!!! |
Whatever works for you - but clearly - it doesn't always. I personally do all my stuff at 230400 and never have any issues... |
@scargill <--- same as him, I use 230Kbps. Going above that is asking for trouble. Whether higher speeds work or not depends on a bunch of things, including manufacturer, wear, noise, power supply, etc. In some cases, what gets written to the flash could even become corrupted on reboot. |
Yeah, You may b right, i didn't considered the physical things... |
The examples use 115200 baud ratge - yet the compiler complains that it's an invalid baud rate - it still works of course. Can this be removed?
The text was updated successfully, but these errors were encountered: