esp8266 not responding
esp8266 not responding
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
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
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: esp8266 not responding
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.
Index to my micropython libraries.
Re: esp8266 not responding
What happens / are the syntomes if flash storage is broken?
Re: esp8266 not responding
its working again...
no idea what was the reason...
no idea what was the reason...
Re: esp8266 not responding
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:
and flash like this:
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?
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...
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.
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?
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: esp8266 not responding
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.
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
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: esp8266 not responding
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
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
- superthaix
- Posts: 5
- Joined: Sun Jan 05, 2020 7:37 pm
- Location: USA
Re: esp8266 not responding
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
It works with: -fs 1MB -fm dout 0x0.