Page 1 of 1
Flash failure
Posted: Mon May 16, 2022 6:10 pm
by robertje1024
Hello all,
I'm new here.
I have been trying to upload a Nodemcu V3 with an ESP8266 a Micropython firmware for some time now.
Unfortunately, so far I have not succeeded.
When I upload the firmware v1.17 (2021-09-02) .bin, and when it is done, the LED flashes very fast.
There is then no micropython loaded.
With the following line I tried the upload:
esptool --port /dev/ttyUSB0 --baud115200 write_flash --flash_size=detect 0 esp8266-20210902-v1.17.bin
I don't know what options I have left to upload it properly, or maybe I'm doing something wrong.
Regards Robert.
Re: Flash failure
Posted: Mon May 16, 2022 6:28 pm
by Roberthh
You can try the four flash_mode option variants. The default is dio. But some boards need a different option, like dout.
Re: Flash failure
Posted: Mon May 16, 2022 7:43 pm
by scruss
You likely want the DIO option. I just flashed a NodeMCU v3 using Thonny, and DIO worked as expected:
- Thonny editor firmware upload dialogue
- thonny_firmware.jpg (48.69 KiB) Viewed 2885 times
Re: Flash failure
Posted: Tue May 17, 2022 5:25 pm
by robertje1024
Hello Scruss,
I can't choose that option in my Thonny.
I am running it under Linux(Ubuntu Mate).
The version I have is 3.2.7.
This is the latest version for Linux.
Regards Robert.
Re: Flash failure
Posted: Tue May 17, 2022 5:30 pm
by robertje1024
Roberthh wrote: ↑Mon May 16, 2022 6:28 pm
You can try the four flash_mode option variants. The default is dio. But some boards need a different option, like dout.
Helle Roberth,
When I add -fm dout in the line, I get an error message.
Should I remove the baud rate if necessary?
If it's possible, can you give me an example line.
Regards Robert.
Re: Flash failure
Posted: Tue May 17, 2022 7:20 pm
by Roberthh
It should be:
esptool --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=4MB --flash_mode dout 0 esp8266-20210902-v1.17.bin
If the flash size of your device is >4MB, you have to set it to 4MB.
The flash modes are qio,qout,dio or dout.
Re: Flash failure
Posted: Tue May 17, 2022 9:53 pm
by scruss
robertje1024 wrote: ↑Tue May 17, 2022 5:25 pm
The version I have is 3.2.7.
This is the latest version for Linux.
I have 3.3.14 on my Ubuntu box here.
Re: Flash failure
Posted: Thu May 19, 2022 5:27 pm
by robertje1024
Hello guys,
I managed to upload the firmware with the "dio"
But then I still want to know how you got the version in Ubuntu.
I downloaded my Thonny through the standard way, with "sudo apt-get install thonny".
Thanks to help me.
My project, a weatherstation is running now.
Regards Robert