My new HUZZAH has me bummed out...

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
Jay_
 
Posts: 5
Joined: Sat Mar 12, 2016 2:38 am

My new HUZZAH has me bummed out...

Post by Jay_ »

I've been trying in vain for a couple days to get my HUZZAH to do something... anything. All I get is errors and now it appears to be stuck in boot loading mode (the GPIO0 LED is always dimly lit now and resetting doesn't turn it off.)

For a USB to serial adapter, I'm using a BUB II from Modern Device. It uses an FTDI FT232RL chip.

Environments tried (Every combination you can make with the following):

OS: Mac OS 10.11.3, Windows 7 (in Parallels)
IDE: Arduino IDE v1.6.7, Arduino v1.6.5
ESP Board package: 2.1.0, 2.0.0, 1.6.5-947-g39819f0
Selected board: Adafruit HUZZAH ESP8266, Generic ESP8266 Module (I'll attach screenshots of specific settings below.)

When I try to upload the Blink program, I can see the Tx LED on the USB-serial adapter light a few times as communication is attempted; however, the Rx LED never lights. Not surprisingly, I receive the following error citing communication failure:

Code: Select all

../Library/Arduino15/packages/esp8266/tools/esptool/0.4.8/esptool -vv -cd nodemcu -cb 115200 -cp /dev/cu.usbserial-A900TSAY -ca 0x00000 -cf /var/folders/jp/s8rdpkx147d7l9pvthg8fb3m0000gn/T/build0a295e7b55a046b8093b6f7072a13e95.tmp/sketch_mar12a.ino.bin 
esptool v0.4.8 - (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-A900TSAY
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
opening port /dev/cu.usbserial-A900TSAY at 115200
	tcgetattr
	tcsetattr
	serial open
opening bootloader
resetting board
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
resetting board
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
resetting board
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	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
The only thing that changes the results, albeit a very minor change... still errors, is holding the GPIO0 button down during programming as recommended in another thread. When I do that, I see the Rx LED light indicating that at least the board is sending some kind of response. The upload still fails though, and I receive the following:

Code: Select all

Sketch uses 219,199 bytes (20%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 31,396 bytes (38%) of dynamic memory, leaving 50,524 bytes for local variables. Maximum is 81,920 bytes.
../Library/Arduino15/packages/esp8266/tools/esptool/0.4.8/esptool -vv -cd nodemcu -cb 115200 -cp /dev/cu.usbserial-A900TSAY -ca 0x00000 -cf /var/folders/jp/s8rdpkx147d7l9pvthg8fb3m0000gn/T/build0a295e7b55a046b8093b6f7072a13e95.tmp/sketch_mar12a.ino.bin 
esptool v0.4.8 - (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-A900TSAY
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
opening port /dev/cu.usbserial-A900TSAY at 115200
	tcgetattr
	tcsetattr
	serial open
opening bootloader
resetting board
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
trying to connect
	setting character timeout 0
	done
	setting character timeout 1
	done
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
	espcomm_send_command: receiving 2 bytes of data
Uploading 223344 bytes from to flash at 0x00000000
	erasing flash
	size: 036870 address: 000000
	first_sector_index: 0
	total_sector_count: 55
	head_sector_count: 16
	adjusted_sector_count: 39
	erase_size: 027000
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	setting timeout 15000
	setting character timeout 150
	done
	setting timeout 1
	setting character timeout 1
	done
	espcomm_send_command: receiving 2 bytes of data
	writing flash
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
closing bootloader
error: espcomm_upload_mem failed
Any help is very much appreciated! I feel like I've tried everything. I'm so bummed... I was so excited when I received my HUZZAH. :0(

Thanks!
Jay
Attachments
board2.png
board2.png (75.97 KiB) Viewed 5437 times
board1.png
board1.png (47.5 KiB) Viewed 5437 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: My new HUZZAH has me bummed out...

Post by adafruit_support_rick »

Post some pictures of your soldering

User avatar
Jay_
 
Posts: 5
Joined: Sat Mar 12, 2016 2:38 am

Re: My new HUZZAH has me bummed out...

Post by Jay_ »

Sorry for the late response; I was out of town. All I've soldered on the board is the header. Here's a pic. There don't appear to be any shorts.
IMG_7791.jpg
IMG_7791.jpg (659.93 KiB) Viewed 5317 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: My new HUZZAH has me bummed out...

Post by adafruit_support_rick »

Weird. Please email support@adafruit.com with a link to this thread for a replacement Huzzah

User avatar
dhalbert
 
Posts: 401
Joined: Tue Feb 17, 2015 6:18 pm

Re: My new HUZZAH has me bummed out...

Post by dhalbert »

Is the BUB II set for 3.3V or 5V power out? If you set it for 3.3V, that's not quite enough to power the HUZZAH reliably. (I'm not talking about the logic outs, which should be set for 3.3V logic.)

User avatar
Jay_
 
Posts: 5
Joined: Sat Mar 12, 2016 2:38 am

Re: My new HUZZAH has me bummed out...

Post by Jay_ »

dhalbert wrote:Is the BUB II set for 3.3V or 5V power out? If you set it for 3.3V, that's not quite enough to power the HUZZAH reliably. (I'm not talking about the logic outs, which should be set for 3.3V logic.)
I have the BUB II set to 5v power and 3.3v logic. But I have no luck.

Thanks for the recommendation though!

Jay

User avatar
Jay_
 
Posts: 5
Joined: Sat Mar 12, 2016 2:38 am

Re: My new HUZZAH has me bummed out...

Post by Jay_ »

I got my new HUZZAH, soldered a header on it, tried uploading the example (blink) sketch and had the same result! :( After a few attempts I tried holding down the GPIO0 button while programming as recommended in another thread (sorry, I can't remember which) and now the LED is on dim always.

Following a suggestion I found in yet another thread, I connected to the board with CoolTerm at 74880 baud. When I press the reset button I see:

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

ets_main.c 
Holding down the GPIO0 button and pressing reset (as to enter it into bootloading mode) returns:

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)

Note the 'boot mode:(1,7)' instead of 'boot mode(3,7)' and lack of 'ets_main.c'.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: My new HUZZAH has me bummed out...

Post by adafruit_support_rick »

There's some systematic error here. Maybe your BUB-II is no good?

User avatar
Jay_
 
Posts: 5
Joined: Sat Mar 12, 2016 2:38 am

Re: My new HUZZAH has me bummed out...

Post by Jay_ »

I can use my BUB II with other serial projects without issue. Additionally, I've successfully loopback tested it. It's strange, it seems that the HUZZAH is simply not responding to the commands.

Do you know anything of the messages the HUZZAH is returning? If it's in boot loading mode, should I be seeing ' ets Jan 8 2013,rst cause:2, boot mode:(1,7)'? Are there any commands I can send in a terminal session to test it?

What version of the nodemcu firmware should be on the HUZZAH? Should I try reburning it? I'd really love to get this working.

Thanks,
Jay

User avatar
adafruit2
 
Posts: 21208
Joined: Fri Mar 11, 2005 7:36 pm

Re: My new HUZZAH has me bummed out...

Post by adafruit2 »

it could be that you already started bootload mode which of course wipes the flash. you can try the nodemcu Lua Flasher to reload lua
https://github.com/nodemcu/nodemcu-flasher
that youve had the same issue with two points to it being something in your setup rather than hardware, it could be the BUB - its a rare adapter and everone else uses a plain FTDI cable

User avatar
missilevania
 
Posts: 1
Joined: Sun Apr 17, 2016 10:42 pm

Re: My new HUZZAH has me bummed out...

Post by missilevania »

I'm not certain if you've already nailed down a solution, but I was experiencing the same issues that you described above. I am not using a BUB II but an Arduino Uno as a serial link. To be able to upload anything to the ESP8266 I needed to pull GPIO #0 to ground (across a resistor) and connect the reset lines together. I'm not familiar with the BUB II, but I hope this helps you, or anyone else who runs across this problem.

-Missilevania

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: My new HUZZAH has me bummed out...

Post by adafruit_support_rick »

Great fix! My ESP8266 was stuck in the bootloader, and giving
warning: espcomm_sync failed
error: espcomm_open failed

I connected GPIO0 to GND through a 220 ohm resistor, and the upload worked. Thanks!

User avatar
andrsd
 
Posts: 6
Joined: Thu Apr 14, 2016 9:55 pm

Re: My new HUZZAH has me bummed out...

Post by andrsd »

missilevania wrote:To be able to upload anything to the ESP8266 I needed to pull GPIO #0 to ground (across a resistor) and connect the reset lines together. I'm not familiar with the BUB II, but I hope this helps you, or anyone else who runs across this problem.
I am experiencing similar problems. Can you be more specific what "connecting reset lines" mean? Thanks!

User avatar
Acd2048
 
Posts: 4
Joined: Tue Nov 22, 2016 4:52 pm

Re: My new HUZZAH has me bummed out...

Post by Acd2048 »

YES!!! missilevania's solution worked for me! BUT, I had to follow it *exactly*. The FAQ on the learn page only mentions pulling down pin #0. That didn't fix the issue for me. But when I also tied RST and CH_PD togather, like misslevania did, it worked!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: My new HUZZAH has me bummed out...

Post by adafruit_support_rick »

I updated the FAQ with that little tidbit. Thanks!

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

Return to “Other Products from Adafruit”