Flash failure

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
robertje1024
Posts: 4
Joined: Sat May 14, 2022 6:34 pm

Flash failure

Post by robertje1024 » Mon May 16, 2022 6:10 pm

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.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Flash failure

Post by Roberthh » 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.

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Flash failure

Post by scruss » Mon May 16, 2022 7:43 pm

You likely want the DIO option. I just flashed a NodeMCU v3 using Thonny, and DIO worked as expected:
thonny_firmware.jpg
Thonny editor firmware upload dialogue
thonny_firmware.jpg (48.69 KiB) Viewed 2385 times

robertje1024
Posts: 4
Joined: Sat May 14, 2022 6:34 pm

Re: Flash failure

Post by robertje1024 » Tue May 17, 2022 5:25 pm

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.

robertje1024
Posts: 4
Joined: Sat May 14, 2022 6:34 pm

Re: Flash failure

Post by robertje1024 » Tue May 17, 2022 5:30 pm

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.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Flash failure

Post by Roberthh » Tue May 17, 2022 7:20 pm

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.

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Flash failure

Post by scruss » Tue May 17, 2022 9:53 pm

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.

robertje1024
Posts: 4
Joined: Sat May 14, 2022 6:34 pm

Re: Flash failure

Post by robertje1024 » Thu May 19, 2022 5:27 pm

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

Post Reply