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.
Post Reply
kr-g
Posts: 14
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: 4015
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


kr-g
Posts: 14
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: 247
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: 639
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: 14
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 :-)

Post Reply