Page 1 of 2

Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sat Nov 19, 2016 4:17 am
by gregsvo
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!

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sat Nov 19, 2016 9:17 am
by shaoziyang
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

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sat Nov 19, 2016 4:04 pm
by gregsvo
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?

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sat Nov 19, 2016 5:12 pm
by shaoziyang
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.

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sun Nov 20, 2016 6:58 am
by gregsvo
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?

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sun Nov 20, 2016 7:19 am
by shaoziyang
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.

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sun Nov 20, 2016 2:10 pm
by weldeng
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.

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sun Nov 20, 2016 6:17 pm
by cristiand391
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-)

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sun Nov 20, 2016 8:13 pm
by gregsvo
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

Re: Flashing NodeMCU with 1.8.6 - Rapid Blue Flashing Error

Posted: Sat Dec 17, 2016 3:02 am
by weldeng
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