warning: espcomm_sync failed

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

warning: espcomm_sync failed

#1 Post by Dylantje » 30 Dec 2015, 10:30

Dear All,

I get stuck with uploading my sketch .
Everything seems to be going well, but then comes the error:
warning: failed espcomm_sync
And after that:
error: failed espcomm_open

I tryed at various board attempted. Also google, but really did not come out.

Arduino 1.6.5
Espeasy 48
flash and hold , and reset oppressive.

So help me please

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: warning: espcomm_sync failed

#2 Post by kr0815 » 30 Dec 2015, 12:59

What Kind of esp8266 is it ?

Although they are in my understanding all the same, some Need additional resistors

Most important thing is, GPIO00 has to be connected to ground, then reset it ( you may also do a power off-power on)

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: warning: espcomm_sync failed

#3 Post by Dylantje » 30 Dec 2015, 13:35

I tryed servel things ...
ScreenShot017.jpg
ScreenShot017.jpg (64.47 KiB) Viewed 12012 times
And use the buttons on the board, when avalible.


Board 1:
http://www.ebay.com/itm/ESP8266-Serial- ... SwAodWFUv7

And this board:
http://nl.aliexpress.com/item/ESP8266-s ... wVersion=2

And:
http://www.ebay.com/itm/NodeMcu-Lua-CH3 ... SwFnFV~9D6


All the same error!!

I use a powered usb hub..

The GPO00 always groundend when i try to flash?
Or do i need push and let go while the flashing is starting?


This part is for me nut to understand....:
Need additional resistors [ how ? ]

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: warning: espcomm_sync failed

#4 Post by doxikus » 30 Dec 2015, 14:41

Hi, maybe to try flash esp to default firmware and then try again trough arduino to upload ESP easy sketch.

Try with this http://www.xess.com/blog/esp8266-reflash/

Few times I have problem with flashing my esp so I have reflash to default and then start over again

Also double check wiring.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: warning: espcomm_sync failed

#5 Post by Dylantje » 30 Dec 2015, 14:46

when i have time i going to try it....
Is there no xxx.bin for Espeasy"?

Thanks!

mkotek
Normal user
Posts: 116
Joined: 15 Dec 2015, 10:58
Location: Lomianki, Poland
Contact:

Re: warning: espcomm_sync failed

#6 Post by mkotek » 30 Dec 2015, 15:51

Dylantje wrote:when i have time i going to try it....
Is there no xxx.bin for Espeasy"?

Thanks!
When you try to upload sketch from Arduino IDE, in the black status window at the bottom, you will see status messages. One of them will contain the path to .bin firmware. Without closing Arduino IDE, you may copy the path (in temp folder) and upload this firmware using different flasher.
I have done it a couple of times and it works. After you close the Arduino IDE, the folder and it's content will be deleted.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: warning: espcomm_sync failed

#7 Post by BertB » 30 Dec 2015, 16:35

Your wiring seems to be ok, but when you want to flaf the firmware, GPIO-0 must be connected to ground and then the reset port must be pulsed to ground as well. When programming is in progress, you can release GPIO-0.

NodeMcu can be connected with an USB port, without using the FTDI board.

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: warning: espcomm_sync failed

#8 Post by kr0815 » 30 Dec 2015, 17:27

As Bert sayd, GPIO0 is not connected in your set-up

At least my experience with 8266-12, you don´t need to do resets or such things

- connect GPIO0 to ground
- unpower/repower the ESP
- flash the esp
- remove the Connection between GPIO= and Ground
- Repower the device

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: warning: espcomm_sync failed

#9 Post by Dylantje » 30 Dec 2015, 18:17

remove the Connection between GPIO= and Ground
Where do i find this?
And when should i do this?

I try it this evening/night...

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: warning: espcomm_sync failed

#10 Post by BertB » 30 Dec 2015, 20:38

kr0815 wrote:As Bert sayd, GPIO0 is not connected in your set-up

At least my experience with 8266-12, you don´t need to do resets or such things

- connect GPIO0 to ground
- unpower/repower the ESP
- flash the esp
- remove the Connection between GPIO= and Ground
- Repower the device
Unpower the ESP has the same effect as resetting it ;)

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: warning: espcomm_sync failed

#11 Post by ManS-H » 30 Dec 2015, 21:34

I have the same problem as Dylantje, tried all the solutions that was given on the internet, but till now no succes. What is the best solution to check if my ESP-01 is working? It's on the moment powered with a external powersupply for the 3.3V and i use a Arduino Mega for communication. In the line TX_Arduino and RX_ESP-01 i have a voltage divider, Vin= 5V, R1=220E, R2=2x220E, Vout=3.33V From TX_ESP-01 to RX_Arduino i don't use a power divider. My question, what do i wrong or what is the solution.

Regards, Herman

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: warning: espcomm_sync failed

#12 Post by costo » 30 Dec 2015, 22:41

