-
Notifications
You must be signed in to change notification settings - Fork 13.3k
OSX release esptool broken or only part. functional #212
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
I have no problems under OSX. It looks like your power source is adequate for programming the ESP and running non-Wifi sketches, but seems underpowered for Wifi-sketches. You need a good power supply, powering from a USB-SERIAL adapter is mostly inadequate. |
nope.I use an self build external power supply (far beyond 1A) plus tandal caps, elkos and tried even 18650 lithium ion batteries and as I also told, I'm not the only one with exactly this problems. |
On Mac OS X, Using Including |
Nice power sources, so that's not the issue :-( Read that igrr had problems with FTDI, they were solved after installing the latest drivers.
|
Thank you to all! regards |
The latest release has esptool updated to 0.4.4, which should work better with CH340 usb-ttl chips.
Done. |
Thank you! I'll test it and let you know. |
Just tested this and omg! it works. this is the first time that the esptool has worked for me on mac. Well done @igrr! You're work on this is going to become the stuff of legend! Can't wait for the SPIFFS.. which is now teased in the status bar.... all 64K of it. Is there an easy way to get the esptool to send a break signal? I have some ATTINY85s doing zero wire programming... its easy to mod the python version, i thought that esptool did it automatically after nerdralph made a request. Likely wrong though. PS.. I can upload at 460800 now! super fast. well done |
I was just writing up an issue about this. sticilface, you got it to work? I don't see esptool in the programmer menu. What programmer should I use? I'm getting this error: esptool v0.4.4 - (c) 2014 Ch. Klippel ck@atelier-klippel.de |
by default you do not need to select a programmer. esptool is selected by default. I did nothing, just connected my NODE-MCU devboard, and it worked. connected my FTDI board and ESP and that worked as well. None of these have ever worked before. The baud rate is going to be highly variable. from what i;ve seen the ESPs are quite flexible... i'be got a test sketch and using one of my FTDI dongles got a baud of 2,000,000 to work.... but that is with this one adapter that seems to be pretty good. can't flash at that speed though, at least not with the python esptool. does yours work at sensible bauds of 115200? |
I don't have esptool in the list on my mac osx version. Did I not install something correctly? On my Windows (running with vmware on the same exact machine) using Arduino v1.6.1 it has esptool listed. |
I didn't fully answer your question... No. Mine doesn't work at any baud rate on OSX. Here's more debugging information if that helps anyone. My settings:
Here's the output: esptool v0.4.4 - (c) 2014 Ch. Klippel ck@atelier-klippel.de |
all I can say is that there is no "ESP-tool" in the programmer list under OSX. But as you can see on your output the esptool is under use. |
I'm using a dongle that I bought ages ago. It says "AI" on the back, other than that I have no idea. I have the ftdi version 2.3 driver installed. Again, it does work on this exact same machine when I'm running Windows via vmware. So the hardware itself seems to work. Something about the mac side is the issue. It's certainly possible something isn't installed on my mac that should be there. Or something is broken. I just don't know how to go about debugging that. |
Hm. I would at first test the dongle under OSX. Just try with an arduino board (or something else or just connect rx with tx on your dongle) a simple serial call/response connection with all baud rates to the dongle via serial monitor. |
Whoa. I would love to do that, but I'm not sure how. Can you send me a url that has an explanation and/or some google search terms to find out how to do that test? |
If I'm not completely wrong just wire the TX and rx on your dongle together, fire up serial monitor and type anything and you should get back everything you typed as loop back |
That just blew my mind. It makes 100% perfect sense. ha I just tested it... That much works! Any idea of what to try next? |
I just took a step back and decided to see if I could get ./esptool.py to work on my mac... no luck. I copied the path of the compiled .bin file from the arduino IDE and pasted it into a command line. LIke this: sudo ./esptool.py --port /dev/cu.wch\ ch341\ USB=>RS232\ 1410 write_flash 0x00000 /var/folders/rb/svhs1qg52vzfnvl9tkp7_0jh0000gn/T/build3531805817819405198.tmp/WiFiScan.cpp_00000.bin It gives me this error: Connecting... |
Ok, you tried out all baud rates? I've several USB dongles and some work better on parallels windows on my macbook and some are working better native. ESP is really picky with that. Ok, I tried the new version of esptool v0.4.4 with success, but I'm still under https://github.com/sandeepmistry/esp8266-Arduino |
You can also try UECIDE the new beta release has the ESP as plugin, tried it out just yet and runs out of the box! |
So far, no luck with esptool v0.4.4 command line version. ./esptool -cp /dev/cu.wch\ ch341\ USB=>RS232\ 1410 -cf helloServer_00000.bin -ca 0x10000 -cf helloServer_10000.bin Uploading 33280 bytes from helloServer_00000.bin to flash at 0x00000000 |
I downloaded the UECIDE alpha release, but I don't see anything in there about the ESP8266. |
all boards are installed via Plugin manager in UECIDE |
@zenmanenergy do you have a logic analyzer or a scope? If you could capture the UART interaction during upload, that would really help. Also which usb-ttl adapter are you using? |
@igrr : He wrote "I'm using a dongle that I bought ages ago. It says "AI" on the back," I suggested a loopback test to him under OSX, which seems to run fine. So the best idea would to install UECIDE with ESP as plugin - this runs out of the box with 1-2 mouse clicks. But I fear that he has an driver problem with the dongle under osx. "/dev/cu.wch ch341" looks for me it's a CH340/CH341 not FTDI. |
From Matt Jenkins 3 day bevor: I have created a UECIDE core, compiler and board packages from the ESP8266 repository. It is available for installation in the current beta version of UECIDE. |
Oh, sorry, missed that. |
I will try the UECIDE today, where do I download the plugin for esp8266? Can any of you that has gotten this to work with a Mac show me which ftdi you are using? I would love to just order it and be done with this problem |
UECIDE -> plugin manager -> boards -> ESPxxx |
Those are exactly the ones i am using, with OS X and having success. but only with the latest release, installed via boards manager. I've got a serial test sketch to work with a baud rate of 2,000,000 with these things. uploading only the one around 400K works, not 921,000. |
Using mac os x and ESP-01. |
PERFECTO! Thanks guys. I bought one of those ftdi boards last week and it just arrived yesterday. It works great. Maybe on a wiki page we can add a link to the ftdi boards that work. |
zenman: congrats to your success! |
Hello,
maybe it's a known problem, but I didn't find it as standalone topic, so that OSX user won't get mad as I getting things to work:
The ESPtool in the OSX version isn't working.
There is no "ESPtool" under "programmers", upload seemed to be ok, some silly blink/serial tests are working, but when using every WIFI stuff, the ESP hangs.
Tried the latest OSX download release.
Topics in the forum:
My topic:
http://www.esp8266.com/viewtopic.php?f=26&t=2988&p=17021#p17021
same here:
http://www.esp8266.com/viewtopic.php?f=26&t=2423
Maybe there is a possibility, until there is no fix, to sign the OSX release as broken, because it's really hard to find out the problem (without resarching, switching to another virtual OS to see, that your hardware is running fine.)
The text was updated successfully, but these errors were encountered: