Current Lua downloadable firmware will be posted here

User avatar
By Yann B.
#43261 Hello all,

Sorry for this "yet another firmware install problem" :/

This is with the NodeMCU dev kit version 1.0.

Here are the symptoms after flashing:
- in a serial terminal ('minicom -D /dev/ttyUSB0 -b 115200 -c on'), after a reset, I only get gibberish characters and no prompt. The gibberish is different when I user 9600 baud, but still nothing usable).
- in Esplorer, I get ".........Got answer! AutoDetect firmware...
Can't autodetect firmware, because proper answer not received."
( with buttons DTR and RTS activated, and tested with 9600 or 115200 baud).

Here is my setup and process to flash the :
- OS: linux,
- NodeMCU dev kit version 1.0,
- flashing tool: (https://github.com/themadinventor/esptool) with pyserial installed,
- followed the doc at https://nodemcu.readthedocs.org/en/dev/en/flash/,
- created a build with http://nodemcu-build.com/,
- I keep pressing the flash button while I press the reset button, then I leave the flash button when the blue led is blinking (once).
- Then I run esptool. I tried these two (I don't know how many times...), with no luck:
Code: Select all ./esptool/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 nodemcu-master-10-modules-2016-03-15-21-26-49-float.bin

Code: Select allesptool.py --port /dev/ttyUSB0 write_flash 0x00000 blank.bin
# and then
./esptool/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 nodemcu-master-10-modules-2016-03-15-21-26-49-float.bin 0x3fc000 esp_init_data_default.bin


During the operation, the blue led is blinking fast, and the console says it's writing, up to 100% with no error:
Code: Select all./esptool/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 nodemcu-master-10-modules-2016-03-15-21-26-49-float.bin
Connecting...
Erasing flash...
Took 1.75s to erase flash block
Wrote 467968 bytes at 0x00000000 in 45.0 seconds (83.1 kbit/s)...

Leaving...


I even tried to keep the flash button pressed during the execution of esptool, or put the GPIO0 to GND.

Can you please tell me what I do wrong ?

Thanks
User avatar
By Yann B.
#43489 Ok I found. The electrodragon wiki page( http://www.electrodragon.com/w/ESP8266_NodeMCU_Dev_Board#R2_Version_Flash_Note) says SPI MODE has to be DIO, flash size 32M.

This excellent page http://www.foobarflies.io/a-simple-connected-object-with-nodemcu-and-mqtt/ was also a great help.

The command that worked for me was:
Code: Select all./esptool/esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fm dio -fs 32m 0x00000 nodemcu-master-10-modules-2016-03-15-21-26-49-float.bin
User avatar
By Robotto
#44771
Yann B. wrote:Ok I found. The electrodragon wiki page( http://www.electrodragon.com/w/ESP8266_NodeMCU_Dev_Board#R2_Version_Flash_Note) says SPI MODE has to be DIO, flash size 32M.

This excellent page http://www.foobarflies.io/a-simple-connected-object-with-nodemcu-and-mqtt/ was also a great help.

The command that worked for me was:
Code: Select all./esptool/esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash -fm dio -fs 32m 0x00000 nodemcu-master-10-modules-2016-03-15-21-26-49-float.bin


Awesome!

You've saved my sanity.