0

Feather HUZZAH Serial Connection
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather HUZZAH Serial Connection

by ctgraham on Sun Dec 03, 2017 5:33 pm

I bought a Adafruit 2821 Feather HUZZAH with ESP8266 board and I'm trying to get it setup via the serial connection with MicroPython. After flashing the firmware when I turn it on, the blue LED flashes continuously and the COM terminal communication just sends garbage forever.

I used this process for flashing and connecting:
1. Connect ESP8266 to PC via micro USB cable, drivers work and the device is detected
2. Use ESP8266Flasher.exe tool from NODEMCU to flash latest MicroPython firmware (esp8266-20171101-v1.9.3.bin)
3. Reconnect USB cable to PC to reboot the board
4. Connect to COM port via putty

With other devices I have tried (including a different NODEMCU ESP8266 board) this process results in getting the MicroPython REPL via the COM port. With the Feather HUZZAH I just get a long stream of garbage characters printing through the terminal. Am I doing something wrong with my setup? None of the tutorials I have found say to do anything different.

ctgraham
 
Posts: 4
Joined: Sun Dec 03, 2017 2:51 pm

Re: Feather HUZZAH Serial Connection

by adafruit_support_mike on Mon Dec 04, 2017 2:10 am

Just to check, what baudrate are you using in PuTTY?

adafruit_support_mike
 
Posts: 58799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Feather HUZZAH Serial Connection

by ctgraham on Mon Dec 04, 2017 12:25 pm

I've tried various baud rates, including the common ones like 9600 and 115200. Changing the rate just changes the speed/format of the garbage characters. I've also turned off parity and flow control. Also I assume a continuously blinking blue LED is not normal, that happens all them time after rebooting with MicroPython installed whether or not the board is connected to anything. It also doesn't show up as a WiFi AP when I scan from my PC, which I believe should be the expected behavior with a fresh MicroPython install on this board.

ctgraham
 
Posts: 4
Joined: Sun Dec 03, 2017 2:51 pm

Re: Feather HUZZAH Serial Connection

by adafruit_support_mike on Sun Dec 10, 2017 12:13 am

Sorry for the delay.

The symptoms you've described sound like the ESP8266 is in a fast reset loop. Try setting the baudrate to 74880 and see if the output starts to make sense.

Did the Featther work as expected before you flashed MicroPython onto it?

adafruit_support_mike
 
Posts: 58799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Feather HUZZAH Serial Connection

by ctgraham on Mon Dec 11, 2017 10:28 pm

Setting the rate to that does at least get some output:

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

load 0x40100000, len 31100, room 16
tail 12
chksum 0xe3
ho 0 tail 12 room 4
load 0x3ffe8000, len 1084, room 12
tail 0
chksum 0xc0
load 0x3ffe8440, len 3248, room 8
tail 8
chksum 0xe1
csum 0xe1
#0 ets_task(40209c10, 31, 3ffe9100, 4)
rf_cal[0] !=0x05,is 0x00


Flashing it with MicroPython was the first thing I did with it. It was not flashing blue constantly at that point at least but I didn't try to connect to it other than to flash it.

ctgraham
 
Posts: 4
Joined: Sun Dec 03, 2017 2:51 pm

Re: Feather HUZZAH Serial Connection

by adafruit_support_mike on Tue Dec 12, 2017 12:59 am

Okay, that's a start. Does the output eventually repeat with a line like this again?

Code: Select all | TOGGLE FULL SIZE
ets Jan 8 2013,rst cause:2, boot mode:(3,7)

adafruit_support_mike
 
Posts: 58799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Feather HUZZAH Serial Connection

by ctgraham on Tue Dec 12, 2017 8:27 am

Yes I should have mentioned, it's repeating that same chunk of text over and over again very quickly. Also I tried flashing the NODEMCU firmware that's built into the flashing tool I'm using and that seems to work fine (can connect to lua interface over serial port). MicroPython firmware using the same tool does not work, even though I've flashed another non-HUZZAH esp8266 board with the MicroPython firmware using the same tool without any issues.

ctgraham
 
Posts: 4
Joined: Sun Dec 03, 2017 2:51 pm

Re: Feather HUZZAH Serial Connection

by adafruit_support_mike on Wed Dec 13, 2017 12:56 am

Thanks. I'll need to pass this to someone who's more familiar with the MicroPython firmware.

adafruit_support_mike
 
Posts: 58799
Joined: Thu Feb 11, 2010 2:51 pm

Re: Feather HUZZAH Serial Connection

by tdicola on Fri Dec 15, 2017 2:52 pm

Can you post the command you're using to flash the firmware? The result you see sounds very similar to if you're using an older version of esptool.py and it's not specifying the flash size correctly. Make sure to update to the very latest esptool.py and use a command like mentioned in the guide here: https://learn.adafruit.com/micropython- ... ll#esp8266 In particular the flash-size=detect line is important to make sure the tool writes the correct size space for the flash filesystem:
Code: Select all | TOGGLE FULL SIZE
esptool.py --port /path/to/ESP8266 --baud 460800 write_flash --flash_size=detect 0 firmware.bin

Also be sure to erase the flash before flashing the firmware--that just helps rule out any filesystem changes or other odd state that might have been left in flash memory. After being erased when the micropython firmware is loaded it will build a brand new fresh filesystem:
Code: Select all | TOGGLE FULL SIZE
esptool.py --port /path/to/ESP8266 erase_flash

tdicola
 
Posts: 1074
Joined: Thu Oct 17, 2013 9:11 pm

Re: Feather HUZZAH Serial Connection

by kenskier on Fri Jan 11, 2019 4:10 pm

Thank you, Adafruit!

I had exactly the same problem with my Feather Huzzah. I had tried different baud rates, resetting the Feather Huzzah, etc....but no joy. Just random characters spewing into the PuTTY display when I tried to connect.

But your advice fixed it!

Thanks again.

kenskier
 
Posts: 1
Joined: Tue May 16, 2017 5:28 am

Please be positive and constructive with your questions and comments.