Adafruit is open and shipping! Let's build back better, together!
0

Programming ESP8266
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Programming ESP8266

by dtw on Sun May 10, 2015 12:25 pm

I am having trouble programming my new HUZZAH ESP8266 breakout boards (product id: 2471). I bought two - and I have attempted to send Arduino code to one of them. It fails for various reasons. Most often I get 'warning: espcomm_sync failed error: espcomm_open failed' and 'espcomm_open failed "http://downloads.arduino.cc/packages/package_index.json file signature verification failed. File ignored.'

I have a Mac and I downloaded the latest Arduino IDE - 1.6.4. I used the "Tools/Board Manager" to load the latest Adafruit ESP8266 board (version 1.6.2.) which includes Generic ESP8266 and Adafruit HUZZAH ESP8266 boards.

I am using the Adafruit "USB to TTL Serial Cable - Debug / Console Cable" - which works with the ESP8266 running LUA. On my Mac the serial port is identified as "tty.usbserial".

In the Arduino IDE I select the board as "Adafruit HUZZAH ESP8266" and the port as "tty.usbserial". Prior to updating to version 1.6.2 of the Adafruit board manager, I also selected the "Tools/Programer" menu to select a special programmer. That option went away when I updated to version 1.6.2, so I do not select anything in that option.

On the ESP8266 board I have put it into program mode, pressing the GPIO0 button while also pressing Reset. The board now has the red led lighted as a dim glow. That does not change when the board is powered down and restarted. In fact, the board seems to be only in that mode. If I press the Reset button only the blue LED flashes.

I have restarted the computer, the IDE and the HUZZAH board, and I have made sure there are no other programs attempting to use the tty.usbserial port.

For the Adafruit "USB to TTL Serial Cable - Debug / Console Cable(product id: 954), in the Mac SYSTEM INFORMATION program, the usb port shows the following info:
Product ID: 0x2303
Vendor ID: 0x067b (Prolific Technology, Inc.)
Version: 3.00
Speed: Up to 12 Mb/sec
Manufacturer: Prolific Technology Inc.
---------------
I am hoping someone can give me suggestions on how to get this working. I am curious if anyone has gotten the HUZZAH board working with Arduino IDE on a Mac, So far every effort has failed.
Thanks,
David

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by adafruit_support_rick on Mon May 11, 2015 9:42 am

Please post pictures showing your soldering

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Programming ESP8266

by adafruit2 on Mon May 11, 2015 11:08 am

yah this is unusual, it suggests theres something amiss with the console cable connection. can you follow the nodemcu tutorial (connect to and communicate with Lua)?

adafruit2
Site Admin
 
Posts: 19494
Joined: Fri Mar 11, 2005 7:36 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 12:11 pm

Photo2.jpg
Photo2.jpg (429.58 KiB) Viewed 1991 times

Photo1.jpg
Photo1.jpg (256.65 KiB) Viewed 1991 times

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by adafruit2 on Mon May 11, 2015 12:28 pm

looks good, can you follow the nodemcu tutorial (connect to and communicate with Lua)?

adafruit2
Site Admin
 
Posts: 19494
Joined: Fri Mar 11, 2005 7:36 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 12:37 pm

I am unsure. Now that I have attempted to load Arduino code into the ESP8266, how do I reset the breadboard so it works as nodemcu? Right now, when I plug the ESP8266 into the USB serial connections - the onboard red LED comes on but dim. If I press RESET the LED goes off, but when I let go, it goes back to dim. If I press GPIO0 the LED comes on bright for as long as I hold the button.

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 12:39 pm

That should have said " how do I reset the breakout board"

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by adafruit2 on Mon May 11, 2015 12:40 pm

sounds like nodemcu firmware got deleted...
OK hold down GPIO0, then click the reset button, then release GPIO0
Then try re-programming via the Arduino IDE, post up the error messages you get. dont forget to select the correct USB port :)

adafruit2
Site Admin
 
Posts: 19494
Joined: Fri Mar 11, 2005 7:36 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 12:48 pm

Held down GPIO0, click the reset button, then release GPIO0.

After resetting the breakout - the red LED still glows dimly.

Attempted to upload the basic Blink sketch. Message displayed:

Sketch uses 191,616 bytes (36%) of program storage space. Maximum is 524,288 bytes.
warning: espcomm_sync failed
error: espcomm_open failed

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 1:00 pm

I am using an upload speed of 9600. Is that OK?

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by adafruit2 on Mon May 11, 2015 1:33 pm

upload speed should be 115200
can you post a screenshot of your board menu setup?

adafruit2
Site Admin
 
Posts: 19494
Joined: Fri Mar 11, 2005 7:36 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 1:49 pm

ScreenShot.jpg
ScreenShot.jpg (56.96 KiB) Viewed 1974 times

At 115200 I got the following messages when I tried to upload the sketch:
==============================
Sketch uses 211,244 bytes (40%) of program storage space. Maximum is 524,288 bytes.
Uploading 36528 bytes from /var/folders/0r/fg_v_h5160j8zqp8t_kjt0yh0000gn/T/build496421989369284756.tmp/HelloServer.cpp_00000.bin to flash at 0x00000000
error: failed reading byte
warning: espcomm_cmd: cant receive slip payload data
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 1:51 pm

I got the previous error message was when I was trying to load a bigger sketch - the demo HelloServer sketch.

When I tried to load Blink I got:
======================
Sketch uses 191,616 bytes (36%) of program storage space. Maximum is 524,288 bytes.
warning: espcomm_sync failed
error: espcomm_open failed

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Re: Programming ESP8266

by adafruit2 on Mon May 11, 2015 2:03 pm

ok closer! that port selection is weird, can you show the submenu?

adafruit2
Site Admin
 
Posts: 19494
Joined: Fri Mar 11, 2005 7:36 pm

Re: Programming ESP8266

by dtw on Mon May 11, 2015 2:23 pm

Screenshot2.png
Screenshot2.png (90.63 KiB) Viewed 1952 times

dtw
 
Posts: 23
Joined: Thu Mar 21, 2013 3:11 pm

Please be positive and constructive with your questions and comments.