Huzzah not uploading

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Huzzah not uploading

Post by cbrucewarren »

I have both versions of Huzzah (one with reset buttons and other with microUSB).
I used microUSB to develop and deployed system using the other. All worked fine.

I am now trying to modify the deployed program and I cannot get either Huzzah to upload.
I am used IDE 1.6.5 on both a MAC and a Windows 10-Surface Pro. ( again both worked originally).

I am sure this is "operator error" but I am running out of options/combo's to try....and yes I am getting the dim LED on the non-microUSB board.

1) i've used both the Generic board and the Adafruit Huzzah board choices
2) with each, I've tried each available upload speed
3) am using 'nodemcu reset method

I get same errors each time:

espcomm_open failed
espcomm_upload mem failed
espcomm_sync failed.


Any suggestions before I go completely nuts?!!?

User avatar
adafruit_support_mike
 
Posts: 65547
Joined: Thu Feb 11, 2010 2:51 pm

Re: Huzzah not uploading

Post by adafruit_support_mike »

The first thing is always to verify your USB cable by using it to connect a known-working USB device to the computer. We see people get caught by charge-only cables several times a day.

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

I have tried 2 cables for the board with the mini-usb; also the program that was uploaded previously is still working and I am getting output on the serial monitor.

I also tried to upload with the cable disconnected and I get different error messages ( i.e. UART related errrors).

User avatar
adafruit_support_mike
 
Posts: 65547
Joined: Thu Feb 11, 2010 2:51 pm

Re: Huzzah not uploading

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

Here are the 2 boards; i've tested each on my MAC desktop and my windows Surface.
The only difference is that with the Windows machine I only get the error message "espcomm_upload_mem failed"

Again, i've tried the generic ESP, the Huzzah and the ESP-12E[which worked previously on each board and on each platform ( MAC and Surface).

I was successful in modifying the code on the ESPthat uses the FTDI cable 3 weeks ago; nothing has changed and now I have problem.

For background, the ESP module on the perf board has been deployed on a bee hive sending data for over 2 months; however to extend battery life I wanted to modify the 'sleep' time between data transmissions and that is when I hit this road block.

Any suggestions will be appreciated.

Thanks in advance,
Attachments
this is communicating via serial cable to serial monitor on IDE
this is communicating via serial cable to serial monitor on IDE
IMG_2423.jpg (530.83 KiB) Viewed 1764 times
cannot confirm serial comm since program is not using serial comm and I can't upload new one!
cannot confirm serial comm since program is not using serial comm and I can't upload new one!
IMG_2424.jpg (525.22 KiB) Viewed 1764 times

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

Followup if it helps to shed any light:

Now I am getting this error when I first try to upload, after first connecting to the module, then afterwards, I get the usual sequence of:

error: espcomm_open faild
error: espcomm_upload_mem failed
error: espcom_synch failed.
Attachments
esp_error.tiff
esp_error.tiff (103.86 KiB) Viewed 1747 times

User avatar
adafruit_support_mike
 
Posts: 65547
Joined: Thu Feb 11, 2010 2:51 pm

Re: Huzzah not uploading

Post by adafruit_support_mike »

Try using version 1.6.9 of the Arduino IDE and the latest board support packages.

There's been a lot of development in the IDE and the base libraries lately, which has led to several version compatibility issues in all parts of the compilation and upload chain.

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

Updated IDE but same error. I went to verbose to get more detail, resulting in the following:
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to nodemcu
setting baudrate from 115200 to 115200
setting port from /dev/tty.usbserial to /dev/cu.usbserial-AH03B45Z
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
opening port /dev/cu.usbserial-AH03B45Z at 115200
tcgetattr
tcsetattr
serial open
opening bootloader
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
resetting board
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
Invalid library found in /Users/brucewarren/Arduino/My Sketches/libraries/fat16lib20111205: /Users/brucewarren/Arduino/My Sketches/libraries/fat16lib20111205
Invalid library found in /Users/brucewarren/Arduino/My Sketches/libraries/Linino: /Users/brucewarren/Arduino/My Sketches/libraries/Linino


ASIDE: The invalid library messages are new!

NEW: I also tried to install and use esptool.py but that didn't work either; got error on useage of esptool.py so I assume there is problem with the esptool.py and I want to tackle on 'rabbit hole' at a time!

The Esp board manager is version 2.3.0

Any thoughts will be appreciated.

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

attached is error report with IDE version 1.6.10.

Seems to be a link established but a problem with board??
Attachments
espUpload_error.tiff
espUpload_error.tiff (523.56 KiB) Viewed 1710 times

User avatar
JohnCrandall
 
Posts: 1
Joined: Sat Jul 30, 2016 1:47 am

Re: Huzzah not uploading

Post by JohnCrandall »

The fix offered by adafruit_support_mike did the trick

"Try using version 1.6.9 of the Arduino IDE and the latest board support packages."


With two computers, I only had this issue with one of them, but now it is fixed, Thanks, Mike.

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

I just want to ensure that John Crandall's success does not mean this post is closed;
Summary of my issues, noted in preceding posts

1) I have tried 1.6.5, 1.6.9, 1.6.10 on MAC[with updated board files] with errors as noted
2) I have tried 1.6.5, 1.6.9, 1.6.10 on MAC[with updated board files] on Windows Surface with no success.
3) This is happening with 2 versions of the Huzzah ESP: the one using FTDI cable and the one using miniUSB
4) Both ESP modules worked and I was able to upload programs to them about 4 weeks ago (use IDE version 1.6.5). Project was deployed. It was only now when I was trying to modify the code that I ran into this upload problem
5) The error I get with 1.6.10 on Windows is slightly different:

An error occurred while uploading the sketch
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN)failed
error: espcomm_upload_mem failed



I have run out of ideas and combo's to try; look forward to any suggestions.

Regards

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

I have been away ( on a boat) for a bit and am surprised to see that there is no response to this. Do I just give up on this device??

User avatar
adafruit_support_mike
 
Posts: 65547
Joined: Thu Feb 11, 2010 2:51 pm

Re: Huzzah not uploading

Post by adafruit_support_mike »

Sorry, this one dropped off the bottom of the page.

Try connecting a 220 ohm resistor between the GPIO-0 pin and GND. Some people have found that the pin needs a pull-down to enter bootloader mode properly.

Make sure you're using the most recent version of the ESP8266 board support package in the Boards Manager, and post a screenshot showing the settings you're using in the Tools menu if the problem continues.

User avatar
donde
 
Posts: 192
Joined: Wed May 25, 2011 1:52 am

Re: Huzzah not uploading

Post by donde »

Did you every get it to work? I have a similar problem and posted trouble on the 11/05.
I'm using IDE 1.6.4 and following the HUAAAH Learn for ESP8266 to Blink. Can't fully upload. I get:
Got this error message:
Uploading 226368 bytes from C:\Users\DONDE_~1\AppData\Local\Temp\build7650682408826232863.tmp/sketch_nov05a.cpp.bin to flash at 0x00000000
................................................................................ [ 36% ]
................................................................................ [ 72% ]
.............................................................. [ 100% ]
warning: espcomm_send_command: didn't receive command response


Compile works fine.

User avatar
cbrucewarren
 
Posts: 77
Joined: Sun Mar 09, 2014 1:57 pm

Re: Huzzah not uploading

Post by cbrucewarren »

Problem Solved:: OPERATOR ERROR!
I had my boards wired to use 'deep sleep' mode [ i.e. pin RST connected to GPIO-16. However, this will prevent uploading so I needed to disconnect this to allow uploading.

Thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”