Help needed to un-brick Feather HUZZAH ESP8266

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jjussi
 
Posts: 11
Joined: Mon Jun 06, 2016 3:43 am

Help needed to un-brick Feather HUZZAH ESP8266

Post by jjussi »

Hi!
Something happened when updating (at Arduino IDE) program and now my ESP8266 is more like brick.. When power is connected, both leds are ON constantly and flashing don't work.
DSC_0138_small.JPG
DSC_0138_small.JPG (225.13 KiB) Viewed 850 times
If I connect to COM-port with speed of 74880 and press reset I can see:

Code: Select all

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x0f
csum 0x0f
~ld
   Fatal exception (0):
epc1=0x40100007, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40100007, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40100007, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
(repeating these lines)
If I try to use ESP8266Flasher.exe in windows, it "connect" to com port, led (left side to USB) start blink (short off, long on), but cannot find ESP8266:

Code: Select all

 Note:Detect serial port changed.
Note:Auto MAP serial port.Port-->COM7

Note:Serial port connected.
Note:Begin find ESP8266.
At Arduino (IDE) when try to flash I get:

Code: Select all

esptool v0.4.8 - (c) 2014 Ch. Klippel <[email protected]>
	setting board to nodemcu
	setting baudrate from 115200 to 9600
	setting port from /dev/tty.usbserial to /dev/cu.SLAB_USBtoUART
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
opening port /dev/cu.SLAB_USBtoUART at 9600
	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
	serialport_receive_C0: 76 instead of C0
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
	serialport_receive_C0: 4B instead of C0
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
	serialport_receive_C0: 87 instead of C0
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
	serialport_receive_C0: 76 instead of C0
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
	serialport_receive_C0: 45 instead of C0
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
	serialport_receive_C0: 11 instead of C0
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
	serialport_receive_C0: 76 instead of C0
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
	serialport_receive_C0: 45 instead of C0
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
	serialport_receive_C0: 01 instead of C0
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

Code: Select all

admins-Mac-Pro:~ root# esptool.py --port /dev/tty.SLAB_USBtoUART --baud 74880 write_flash 0 blank.bin --flash_size=4m --flash_freq 80m --verify
esptool.py v1.1
Connecting...

A fatal error occurred: Failed to connect to ESP8266

User avatar
jjussi
 
Posts: 11
Joined: Mon Jun 06, 2016 3:43 am

Re: Help needed to un-brick Feather HUZZAH ESP8266

Post by jjussi »

.. follow up...

I managed to unbrick my ESP8288... ;-)

I got idea from viewtopic.php?f=57&t=96475&p=487891&hil ... re#p487891 where person is talking about mitch match of timing of puting (internally) #0 to GND

I added button between #0 and GND, so at reboot I can get board to flash mode... After that I could:

Code: Select all

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 74880 write_flash 0 getcurrent.pde.bin --flash_size=4m --flash_freq 80m --verify
esptool.py v1.1
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x000f
Writing 233472 @ 0x0... 233472 (100 %)
Wrote 233472 bytes at 0x0 in 31.2 seconds (59.8 kbit/s)...
Leaving...
Verifying just-written flash...
Verifying 0x384d0 (230608) bytes @ 0x00000000 in flash against getcurrent.pde.bin...
-- verify OK (digest matched)
where that getcurrent.pde.bin is from Arduino IDE

Now Arduino IDE flashing is working again...

Code: Select all

esptool v0.4.8 - (c) 2014 Ch. Klippel <[email protected]>
	setting board to nodemcu
	setting baudrate from 115200 to 115200
	setting port from /dev/tty.usbserial to /dev/cu.SLAB_USBtoUART
	setting address from 0x00000000 to 0x00000000
	espcomm_upload_file
	espcomm_upload_mem
opening port /dev/cu.SLAB_USBtoUART 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
	espcomm_send_command: receiving 2 bytes of data
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x08
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 274352 bytes from to flash at 0x00000000
	erasing flash
	size: 042fb0 address: 000000
	first_sector_index: 0
	total_sector_count: 67
	head_sector_count: 16
	adjusted_sector_count: 51
	erase_size: 033000
	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
............................................................................................................................................................................................................................................................................
starting app without reboot
	espcomm_send_command: sending command header
	espcomm_send_command: sending command payload
	espcomm_send_command: receiving 2 bytes of data
closing bootloader
So, this is solution when IDE flashing don't work anymore... ;-)

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

Re: Help needed to un-brick Feather HUZZAH ESP8266

Post by adafruit_support_mike »

Thanks for posting the follow-up!

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

Return to “Microcontrollers”