New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esptool.py write the flash successfully, but nodemcu doesn't work or boot. #68
Comments
Hi! What command line arguments did you use with esptool.py? And what module/device are you flashing? The flash size & type arguments in particular may be important, depending on what kind of module you are flashing. |
Hi! I am newbie to eps8266 so that I get the the flash size & type by default. I type "make flash" under directory nodemcu-firmware. The cmd "../tools/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../bin/0x00000.bin 0x10000 ../bin/0x10000.bin" is executed in fact. The size of 0x00000.bin is 35KB(35024) and the 0x10000.bin is 395kb(395588). |
The default flash size & speed settings should work with that board. The only other suggestion I have is to run an "esptool.py --port /dev/ttyUSB0 erase_flash" before the write_flash command you're using. Does that help? |
If the erase_flash step doesn't work, can you paste the output of "esptool.py --port /dev/ttyUSB0 flash_id" please? |
Hi! Here is the output of the cmd $ sudo python ./esptool.py --port /dev/ttyUSB0 erase_flash Leaving... It doesn't work again :D |
Thanks for posting that. Really strange behaviour! How about the other command I mentioned:
|
Thank you for your effort! $ sudo ./esptool.py --port /dev/ttyUSB0 flash_id
Connecting...
Manufacturer: e0
Device: 4016
$ sudo ./esptool.py --port /dev/ttyUSB0 read_mac
Connecting...
MAC: 18:fe:34:00:d2:9a It's weird that the nodemcu-flasher on Windows could work, using the same 0x00000.bin and 0x10000.bin. |
Same behavior :( |
I had the same issue, I just changed my cable and flashed it. It worked |
I resolve the issue. I'm change baud rate for esptool to 9600. And It work! |
And after flashing nechesarili plug out and plug in the cable. |
Hi~ |
Hi guys~ |
As I understood if you have nodemcu development kit, you don't need to worry about this. |
Hi guys~ sudo esptool.py --port /dev/ttyUSB0 write_flash -fm dio -fs 32m -ff 40m 0x00000 0x00000.bin 0x10000 0x10000.bin It is clearly confirmed that args such as -fm, -fs and -ff should be specified.
Then it should work correctly. |
What a pity that SPI flash info args are not documented anywhere here (I expected that in |
Closing as |
Hi! I compiled the nodemcu-firmware and got the 0x00000.bin and the 0x40000.bin. Then I typed "make flash" and writed done, then I turn the power off and on, but it didn't work. The same as I typed “sudo python esptool.py ..........”. When I switched to Windows 7 and used the https://github.com/nodemcu/nodemcu-flasher, it worked. So what is the point I missed?
The text was updated successfully, but these errors were encountered: