-->
Page 1 of 2

Problem with flashing esp8266

PostPosted: Mon Jan 02, 2017 12:54 pm
by PeppePegasus
Hi guys I'm new on esp8266. I bought this Arduino shield:

http://www.banggood.com/ESP8266-Web-Ser ... ds=myorder

and I'm trying to use this as a web server: I need to send temperature and humidity acquired from a DHT22 sensor to my website.
I found some sketch but they doesn't work: adapting this tutorial

https://www.hackster.io/vsaravind007/es ... b#comments

I have the errors:

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed

loading a simple esp8266 example sketch (I installed the libraries for this shield in Arduino IDE) I have the same errors.
Reading some tutorial it seems is a firmware problem. So I try with this tutorial:

https://learn.adafruit.com/micropython- ... l?view=all

but I receive the error:

A fatal error occurred: Failed to connect to ESP8266

Can someone help me to solve this problem?
Thanks.
Giuseppe.

Re: Problem with flashing esp8266

PostPosted: Tue Jan 03, 2017 11:38 am
by vijay555
Hi! Have you tried firing up Putty or a terminal program to see if it's generating any output?

I have the same problem if anyone can help - I uploaded this code:
http://ruralhacker.blogspot.co.uk/2016/ ... mming.html

I've added some debugging output so my NodeMCU is running - I can see it running my code and creating the debug output.

However - now I can't reprogram it! Arduino is giving me the same errors as below, and the NodeMCU flasher can't get a MAC address. The code starts running almost immediately after I connect power, so I imaging it's somehow blocking the ability to get a MAC.

Is there any way to override the code or force a rewrite of the firmware?

I've got a COM port, and I've got serial output, but I can't seem to write anything, do any AT commands, or interact with the firmware.

Help?

Thank you.

V

Re: Problem with flashing esp8266

PostPosted: Tue Jan 03, 2017 1:18 pm
by mrburnette
Newbies sometimes get caught-up on purchasing products that few in the forum have and therefore trying to help in a step-by-step basis is simply not workable.

I am very pleased with the NodeMCU V3 units, about $4 from various AliExpress.com dealers. The Adafruit Huzzah appears to be a similar unit. The nice thing about Adafruit is they have their own support department and forum and know their products well; but, you pay for it in the 2x price hike.

loading a simple esp8266 example sketch (I installed the libraries for this shield in Arduino IDE) I have the same errors.
Reading some tutorial it seems is a firmware problem.


If you are using the ArduinoIDE and the igrr core files from here: (use the "staging" version) then when you select your ESP8266 and upload your compiled sketch, the firmware is overwritten. So, generally speaking, when using the ArduinoIDE + ESP8266 core, firmware is never a problem as it is uploaded with every sketch.

Try something really simple, like blinking a LED.


Ray
My Projects

Re: Problem with flashing esp8266

PostPosted: Tue Jan 03, 2017 2:08 pm
by PeppePegasus
Hi Ray,

thank for your reply..when the library cited from you I have the errors mentionedd (warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed) It is not naturally as you said.
Reading on the web using ESPlorer I am able to conncet to my shield but I receive the message:
PORT OPEN 9600

Communication with MCU..Got answer! Communication with MCU established.
AutoDetect firmware...

Can't autodetect firmware, because proper answer not received (may be unknown firmware).
Please, reset module or continue.

I am very confused....
G