Chat freely about anything...

User avatar
By atrus
#16754 I've been trying to upload an example sketch, and I've been coming across some interesting errors, sadly they don't even pop up on Google...

Code: Select allerror: unslip sequence wrong
warning: espcomm_cmd: cant receive slip payload data
warning: espcomm_sync failed
error: espcomm_open failed


and occasionally

Code: Select all.
error: failed reading byte
warning: espcomm_cmd: cant receive slip payload data
error: failed reading byte
warning: espcomm_cmd: cant receive slip payload data
warning: espcomm_sync failed
error: espcomm_open failed


Any thoughts on what's going wrong?

Right now I have
CH_PD - High
GPIO2 - High
GPIO15 - Low
GPIO0 - Low

with all other pins floating (excecpt VCC and GND of course)
User avatar
By ajrkerr
#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/3

Relevant 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.
User avatar
By tareumlaneuchie
#16933 I ran into the same problems...

Just add my 0,02ç:

1) platform.txt / programmers.txt live in [Arduino.app]/Contents/Java/hardware/esp8266com/esp8266

2) I also encountered the 'import serial error'. This was resolved by doing: "sudo pip install pyserial" (using python 2.7.x) as I only had one version of python installed. I troubleshooted the error by launching the python interpreter and issuing 'import serial'.

Thank you for your help!