ESP8266 - 12E in infinite reset loop with wdt reset [RESOLVED]

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
spsarolkar
Posts: 4
Joined: Mon Aug 10, 2020 3:51 pm

ESP8266 - 12E in infinite reset loop with wdt reset [RESOLVED]

Post by spsarolkar » Mon Aug 10, 2020 4:12 pm

I am trying to get micropython running on ESP8266 - 12E.

I did followed below steps for flashing and verifying the flashed image on ESP 12E
1. Cleaned the flash 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...
2. Flashed the stable image
$ 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...
3. Verified the flash
$ 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.
But when I try running pycomm using command "picocom /dev/ttyUSB0 -b115200", it repeatedly restarts with wdt reset
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.
>>>
Last edited by spsarolkar on Tue Aug 11, 2020 1:53 pm, edited 1 time in total.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: ESP8266 - 12E in infinite reset loop with wdt reset

Post by Roberthh » Mon Aug 10, 2020 4:33 pm

You could try the other flash modes of the option -fm.

spsarolkar
Posts: 4
Joined: Mon Aug 10, 2020 3:51 pm

Re: ESP8266 - 12E in infinite reset loop with wdt reset

Post by spsarolkar » Mon Aug 10, 2020 5:41 pm

Roberthh wrote:
Mon Aug 10, 2020 4:33 pm
You could try the other flash modes of the option -fm.
I tried with qio, qout, dout but showing similar issue. Please find serial outputs below
qio
----
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�;l���
��b��b�$b����b|��ƌ�
�lx~�n�n����
|�n�����l�
�l�
����
r�n����b
�b�>��ܒ��b �l����

|�rrr�n�����|~����� 6�l���xb��Performing initial setup

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���pb��Performing initial setup
qout
----
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�����|~����� 6�l���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�;l���
��b��b�$bĒ��b|��ƌ�
�lx~�n�n����
|�n�����l�
�l�
����
r�n��ܒ��b
�b�>��ܒ��b �l����

|�rrr�n�����|~����� 6�l���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�;l���
��b��b�$b����b|���
�lx~�n�n����
|�n�����l�
�l�
����
r�n��ܒ��b
�b�>��ܒ��b �l����

|�rrr�nĒ���|~����� 6�l���xb��
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266
Type "help()" for more information.
>>>
dout
----
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�����|~����Il���xb��
MicroPython v1.12 on 2019-12-20; ESP module with ESP8266
Type "help()" for more information.
>>>

spsarolkar
Posts: 4
Joined: Mon Aug 10, 2020 3:51 pm

Re: ESP8266 - 12E in infinite reset loop with wdt reset

Post by spsarolkar » Tue Aug 11, 2020 5:03 am

There was power issue to ESP8266, I changed the power supply and everything went fine with

Code: Select all

-fm dio

spsarolkar
Posts: 4
Joined: Mon Aug 10, 2020 3:51 pm

Re: ESP8266 - 12E in infinite reset loop with wdt reset

Post by spsarolkar » Tue Aug 11, 2020 5:07 am

Roberthh wrote:
Mon Aug 10, 2020 4:33 pm
You could try the other flash modes of the option -fm.
Thanks Roberthh, The issue resolved after changing the power supply

Post Reply