-
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
Got an error when flashing #3
Comments
@ly0 did you select "esptool" in Tools > Programmer menu? |
sorry, I forgot that, but after I chose esptool, another error occured. Sketch uses 196,284 bytes (37%) of program storage space. Maximum is 524,288 bytes.
Uploading 35952 bytes from /var/folders/rs/c45vj5c5433gw3cmpt641yhr0000gn/T/build6484424438996743417.tmp/WiFiClient.cpp_00000.bin to flash at 0x00000000
warning: espcomm cmd: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed OS: mac os x 10.9.5 |
GPIO0, GPIO15 pulldown? 2015-03-29 16:36 GMT+05:00, latyas(懒) [email protected]:
|
yeah, only failed on Mac, flash in Ubuntu works fine. |
I have the same issue on osx (10.10.3 (14D113c)), works fine in ubuntu on virtualbox. If you need debug info for the osx issue, I'd be more than happy to help out (but don't know where to look) :) |
@svdgraaf could you please enable verbose output in Arduino > Preferences and send me the log? |
Here is my log
|
hehe, same as above :) |
I've been having exactly the same problem. If I copy the paths for the binaries I can flash using the esptool.py... but using esptool does not work, and I can't get it to work with usb-serial devices. I can via a bluetooth HC-06 though. I have set up another programmer pyesptool, but for what ever reason the arduino IDE is refusing to run / find a python script... I've tried lots of variations... Here are the contents of the files
tools.pyesptool.cmd=esptool.py
pyesptool.name=pyesptool This give me the extra programmer pyesptool... and it generates this, which works if i cut and paste it into the command line... Sketch uses 185,856 bytes (35%) of program storage space. Maximum is 524,288 bytes. |
Okay, thanks all. Looks like esptool needs a bit of tuning.
|
Hmmm, interestingly, it does work when I use a arduino as an intermediate instead of my regular usbtoserial ftdi thingy (which did work under ubuntu). I connected up my arduino (uno), and loaded the 'bare minimum' example, hooked up my esp8266 (yes, using the regular serialports), and boom, it worked... Might be a coincidence, but here's the log:
|
OK, got an intermediate fix.. that uses https://github.com/themadinventor/esptool.git put this in your IDE packages directory ./Contents/Java/hardware/tools/esp8266/pyesptool add this to files located here platform.txt
and this to programmers.txt
Then reboot the IDE, and you should have an extra programmer pyesptool that works... (at least I do) |
I can confirm what said by @svdgraaf , in particular the Arduino needs to have the BareMinimum sketch flashed (I had to reflash to get rid of the ArduinoISP it had) |
I've got what looks like the same issue on OSX with a FTDI USB dongle - I see I'm happy to dig into this some more, but I'm not really sure where to start. Any suggestions would be very welcome. /Applications/"Arduino 161 esp.app"/Contents/Java/hardware/tools/esp8266/esptool -vvv -cd none -cb 115200 -cp /dev/tty.wchusbserial1410 -ca 0x00000 -cf /var/folders/71/9gbg1bj16jjg0h_7r49pbfv00000gn/T/build5091595574695456475.tmp/HelloServer.cpp_00000.bin -ca 0x40000 -cf /var/folders/71/9gbg1bj16jjg0h_7r49pbfv00000gn/T/build5091595574695456475.tmp/HelloServer.cpp_40000.bin |
And, I've tried sticilface's recipe from above, and that worked for me immediately. Maybe esptool hates FTDI adapters ? |
Thank you very much for the solution with
The only thing I did was to replace in
by
|
The Python flasher @sticilface mentions above seems to work much more reliably for OS X - it'd be great if it could be added to the distribution. |
Actually looks like there's already a PR for this #100 but it's a little out of date. |
Same issue :( Build options changed, rebuilding all Sketch uses 199,406 bytes (19%) of program storage space. Maximum is 1,044,464 bytes. |
I have just installed the package to Arduino IDE and have the same issue. Default everything, not tried changing settings yet. Trying to burn:
output
|
Ah! its working now for me after I plugged in the GPIO0 to GND. |
I've got below error messages always, but it works fine after restarted Arduino IDE 1.6.5 when esp8266 was still connected. |
I have the same experience. When I get those errors I restart the IDE and that seems to solve it. |
@tablatronix this problem shut be fixed in git |
No change, I also already tried generic and changed this. I am having a hard time finding the details on resetmode but i am assuming this is auto reset bootload related. I am using manual reset. |
There are 3 different main issues here, mine and a few others probably should be broken out. There is the issue with ecomm sync failed, usually occurs after an erased firmware and upload failure, it looks like bootload but it will never work until reset, sometimes an actual power cycle is needed when in this state. Another is wrong direction, i never got this personnally but i have had the chip get stuck in rom dump mode where it just streams out data and is hard to reset or get out of it. And there is the failed to receive error, which is what I get. Upload success seems to be random. |
At first I thought I had the same problem but I support Tablaronix in that there are different issues. |
Could this be an internal pullup state problem? |
I don't know how to tell. All my ESP12E's were fresh and I suppose the bootloader in the chip is the same for all. Maybe some other load on the ESP board? I wanted to know too, but couldn't find a clue. |
I tried switching to epstool.py and changed programmer to it, but it seems to be ignored when I compile, could the board.txt entry be overriding it as it always still calls esptool.exe, does something else have to change. EDIT: I just realized there is a |
I think I was having the same issue, got everything working fine with a new adapter. Gonna choke this up to a voltage levels issue, the adapter i was using is made for industrial control and 5v level, so it has massive filtering on it (ferrite beads and a lot of caps), I was seeing voltage across the FTDI 232 of 4.95v from a 5.10 supply, coupled with the adafruit huzzah which has a dropper on the RX line. It worked perfect for everything , but it would not get reliable responses from flash erase. ( perhaps the baud rate used at that point, or the baud negotiate, is tripping up ) Ill look into this later when I have a scope or serial inspector. meh. |
Was away for a day and could not react on your question yesterday. I think you got it already. The instructions above were missing boards.txt change. There is .upload.tool= to be changed for the board in question. |
The adafruit huzzah dev board has regulator and level shifters, works with 5v serial. |
OK. |
Quick question about using pyesptool as custom programmer on mac. My IDE does not create ino.00000.bin or 40000, it only compiles a .ino.bin Has this changed at some point since ? |
looks like you can write the entire bin , you dont need 2 blobs. not sure what the addresses specify. Since i am using git this is my platform entry that works. Added serial speed
|
Update boards.md - add ESPino by ThaiEasyElec
Hi all, The command line : I've uncountered issues with OTA in this case: flash write error above the 512K limit on a 4M board. So I recommand to add the following esptool.py options to the command line: I successfully tested it on my Huzzah board (4MB = 32Mb) and it fixed my OTA issues with this: I don't know if there is a way to copy the parameters from the Arduino user interface to work with all boards? Benoît. |
@ly0 @tablatronix Is this issue still valid? The last comment was over a year ago. |
I personally have not encountered it in some time. There are alot of commit refs to this issue though, might want to check through it a few times, there seems to be alot of refs here from other issues also |
Closing due to age and can't reproduce. If anyone thinks there is still a problem, please open a new issue and include a reference to this one. |
Shorting "RESET" to "GND" on Arduino Uno solves the following problem when connecting to ESP8266 via Arduino (even with the Blank Sketch on the Arduino): Also thanks to sticilface above for pointing to the esptool.py github location. Installing esptool on Lubuntu 16.10 via |
Reducei2ciram
Sketch uses 196,284 bytes (37%) of program storage space. Maximum is 524,288 bytes.
java.lang.NullPointerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:246)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:75)
at processing.app.debug.Compiler.upload(Compiler.java:157)
at processing.app.Sketch.upload(Sketch.java:1259)
at processing.app.Sketch.exportApplet(Sketch.java:1201)
at processing.app.Sketch.exportApplet(Sketch.java:1173)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2432)
at java.lang.Thread.run(Thread.java:745)
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: