- Thu May 07, 2015 7:47 pm
#16849
I had the same problem, seems to be common on OSX. I found this thread which had a fix:
https://github.com/esp8266/Arduino/issues/3Relevant details (credit to :
https://github.com/sticilface)
esptool isn't working, however esptool.py does. Therefore we need to setup another programmer option called pyesptool.
1) Download contents of
https://github.com/themadinventor/esptool.git to {Arduino.app}/Contents/Java/hardware/tools/esp8266/pyesptool/
2) Add to bottom of platforms.txt
Code: Select alltools.pyesptool.cmd=esptool.py
tools.pyesptool.cmd.windows=esptool.exe
tools.pyesptool.path={runtime.ide.path}/hardware/tools/esp8266/pyesptool
tools.pyesptool.program.params.verbose=""
tools.pyesptool.program.params.quiet=""
tools.pyesptool.program.pattern=python "{path}/{cmd}" {program.verbose} --port {serial.port} write_flash 0x00000 "{build.path}/{build.project_name}_00000.bin" 0x40000 "{build.path}/{build.project_name}_40000.bin"
3) Add to bottom of programmers.txt
Code: Select allpyesptool.name=pyesptool
pyesptool.communication=serial
pyesptool.protocol=esp
pyesptool.program.protocol=esp
pyesptool.program.tool=pyesptool
pyesptool.program.extra_params=
4) I had problems with this using the default version of Python instead of the homebrew version I have installed. This caused the library to die reporting that it couldn't import serial. To fix this I modfiied the platforms.txt program.pattern to point to /usr/local/lib/python instead of using python. I wish that this respected the order of paths in the /etc/paths file.
Hopefully this will make it into the mainline project before too long.