-->
Page 1 of 2

Olimex MOD_WIFI_ESP8266_DEV + Arduino-1.6.1? Upload error

PostPosted: Mon Apr 27, 2015 4:47 am
by Kaef
Hi,
I have a olimex MOD_WIFI_ESP8266_DEV module and use the linux arduino-1.6.1 software.
Over serial line I can communicate with the module (sending AT commands seems to work),
but uploading Software from the arduino-ide results in the error listed below.
I pulled down GPIO 0 and reset the board before trying to upload.
Any sugestions what went wrong?

Thanks in advice,
Kaef

Message from arduino-ide (upload):
/homes/common/arduino-1.6.1-esp8266/hardware/tools/esp8266/esptool -vv -cd none -cb 115200 -cp /dev/ttyUSB0 -ca 0x00000 -cf /tmp/build7992458142271150946.tmp/HelloServer.cpp_00000.bin -ca 0x40000 -cf /tmp/build7992458142271150946.tmp/HelloServer.cpp_40000.bin
esptool v0.4.2 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to none
setting baudrate from 115200 to 115200
setting port from /dev/ttyUSB0 to /dev/ttyUSB0
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat /tmp/build7992458142271150946.tmp/HelloServer.cpp_00000.bin success
opening port /dev/ttyUSB0 at 115200
tcgetattr
tcsetattr
serial open
opening bootloader
resetting board
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
resetting board
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
serialport_receive_C0: E0 instead of C0
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
resetting board
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
serialport_receive_C0: E0 instead of C0
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_cmd: sending command header
espcomm_cmd: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed

Re: Olimex MOD_WIFI_ESP8266_DEV + Arduino-1.6.1? Upload err

PostPosted: Mon Apr 27, 2015 5:39 am
by GerryKeely
Hi this link may be of some use to you.I had a similar problem with an Olimex board and switched over to using the Python version of the programming tool esptool which works great.

https://github.com/esp8266/Arduino/issues/95


Gerry

Re: Olimex MOD_WIFI_ESP8266_DEV + Arduino-1.6.1? Upload err

PostPosted: Mon Apr 27, 2015 7:35 am
by Kaef
Hi, thank you for your tip, but it doesn't work for me:

# ./esptool.py --port /dev/ttyUSB0 --baud 76800 erase_flash
...
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py" line 47, in set_special_baudrate
FCNTL.ioctl(port.fd, TERMIOS.TIOCGSERIAL, buf)
IOError: [Errno 25] Inappropriate ioctl for device

However, I found that reducing the power voltage to 3.0 V instead of 3.3V makes flashing succeed.
I flashed 2 boards a few times with success using 3.0V -- very strange.

Suggestions?

Regards,
Kaef

Re: Olimex MOD_WIFI_ESP8266_DEV + Arduino-1.6.1? Upload err

PostPosted: Mon Apr 27, 2015 8:23 am
by uhrheber
The output level of your USB to serial converter is too low.
By lowering the supply voltage of the ESP, you also lower its input threshold, therefore the too low signal level is detected correctly.
Try another converter.