0

My new HUZZAH has me bummed out...
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

My new HUZZAH has me bummed out...

by Jay_ on Sat Mar 12, 2016 3:54 am

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 | TOGGLE FULL SIZE
../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 | TOGGLE FULL SIZE
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 2465 times
board1.png
board1.png (47.5 KiB) Viewed 2465 times

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

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

by adafruit_support_rick on Sun Mar 13, 2016 1:34 pm

Post some pictures of your soldering

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

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

by Jay_ on Tue Mar 22, 2016 7:07 pm

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 2345 times

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

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

by adafruit_support_rick on Wed Mar 23, 2016 9:37 am

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

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

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

by dhalbert on Wed Mar 23, 2016 10:37 am

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.)

dhalbert
 
Posts: 400
Joined: Tue Feb 17, 2015 6:18 pm

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

by Jay_ on Wed Mar 23, 2016 11:18 am

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

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

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

by Jay_ on Tue Mar 29, 2016 5:21 pm

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 | TOGGLE FULL SIZE
 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 | TOGGLE FULL SIZE
 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'.

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

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

by adafruit_support_rick on Tue Mar 29, 2016 6:47 pm

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

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

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

by Jay_ on Wed Mar 30, 2016 12:06 am

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

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

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

by adafruit2 on Wed Mar 30, 2016 11:12 am

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

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

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

by missilevania on Sun Apr 17, 2016 10:46 pm

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

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

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

by adafruit_support_rick on Mon Apr 18, 2016 1:09 pm

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!

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

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

by andrsd on Wed Apr 20, 2016 11:13 am

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!

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

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

by Acd2048 on Fri Dec 16, 2016 10:02 pm

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!

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

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

by adafruit_support_rick on Sat Dec 17, 2016 9:53 am

I updated the FAQ with that little tidbit. Thanks!

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

Please be positive and constructive with your questions and comments.