People who have problems with flashing the ESP should not use a bare ESP board like the ESP01
For everyone having difficulties reading schematics it is so much easyer to buy the NodeMCU board. That works without making any connections between ground or Vcc and some difficult to choose pin(s). There is even no need to push a switch, it just can be automatically flashed from within the Arduino IDE by clicking the upload button.

Connection between PC and the NodeMCU board is usually a USB cable with a micro-USB connector on one end.
The price is just a little more that a bare ESP but it saves you a lot of frustrations and time.

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: warning: espcomm_sync failed

#13 Post by Dylantje » 30 Dec 2015, 22:53

mmm

No glorie yet.......

With what hardware do you guys flash the Esp?
I use the http://nl.aliexpress.com/store/product/ ... eId=604119 and you?
I have more types, only what is the best?

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: warning: espcomm_sync failed

#14 Post by costo » 30 Dec 2015, 23:18

I have several different USB serial interfaces they all work the same. CrossConnect RX and TX. Connect ground and 3.3V.
How to flash, connect may be different for the different versions of ESP boards.

Did you connect the CH_PD also called Chip_Enable to Vcc ?

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: warning: espcomm_sync failed

#15 Post by Dylantje » 30 Dec 2015, 23:33

Did you connect the CH_PD also called Chip_Enable to Vcc ?
Yes like the picture i post...

Glory....

Only with 1 of my use a bare ESP board
http://www.ebay.com/itm/NodeMcu-Lua-CH3 ... SwFnFV~9D6
Not use the buttons,.... then upload ready....

Only no ESP in my network, and i am for sure that my sid and key are correct...
I do not give up

One step to ..


Only i do not give up, i need the small Esp for my wife her battery candles from Ikea....
That i was promising her to switch with Domoticz....

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: warning: espcomm_sync failed

#16 Post by Dylantje » 31 Dec 2015, 02:18

Update:

Hooray ...

One with the smoke out, so broken I think ... [a little]
http://www.ebay.com/itm/ESP8266-Serial- ... 1981825518

One whose sketch says good uploaded.
http://www.ebay.com/itm/NodeMcu-Lua-CH3 ... SwFnFV~9D6
I see him in my network.
But if I have ip in type I see nothing.
Should a port number ID behind?
Can reach him via Putty?
Tomorrow i try it with the flashbuttons...


But the last ...
http://www.ebay.com/itm/ESP8266-ESP-12- ... SwLqFV7xaI
Visible and works almost well. The Tx and Rx should not be crossed !!!!
Can I read the lux sensor on this board?
Dallas does its job ...
ScreenShot018.jpg
ScreenShot018.jpg (90.75 KiB) Viewed 14074 times
Just how the setting should be a pir. He keeps on and off, while I did not walk along there.

Does this have to pull up? [Cost Pull up me my batteries? ]
Or what can I pull up with?


Go to sleep, tomorrow is another attempt

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: warning: espcomm_sync failed

#17 Post by costo » 31 Dec 2015, 11:56

Dylantje wrote:Update:

Hooray ...

One with the smoke out, so broken I think ... [a little]
bad things happen sometimes.
One whose sketch says good uploaded.
http://www.ebay.com/itm/NodeMcu-Lua-CH3 ... SwFnFV~9D6
I see him in my network.
But if I have ip in type I see nothing.
Should a port number ID behind?
Can reach him via Putty?
Tomorrow i try it with the flashbuttons...
No port number needed, it uses HTTP and works (usually) with any browser.
If you can see the monitorwindow of Arduino IDE maybe you read some clues there about what is going on .
But the last ...
http://www.ebay.com/itm/ESP8266-ESP-12- ... SwLqFV7xaI
Visible and works almost well. The Tx and Rx should not be crossed !!!!
Can I read the lux sensor on this board?
Dallas does its job ...
ScreenShot018.jpg
Just how the setting should be a pir. He keeps on and off, while I did not walk along there.

Does this have to pull up? [Cost Pull up me my batteries? ]
Or what can I pull up with?


Go to sleep, tomorrow is another attempt
This board does not have a lux sensor like a BH1750 or the TLS2561 which are real lux-sensors.
There is a LDR which can be used to measure a varying voltage on the Analog Input (ADC) pin.

Do not use pin GPIO-0 for the PIR, pin 0 is used to get ESP in flashMode when it boots up and is logical low, which can happen with a sensor.
Pull-up does not cost you your batteries , unless you connect a resistance to ground on this pin.

User avatar
ManS-H
Normal user
Posts: 281
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: warning: espcomm_sync failed

#18 Post by ManS-H » 31 Dec 2015, 20:12

Problem with "warning: espcomm_sync failed" is solved after i made a small pcb with the Program and Reset switch.

Image

After programming i press Reset. I tried also other firmware from http://www.xess.com/blog/esp8266-reflash/When i open Putty i can give any command, but when i press the reset switch on my small pcb i see a dump of all registers.

Image

And thats all what i see, what can be the problem?

Post Reply

Who is online

Users browsing this forum: No registered users and 37 guests