Page 1 of 2
esp8266 not responding
Posted: Fri Dec 06, 2019 2:14 pm
by kr-g
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
Re: esp8266 not responding
Posted: Sun Dec 08, 2019 10:19 am
by pythoncoder
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.
Re: esp8266 not responding
Posted: Sun Dec 08, 2019 11:18 am
by jedie
What happens / are the syntomes if flash storage is broken?
Re: esp8266 not responding
Posted: Fri Dec 13, 2019 12:22 pm
by kr-g
its working again...
no idea what was the reason...
Re: esp8266 not responding
Posted: Sat Dec 14, 2019 4:43 pm
by jedie
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?
Re: esp8266 not responding
Posted: Sat Dec 14, 2019 4:55 pm
by jedie
Ah!
It works with:
-fs 1MB -fm dout 0x0 
Re: esp8266 not responding
Posted: Sat Dec 14, 2019 9:52 pm
by kevinkk525
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.
Re: esp8266 not responding
Posted: Fri Dec 27, 2019 3:02 pm
by kr-g
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

Re: esp8266 not responding
Posted: Sun Dec 06, 2020 4:16 pm
by superthaix
jedie wrote: ↑Sat Dec 14, 2019 4:55 pm
Ah!
It works with:
-fs 1MB -fm dout 0x0
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 !
Re: esp8266 not responding
Posted: Wed Dec 09, 2020 1:50 am
by edcolley
It works with: -fs 1MB -fm dout 0x0.