Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
gregsvo
Posts: 10
Joined: Fri Oct 21, 2016 6:12 pm

Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by gregsvo » Sat Nov 19, 2016 4:17 am

I've been struggling to get 1.8.6 installed onto my nodemcu board.

I downloaded 1.8.6, and ran this command:

Code: Select all

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=8m 0 esp8266-20161110-v1.8.6.bin
It seems to flash the board correctly, but when I disconnect the board/reconnect (ie: reboot) the blue led flashes rapidly, and the board/repl is inaccessible. When I run

Code: Select all

 screen /dev/tty.SLAB_USBtoUART 115200
all I see is a whole bunch of this:

Code: Select all

�bl ��p�no�$$l�pdN|���{$d����rrn#���$�2c�l#䌜����B�#$`���p�oN�$2d$l�pdn|���{$$ܾ���rso#���$�2c�lB����"�#$`���p�on�l$ld�b��� {ll��|�l�|�l�c|����r�#�b��no�loN���bplclrdp�o��lBo�|���p��oo�l��l �Nn$`n{���o{�rdp�n�r�����"o�|ll�b��no�$`�oo�{$or���Nr�� p�N�r�ܜ����cn�|�B�|�n��l �2no�s$or���N��{lr��o2��s$$ܞ���r{oB���l�B��b�ܜ���c�bl ���p�oN�$$l�p$n|��`s$lܟ|�$�|�l�"|���2�s�b�p��oN�lNn���cpl#ls$p�o��lBo�|���b��no�l��l`�Nn$`n{���o{�lp�n�r�ܜ��cn�|l$�p�|
Any help you can give is greatly appreciated!

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by shaoziyang » Sat Nov 19, 2016 9:17 am

gregsvo wrote:I've been struggling to get 1.8.6 installed onto my nodemcu board.

I downloaded 1.8.6, and ran this command:

Code: Select all

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=8m 0 esp8266-20161110-v1.8.6.bin
It seems to flash the board correctly, but when I disconnect the board/reconnect (ie: reboot) the blue led flashes rapidly, and the board/repl is inaccessible. When I run

Code: Select all

 screen /dev/tty.SLAB_USBtoUART 115200
all I see is a whole bunch of this:

Code: Select all

�bl ��p�no�$$l�pdN|���{$d����rrn#���$�2c�l#䌜����B�#$`���p�oN�$2d$l�pdn|���{$$ܾ���rso#���$�2c�lB����"�#$`���p�on�l$ld�b��� {ll��|�l�|�l�c|����r�#�b��no�loN���bplclrdp�o��lBo�|���p��oo�l��l �Nn$`n{���o{�rdp�n�r�����"o�|ll�b��no�$`�oo�{$or���Nr�� p�N�r�ܜ����cn�|�B�|�n��l �2no�s$or���N��{lr��o2��s$$ܞ���r{oB���l�B��b�ܜ���c�bl ���p�oN�$$l�p$n|��`s$lܟ|�$�|�l�"|���2�s�b�p��oN�lNn���cpl#ls$p�o��lBo�|���b��no�l��l`�Nn$`n{���o{�lp�n�r�ܜ��cn�|l$�p�|
Any help you can give is greatly appreciated!

You must erase flash before download.

esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash

gregsvo
Posts: 10
Joined: Fri Oct 21, 2016 6:12 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by gregsvo » Sat Nov 19, 2016 4:04 pm

shaoziyang wrote: You must erase flash before download.
esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
I'm sorry I didn't include that as part of the description - but yes, I'm erasing the flash before hand. Is there a possibility it's not erasing completely?

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by shaoziyang » Sat Nov 19, 2016 5:12 pm

gregsvo wrote:
shaoziyang wrote: You must erase flash before download.
esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
I'm sorry I didn't include that as part of the description - but yes, I'm erasing the flash before hand. Is there a possibility it's not erasing completely?
Yes, if erase too fast (less than 1 sec), it maybe not erase completely. It will take 2-3 sec normal, you may run erase command again.

gregsvo
Posts: 10
Joined: Fri Oct 21, 2016 6:12 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by gregsvo » Sun Nov 20, 2016 6:58 am

shaoziyang wrote:
Yes, if erase too fast (less than 1 sec), it maybe not erase completely. It will take 2-3 sec normal, you may run erase command again.
Any recommendations on how to slow down the erasing process, to avoid errors?

shaoziyang
Posts: 363
Joined: Sun Apr 17, 2016 1:55 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by shaoziyang » Sun Nov 20, 2016 7:19 am

gregsvo wrote:
shaoziyang wrote:
Yes, if erase too fast (less than 1 sec), it maybe not erase completely. It will take 2-3 sec normal, you may run erase command again.
Any recommendations on how to slow down the erasing process, to avoid errors?
There is no better way now. If you meet this problem, you may try to erase flash again.

weldeng
Posts: 31
Joined: Thu Sep 15, 2016 12:47 am

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by weldeng » Sun Nov 20, 2016 2:10 pm

gregsvo wrote:I've been struggling to get 1.8.6 installed onto my nodemcu board.

I downloaded 1.8.6, and ran this command:

Code: Select all

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=8m 0 esp8266-20161110-v1.8.6.bin
It seems to flash the board correctly, but when I disconnect the board/reconnect (ie: reboot) the blue led flashes rapidly, and the board/repl is inaccessible. When I run

Code: Select all

 screen /dev/tty.SLAB_USBtoUART 115200
all I see is a whole bunch of this:

Code: Select all

�bl ��p�no�$$l�pdN|���{$d����rrn#���$�2c�l#䌜����B�#$`���p�oN�$2d$l�pdn|���{$$ܾ���rso#���$�2c�lB����"�#$`���p�on�l$ld�b��� {ll��|�l�|�l�c|����r�#�b��no�loN���bplclrdp�o��lBo�|���p��oo�l��l �Nn$`n{���o{�rdp�n�r�����"o�|ll�b��no�$`�oo�{$or���Nr�� p�N�r�ܜ����cn�|�B�|�n��l �2no�s$or���N��{lr��o2��s$$ܞ���r{oB���l�B��b�ܜ���c�bl ���p�oN�$$l�p$n|��`s$lܟ|�$�|�l�"|���2�s�b�p��oN�lNn���cpl#ls$p�o��lBo�|���b��no�l��l`�Nn$`n{���o{�lp�n�r�ܜ��cn�|l$�p�|
Any help you can give is greatly appreciated!

Having same problem on NodeCMU board and Adafruit Heather ESP8266. I am able to reflash both boards back to 1.8.5 with no problems. Have tried 1.8.6 several times with same result of rapid blue flashes as you described. No fix that I know of. I am sticking with 1.8.5 for now.

cristiand391
Posts: 1
Joined: Sun Nov 20, 2016 5:57 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by cristiand391 » Sun Nov 20, 2016 6:17 pm

To avoid this issue, you just need to set the correct flash size of your module when you flash the firmware. V1.8.6 is based on SDK 2.0.0 and flash size auto detection has been moved to esptool.

Try this, before erase flash!

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20161110-v1.8.6.bin

Sorry for my bad english 8-)

gregsvo
Posts: 10
Joined: Fri Oct 21, 2016 6:12 pm

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by gregsvo » Sun Nov 20, 2016 8:13 pm

cristiand391 wrote:To avoid this issue, you just need to set the correct flash size of your module when you flash the firmware. V1.8.6 is based on SDK 2.0.0 and flash size auto detection has been moved to esptool.

Try this, before erase flash!

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20161110-v1.8.6.bin

Sorry for my bad english 8-)
THANK YOU! Your answer took me most of the way there. I used the same command, but slowed down the baud rate- and it worked great. Here's the command I used:

Code: Select all

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 74880 write_flash --flash_size=detect -fm dio 0 esp8266-20161110-v1.8.6.bin

weldeng
Posts: 31
Joined: Thu Sep 15, 2016 12:47 am

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Post by weldeng » Sat Dec 17, 2016 3:02 am

gregsvo wrote:
cristiand391 wrote:To avoid this issue, you just need to set the correct flash size of your module when you flash the firmware. V1.8.6 is based on SDK 2.0.0 and flash size auto detection has been moved to esptool.

Try this, before erase flash!

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20161110-v1.8.6.bin

Sorry for my bad english 8-)
THANK YOU! Your answer took me most of the way there. I used the same command, but slowed down the baud rate- and it worked great. Here's the command I used:

Code: Select all

esptool.py --port /dev/tty.SLAB_USBtoUART --baud 74880 write_flash --flash_size=detect -fm dio 0 esp8266-20161110-v1.8.6.bin

Thanks it worked for me also as follows:

esptool.py --port COM3 --baud 74880 write_flash --flash_size=detect -fm dio 0 esp8266-20161110-v1.8.6.bin

Post Reply