I did followed below steps for flashing and verifying the flashed image on ESP 12E
1. Cleaned the flash Image
2. Flashed the stable image$ 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:03:91:89
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 9.4s
Hard resetting via RTS pin...
3. Verified the flash$ esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 thirdparty/esp8266-20191220-v1.12.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:03:91:89
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Compressed 619828 bytes to 404070...
Wrote 619828 bytes (404070 compressed) at 0x00000000 in 35.7 seconds (effective 138.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
But when I try running pycomm using command "picocom /dev/ttyUSB0 -b115200", it repeatedly restarts with wdt reset$ esptool.py verify_flash --diff yes -fm dio 0x00000 thirdparty/esp8266-20191220-v1.12.bin
esptool.py v2.8
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting........_____.....____
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:03:91:89
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0240
Verifying 0x97534 (619828) bytes @ 0x00000000 in flash against thirdparty/esp8266-20191220-v1.12.bin...
-- verify OK (digest matched)
Hard resetting via RTS pin...
Micropython indefinitely printing below message.
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266
Type "help()" for more information.
>>>
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 31088, room 16
tail 0
chksum 0x44
load 0x3ffe8000, len 1028, room 8
tail 12
chksum 0x1e
ho 0 tail 12 room 4
load 0x3ffe8410, len 824, room 12
tail 12
chksum 0x89
csum 0x89
���x�n��>r���n�b
�
�lrb�
�����l�|��n���l`>r�x�l`#
�
r����8���
�
r�����8�
��
�lrr�9l���
��b��b�$b����b|��ƌ�
�lx~�n�n����
|�n�����l�
�l�
����
r�n����b
�b�<��ܒ��b �l����
�
|�rrr�n�����|~����Il���xb��
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266
Type "help()" for more information.
>>>
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 31088, room 16
tail 0
chksum 0x44
load 0x3ffe8000, len 1028, room 8
tail 12
chksum 0x1e
ho 0 tail 12 room 4
load 0x3ffe8410, len 824, room 12
tail 12
chksum 0x89
csum 0x89
���x�n��>r���n�b
�
�lrb�
�����l�|��n���l`>r�x�l`#
�
r����8���
�
r����8�
���
�lrr�9l���
��b��b�$b����b|��ƌ�
�lx~�n�n����
|�n�����l�
�l�
����
r�n��ޒ��b
�b�<��ܒ��b �l����
�
|�rrr�n�����|~�����6Il���xb��
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266
Type "help()" for more information.
>>>