my Sonoff/ESP8266 is connected via an UART-converter to my Linux-PC (turned on while pressing the reset-button).
Erasing the Flash:
Code: Select all
$ esptool --port /dev/ttyUSB0 erase_flash
esptool.py v2.2
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.5s
Hard resetting...
Code: Select all
$ esptool --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 esp8266-20171101-v1.9.3.bin
esptool.py v2.2
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0220
Compressed 600888 bytes to 392073...
Wrote 600888 bytes (392073 compressed) at 0x00000000 in 34.8 seconds (effective 138.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...
When I start now picocom, it looks like hanging. It doesn't react to Crtl+d, Crtl+c. Only Crtl+a+x is working
Code: Select all
$ picocom --baud 115200 /dev/ttyUSB0
picocom v3.0
port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 115200
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
hangup is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
logfile is : none
initstring : none
exit_after is : not set
exit is : no
Type [C-a] [C-h] to see available commands
Terminal ready
I tried flashing a lot of differnt fimrware versions (starting from v1.8.6). I tried flashing with different baud-rates and also with/without -fm dio. After flashing the firmware it always looked fine but from those newly flashed ESP8266, none I can access REPL.