esp8266 not responding

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
kr-g
Posts: 48
Joined: Sun Dec 01, 2019 7:52 pm
Contact:

esp8266 not responding

Post by kr-g » Fri Dec 06, 2019 2:14 pm

yesterday my esp8266 stopped working via serial.
i flashed it afterwards successfully and i can use esptool to get chip_id or flash_id.
but the board is not responsing with mpfshel, rshell, picocom.

i can flash and run the blink sample from arduino IDE.

in addition i used a brand new esp8266 board (unpacked yesterday!)
same situation. not responding but arduino / blink is working

i tried then with different micropython versions. no result.

any idea?!

board info ---

esptool.py v2.8

Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: esp8266 not responding

Post by pythoncoder » Sun Dec 08, 2019 10:19 am

Hard to figure out on that information. I suggest you provide actual listings of what happens when you erase flash, install MicroPython firmware, and run rshell.
Peter Hinch
Index to my micropython libraries.


kr-g
Posts: 48
Joined: Sun Dec 01, 2019 7:52 pm
Contact:

Re: esp8266 not responding

Post by kr-g » Fri Dec 13, 2019 12:22 pm

its working again...

no idea what was the reason...

jedie
Posts: 252
Joined: Fri Jan 29, 2016 12:32 pm
Contact:

Re: esp8266 not responding

Post by jedie » Sat Dec 14, 2019 4:43 pm

I'm helpless right now.

I have brand new Sonoff S20 WiFi Smart Socket here... I can erase flash and flash micropython without problems. But i didn't get the MicroPython REPL prompt...

ease looks like this:

Code: Select all

esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:6a:84:02
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.4s
Hard resetting via RTS pin...
and flash like this:

Code: Select all

esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect 0 esp8266-20190529-v1.11.bin
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:6a:84:02
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0020
Compressed 617880 bytes to 402086...
Wrote 617880 bytes (402086 compressed) at 0x00000000 in 35.4 seconds (effective 139.7 kbit/s)...
Hash of data verified.
I already lower the boud here.

The interesting thing: The new ordered devices (There are three of them.) are a other reversion as my existing one. But it's exact the same as here: https://github.com/tsaarni/mqtt-micropython-smartsocket So i assume it must work.

I use the same wires. The same adapter. Everything is the same as I have done successfully with my old devices.

Anyone else have an idea?


kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: esp8266 not responding

Post by kevinkk525 » Sat Dec 14, 2019 9:52 pm

awesome!

Maybe I have the same problem on one of my TH10. Apparently sonoff uses different flash sizes in the same product line, because my 2 Sonoff S20 worked without this, and so did 4 TH10.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

kr-g
Posts: 48
Joined: Sun Dec 01, 2019 7:52 pm
Contact:

Re: esp8266 not responding

Post by kr-g » Fri Dec 27, 2019 3:02 pm

i m still not sure what initial caused my problem...
probably i used the wrong firmware for esptool ?!?!

there is now a small tool available which helps when using different microcontroller types (esp32/8266 only!)
and handling with different firmware images/version ...

handling of custom parameters is not provided... but you can post some ideas here or at github...

https://github.com/kr-g/espsetup

guess there are still some bugs inside ;-)

any feedback welcome

hope you like it :-)

User avatar
superthaix
Posts: 5
Joined: Sun Jan 05, 2020 7:37 pm
Location: USA

Re: esp8266 not responding

Post by superthaix » Sun Dec 06, 2020 4:16 pm

jedie wrote:
Sat Dec 14, 2019 4:55 pm
Ah!
It works with: -fs 1MB -fm dout 0x0 :D
Thanks you for this information. You saved my life ! LOL
I had some 'cheap' ESP8266-01S that would just not flash correctly even though flash_verify reported all was well. Micropython would just not boot up to the REPL promot no matter what I did. I would just get gibberish on the serial console.

I added your line above to my esptool write_flash command and it finally worked!
I had eight 01-S's that I thought were no good, but working perfect now.

This is what worked for me...
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=1MB -fm dout 0x0 esp8266-1m-20200902-v1.13.bin

THANKS AGAIN !

edcolley
Posts: 1
Joined: Wed Dec 09, 2020 1:48 am
Contact:

Re: esp8266 not responding

Post by edcolley » Wed Dec 09, 2020 1:50 am

It works with: -fs 1MB -fm dout 0x0.

Post Reply