Post topics, source code that relate to the Arduino Platform

User avatar
By panos
#54284 Just like a lot of other in this forum, I'm also getting the following when I'm trying to upload the Blink sketch from the Arduino IDE.

Code: Select allwarning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed


I have read a lot of other relevant posts and tried everything they suggest but no luck...

- I have used 4 different USB-to-serial converters (including the Arduino board), but all of them give the same error

- I checked the pin connections and everything seems to be correct. I'm connecting GPIO0 to GND before I upload and I also connected RST to GND (pulse) before upload. CH_PD, VCC, GPIO2 are connected to 3.3V.

- when the module isn't in "upload mode" (i.e. GPIO connected to 3.3V) then I can connect to it perfectly using a serial monitor, issue AT commands and get a response.

- I have tried a bunch of different IDE versions, from 1.6.5 to the latest 1.6.11.

- I downloaded and ran the esptool (1.2-dev) and when I try to read the flash ID with this command

Code: Select all./esptool.py --baud 115200 --port /dev/ttyUSB0 flash_id


I get the error "A fatal error occurred: Failed to connect to ESP8266"

Any ideas? I would say that the I/O of the chip is burnt but since I can issue AT commands, for example, I don't think that's the problem. I must be missing something pretty stupid!

Thanks!

PS: I'm using the ESP-01 chip that is black and has the "Ai cloud inside" printed on it. Also I'm using Debian Linux 8.5.
User avatar
By panos
#54466 Hello again guys,

If any of you have used the chip I'm using (ESP01) can you please post the configuration you're using the Arduino IDE? I'm using:

Generic ESP8266 module, 80 MHz, 40 MHz, DIO, 115200, 1M (64K SPIFFS), ck, Disabled, None.

Of course, I've changed some of these settings but maybe I haven't tried the right combination yet!

Thanks
User avatar
By panos
#54560 One more thing that just occurred to me!

Do I have to install a new firmware in order to upload the Blink program?

Currently, when I give AT+GMR I get the following output:

Code: Select allAT version:0.40.0.0(Aug  8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04


Thanks!
User avatar
By panos
#54972 After reading and experimenting a lot, I discovered that the problem was that I soldered the GPIO0 and GPIO2 pins together, when making the breadboard-friendly breakout! As soon as I de-soldered the connection, it worked perfectly!