-
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
Flashing ESP8266 on OSX High Sierra #3711
Comments
I have the same problem. Please let me know if you find any solution. Thx. |
Were you able to flash successfully from Arduino IDE before updating OS X? |
Yes. No Problems with Arduino 1.8.2 on OSX 10.12 also using github master of the ESP8266 Arduino Core - maybe not the newest version, though. |
I see, can you please check which FTDI driver is being used now, by running Based on the log, it looks like esptool-ck times out early waiting for the response. It sends I have not yet updated to 10.13 myself because i have some important stuff to do next week, and can't risk breaking the dev environment on the laptop. I hope to have a chance to do the update next week and look into this. If anyone wants to dive into esptool-ck and debug this, please do :) |
Very good point. Here's the output of
Thank you for your effort. Silly question: Is it possible to use |
Oh so it's Apple driver after all. Can you please try installing official
FTDI driver and doing another test?
…On Thu, Oct 12, 2017, 15:32 Patrik Mayer ***@***.***> wrote:
Very good point. Here's the output of kextstat:
197 0 0xffffff7f88664000 0x3000 0x3000 com.apple.driver.AppleUSBFTDI (6.0.0) 4AB9F7CD-9185-32E6-8471-053EB5E81C35 <196 99 18 5 4 3 1>
Thank you for your effort.
Sadly I'm not a python person so helping out is difficult on my side.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3711 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJceswYN9TQfhTvFQa5JCqvKOQAlM3Tks5srmlGgaJpZM4P2NXN>
.
|
Sure, will do. Could you point me to the right one? http://www.ftdichip.com/FTDrivers.htm I have an FT232RL on my FTDI Adaptor. |
http://www.ftdichip.com/Drivers/VCP.htm
Pick the one for your OS.
…On Thu, Oct 12, 2017, 15:55 Patrik Mayer ***@***.***> wrote:
Sure, will do. Could you point me to the right one?
http://www.ftdichip.com/FTDrivers.htm
I have an FT232RL on my FTDI Adaptor.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3711 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJcejZFxMSJS-ecPJ8SWAXcdFKIFGQhks5srm6ugaJpZM4P2NXN>
.
|
Hmmm. I've installed the VCP driver 2.4.2 for "Mac OS X 10.9 and above" and did a reboot, but according to As expected it still does not work. |
That's odd, FTDI driver is supposed to have precedence over Apple's. Have you restarted the computer after installing the driver? |
I've rebootet, yes. Also tried to I understand that this could be a driver issue, but - as said - using |
I've also tried to rename the original driver in |
Thanks for all the attempts. I don't think that this really is a driver
issue, just esptool-ck is not robust enough with regards to timeouts, and
some change in driver behavior probably causes it to fail.
Weird that FTDI driver does not want to load though. Maybe they also need
to update the driver for 10.13...
…On Thu, Oct 12, 2017, 17:03 Patrik Mayer ***@***.***> wrote:
I've also tried to rename the original driver in
/System/Library/Extensions/AppleUSBFTDI.kext/Contents/MacOS as suggested
vor OSX10.12- but I'm not allowed tomv` the file, even as root.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3711 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJcehosi04KTFnbMJoKMzS85e-P8N70ks5srn6XgaJpZM4P2NXN>
.
|
That's what I've though cause of the new kext regulations in 10.13. Thank you for you help and the attempts to solve this. Glad to test something anytime. |
Oh, and regarding
These are two completely different applications. Sadly their original authors went for the most generic name possible (esptool), so we add .py and -ck to disambiguate. Replacing one with another is not fully straightforward — as you have noticed arguments are different, so the configuration files (boards.txt and platform.txt) need to be adapted to produce the right options for esptool.py. This can certainly be done, for example the ESP32 arduino core is using esptool.py. But as they say in textbooks, this exercise is left to the reader. |
Thank you, more things make sense now ;-) So, is there anything one can do about the problem? |
Try replacing the final argument with some large timeout, e.g. 5000 (milliseconds) here: Then compile the application (run 'make') and copy/overwrite the esptool you had (hardware/esp8266com/esp8266/tools/esptool/esptool). |
I will test this and maybe I should raise an issue over at https://github.com/igrr/esptool-ck/. Thank you! I will get back if I have something new. |
Confirming on clean High Sierra esp8266 couldn't be flashed.
Still not working?
|
FWIW I have just tried with Apple's built-in FTDI driver on 10.12, and
result is the same as described in this thread. So the issue is Apple's
FTDI driver versus official FTDI driver, rather than 10.13 versus 10.12.
…On Sun, Oct 15, 2017 at 3:16 AM, AndreyzZz ***@***.***> wrote:
Confirming on clean High Sierra esp8266 couldn't be flashed.
Resolved by:
1. Disconnect all USB FTDIs;
2. Install FTDI VCP 2.4.2 (After successful installation go to System
Preferences -> Security & Privacy and allow FTDI extension to load);
3. Reboot, check one more time for Security & Privacy;
4. Connect FTDI;
5. run in terminal kextstat | grep FTDI
The output should be like:
163 0 0xffffff7f8353b000 0x7000 0x7000 com.FTDI.driver.FTDIUSBSerialDriver (2.4.2) E16D9540-AF63-36AD-94C4-B1164FBD6078 <112 52 5 4 3 1>
1. If the apple FTDI is still being loaded then try installing
D2XXHelper.
Still not working?
Remove everything, reboot and try again:
rm -r /Library/Extensions/FTDIUSBSerialDriver.kext
rm -r /Library/Extensions/D2XXHelper.kext
sudo rm -r /Library/Extensions/FTDIUSBSerialDriver.kext/
sudo rm -r /Library/Extensions/D2XXHelper.kext/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3711 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEJcej18YiPMu2Fm50t3VC6wzm4yAUxBks5ssQifgaJpZM4P2NXN>
.
|
By the way, just tested my own proposal about increasing timeouts (#3711 (comment)) and it indeed allows uploading with Apple's FTDI driver. Tested on 10.12 only but I assume that on 10.13 the story is the same. |
Helps with writes timing out when Apple's FTDI driver is used esp8266/Arduino#3711
Prepared a new release of esptool-ck, which should fix this issue. Please give it a try: |
Can confirm, esptool-ck I've simply exchanged esptool-ck in On Sierra (10.12) everything worked for me with the apple-FTDI-driver an esptool-ck //edit: |
@AndreyzZz can you explain how to allow loading of the installed FTDI driver? Can't find anything under Preferences -> Security. |
@codmpm
And looked into /var/logs/system.log |
I've exchanged I think if you use the boardmanager to install the ESP environment this should be the same version. I'm still using the apple driver that came with High Sierra. |
I have a fresh install of macOS High Sierra and am running into the same error messages. I downloaded and ran esptool-0.4.12-osx.tar.gz and this is what I got back:
I tried running the blinky program and these errors are still coming up:
Arduino 1.8.5
|
I also downloaded and ran FTDIOSBSerialDriver_v2_4_2.dmg, allowed it to run through security, rebooted my device and Im still getting the same errors.
I tried connecting an Arduino Uno and the serial output runs fine. Just having issues with the ESP thing dev. |
Hey @igrr just to confirm; You were able to get arduino to upload code to the esp8266 chip after installing esptool-ck? I used Arduino Board manager to setup the board and downloaded the esptool-ck from the link you posted earlier. |
Could you please enable verbose uploader output (in arduino Preferences window) to verify that you are indeed running esptool 0.4.12? |
High Igrr I'm sorry to waste your time I just enabled a verbose uploader output and to my surprise it worked perfectly. Really not sure what changed, I just slept on it. |
@d-a-v yes, solved as mentioned in #3711 (comment) Thank you all! |
@d-a-v solved for me! Thank you. |
My esptool was in /Users//Library/Arduino15/packages/esp8266/tools/esptool/0.4.9 and replacing the binary with the one in https://github.com/igrr/esptool-ck/releases/download/0.4.12/esptool-0.4.12-osx.tar.gz fixed my high sierra issues. Thanks! In case anyone is googling, this was the error I was getting: |
I had the same issue (errors below), on Mac High Sierra, and installing the FTDI driver as per igrr solved the problem: http://www.ftdichip.com/Drivers/VCP.htm
|
It worked for me !! thanks a lot. |
Download the driver here and install on your Mac. I'm using a 2017 MacBook Pro and after installing I restarted the computer and once restarted I opened the Arduino IDE and went to ports and selected the UART port for the ESP8266. If you don't see the port available in the list then go to your terminal and type
If you don't see this in our terminal then try switching cables. I found that only one of my cables that worked in my MacBook Pro works for me and the esp8266 to get the above print out. When you do see the above print out then go back to your Arduino IDE and look under ports and you should see the |
Have someone tried installing the FTDI driver on macOS Catalina? It says it isn't compatible with the current version of macOS. Is there any workaround? |
Hi guys,
I have a problem uploading code via the Arduino IDE with my normal ESP8266 (ESP-12F, https://github.com/codmpm/esp8266-proto-board) board together with an FTDI adaptor on OSX High Sierra.
Arduino IDE is 1.8.5, as the older versions don't show items in the menu bar. I'm using ESP8266-Arduono-Core, current master from github.
I can use
esptool.py 2.0.1
without any problem to upload binaries. But if I use the Arduino IDE (didpython get.py
again) I got the following error:("Beim Hochladen des Sketches ist ein Fehler aufgetreten" means "An error occured while uploading the sketch")
I try to upload the standard blink example with the - to me - common settings:
I've also tried the nightly of the arduino IDE but get the same result. Also tripple checked my wiring, but as the upload via
esptool.py
works without any flaws I think I'm fine with that.Python Version is 2.7.10...
Any help or ideas are apreciated.
Thank you!
The text was updated successfully, but these errors were encountered: