Page 1 of 1
Someone with a GitHub account: Please add -fm dout to the docs
Posted: Sat Jun 26, 2021 8:17 pm
by snake77
This issue
viewtopic.php?f=16&t=10741 just got resolved by using the
option during flashing. The docs only mention the
option so far.
This is the file in the repository:
https://github.com/micropython/micropyt ... /intro.rst
Code: Select all
For some boards with a particular FlashROM configuration (e.g. some variants of
a NodeMCU board) you may need to use the following command to deploy
the firmware (note the ``-fm dio`` option)::
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20170108-v1.8.7.bin
Is there someone with a GitHub account who can make a quick addition to the docs?
Re: Someone with a GitHub account: Please add -fm dout to the docs
Posted: Sat Jun 26, 2021 9:56 pm
by hcet14
Yes, makes sense. I remember having a hard time with that, when I started the first time.
hcet14
Re: Someone with a GitHub account: Please add -fm dout to the docs
Posted: Sat Jun 26, 2021 11:49 pm
by snake77
hcet14 wrote: ↑Sat Jun 26, 2021 9:56 pm
Yes, makes sense. I remember having a hard time with that, when I started the first time.
Especially since the docs mention that one option, but not the other one that eventually helped. However, those ESP-01S boards are the first ones where I had to set that option for me at all.
So can you make a quick pull request on GitHub? In case someone else has the same problem? Just adding
to the existing paragraph would have helped me a lot and probably saved an hour or two.
Re: Someone with a GitHub account: Please add -fm dout to the docs
Posted: Mon Jun 28, 2021 6:46 pm
by hcet14
Today I started with my ESP8266 again and put a new firmware on that thing. The schematic
https://www.esp8266.com/wiki/lib/exe/fe ... sp-12e.png of my ESP-12E shows a quad SPI flash. So I can use all modes (and tried it). So -fm dout always works on every module.
SPI Flash Modes:
https://github.com/espressif/esptool/wi ... lash-Modes
The programming speed also depends to the chosen baud rate
https://github.com/espressif/esptool and of course on the age/condition of the flash device.
I agree, it is irritating for beginners when something goes wrong, the µC boots, and you see funny effects. The manual could mention more conservative settings. But it
http://docs.micropython.org/en/latest/e ... html#intro says
You may also need to reduce the baudrate if you get errors when flashing (eg down to 115200). The filename of the firmware should also match the file that you have.
For some boards with a particular FlashROM configuration (e.g. some variants of a NodeMCU board) you may need to use the following command to deploy the firmware (note the -fm dio option):
Re: Someone with a GitHub account: Please add -fm dout to the docs
Posted: Mon Jun 28, 2021 9:52 pm
by finefoot
Re: Someone with a GitHub account: Please add -fm dout to the docs
Posted: Tue Jun 29, 2021 7:55 pm
by katesimon123
It's almost 6 months old.