Skip to content

Commit e10a044

Browse files
finefootdpgeorge
authored andcommitted
docs/esp8266/tutorial: Change flash mode from dio to dout.
For some boards, even -fm dio is too fast and they require -fm dout. This commit links to the esptool wiki about available flash modes and changes dio to dout.
1 parent cd506d6 commit e10a044

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/esp8266/tutorial/intro.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ PC. You may also need to reduce the baudrate if you get errors when flashing
109109
that you have.
110110

111111
For some boards with a particular FlashROM configuration (e.g. some variants of
112-
a NodeMCU board) you may need to use the following command to deploy
113-
the firmware (note the ``-fm dio`` option)::
112+
a NodeMCU board) you may need to manually set a compatible
113+
`SPI Flash Mode <https://github.com/espressif/esptool/wiki/SPI-Flash-Modes>`_.
114+
You'd usually pick the fastest option that is compatible with your device, but
115+
the ``-fm dout`` option (the slowest option) should have the best compatibility::
114116

115-
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20170108-v1.8.7.bin
117+
esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dout 0 esp8266-20170108-v1.8.7.bin
116118

117119
If the above commands run without error then MicroPython should be installed on
118120
your board!

0 commit comments

Comments
 (0)