-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unable to use upload speed greater than 115200 #97
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
Comments
Are you able to use 256000 and 921600 using esptool.py, or any other upload tool? |
Can you still upload at slower baudrates? I only ask because several people are having problems with uploading - did
On 22 April 2015 at 06:56, Ben Baron [email protected] wrote:
|
The first error,
means that esptool has not received the response from flash erase command. Currently the timeout is 5 seconds (and it's 10 seconds in esptool.py) The second error,
means that there was some garbage on the serial line from previous communication, which was not flushed for some reason. |
@duncan-a I'm able to flash fine almost every try by using the 115200 speed. Sometimes it doesn't work the first time (seems like it's not waiting long enough for it to reset maybe), but always works the second time. The error I get sometimes with 115200 is different than these errors. I've never gotten the other speeds to work. I haven't tried directly with esptool though. @igrr Hmm maybe it's a difference with my FTDI cable? What FTDI cable/programmer are you using? |
I'm confused - how are you setting the upload speed there's no option for What's the default upload speed in the version within the Windows version Given that I'm running an ancient laptop, speed could be an issue - though On 25 April 2015 at 22:41, Ben Baron [email protected] wrote:
|
@duncan-a I'm on OS X, and in the Arduino IDE compiled from this repo, I have 256000 and 921600 in the upload speed menu... |
Hmmm - the upload speed menu doesn't exist in the Windows version. Can you quickly explain what you mean by "Arduino IDE compiled from this Thanks On 26 April 2015 at 00:06, Ben Baron [email protected] wrote:
|
@duncan-a There's the official Arduino IDE distributed by the guys at http://arduino.cc. This GitHub repository is for the modified version of the Arduino IDE made to work with the ESP8266 wifi chip. I meant that I'm using this modified version which I compiled myself, so it should have all of the latest fixes and modifications made by @igrr and company. At least in this modified version of the IDE, there is a submenu under the "Tools" menu called "Upload Speed", which has options: 115200, 9600, 57600, 256000, and 921600. I can successfully compile and run code on my ESP8266 using the 115200 speed (which is the default), but not the higher speeds. |
Thanks Ben By "compiled myself", do you mean 'downloaded the latest .zip from If so, how? In my case, the existing install is '1.6.1-p1' from the .zip file of the On 26 April 2015 at 00:38, Ben Baron [email protected] wrote:
|
@duncan-a |
@duncan-a By compiled myself, I mean I cloned this repository to my machine (so I always have the latest updates) and then used the "ant" tool to compile it (ant; ant build; ant run). I'm on OS X, but it's basically the same on Windows. It sounds like you're new to git/programming, so probably best to use the pre-built binaries that @Toshik linked to. |
@igrr I just tried using the latest esptool.py from https://github.com/themadinventor/esptool and was able to successfully flash at 921600, so this seems to be an issue with the esptool included in this repo. |
Right now I'm having trouble installing at all from the Arduino IDE, but I can use the bin files created by it with esptool.py successfully even at 921600 speed. Would it be possible to replace the bundled esptool binary with esptool.py? |
Just tried with latest repo compiled from scratch, I'm now able to upload also at 921600 on Windows 8.1 X64 with esptool.exe |
@einsteinx2 I use an FTDI as well. I also can't upload at 921600, neither with esptool.py or esptool-ck. But i do have quite long wires from the FTDI to the ESP. |
By the way, esptool was updated to 0.4.3 — I fixed one of the causes of "wrong direction/command" error. |
I downloaded and un-zipped the file suggested by @Toshik but the .exe file It flashes up a very short-lived error message that, I think, says that With a laptop that's more than ten years old, running XP, I don't have a On 26 April 2015 at 18:38, Ben Baron [email protected] wrote:
|
Just pulled the latest and built and now I can use 921600 transfers! It usually fails the first time, but then I hit run again and it works. I used to have that same issue when flashing using 115200 before, though now I can flash at 115200 or 230400 without hitting run twice. So things have definitely improved! Closing this issue as I'm now able to use faster speeds. Thanks! |
Actually spoke a bit too soon. Sometimes it works the first time. Sometimes the second. Or sometimes I try over and over and get this error: Uploading 34944 bytes from /var/folders/qz/6zrpphk11_ddxstvt5tk21740000gn/T/build1153384146308317912.tmp/ESP_i2c_OLED_Test2.cpp_00000.bin to flash at 0x00000000 |
Did someone measured actual upload speed? esp8266 has auto baud detection, and if it is mis-detected, you can't run it at a decent speed at all, regardless of what you say (USB) port to use. I regularly get uploads of 9600 real speed. |
I haven't measured per se, but it definitely seems to be using the correct speed. It's significantly faster when uploading at 921600 vs 115200 or 230400. And 230400 does seem to be about twice as fast as 115200. |
Regarding my issues with 921600 speed, it appears to be related to the reset mechanism. I'm using an FTDI cable which automatically resets the ESP module. I noticed that on the first run, it works every time at 921600 speed. However subsequent runs fail more often than not. However, if I unplug the ESP and plug it back in before running, it works every time. So likely it's not resetting to 921600 speed after running the program. |
Thanks. My culprit was CH341 USB-UART adapter under Linux, more details are at espressif/esptool#44 |
is there anything actionable in this ticket left? |
I'm no longer working with ESP chips at this time, so unless others are experiencing this issue, feel free to close it. |
I've found the upload speeds past 256000 to be unreliable unless I'm specifically working with a wemosd1mini or nodemcu, Even with 256000 I occasionally have to revert to 115200 for a temp fix. |
The previous comment is correct. There are a lot of chinese clones which don't work well at high speeds. |
The 256000 gives the following error:
The 921600 gives the following error:
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: