@@ -54,7 +54,7 @@ device before putting on new MicroPython firmware.
5454
5555Currently we only support esptool.py to copy across the firmware. You can find
5656this tool here: `<https://github.com/themadinventor/esptool/ >`__, or install it
57- using pip::
57+ using pip (at least version 1.2.1 is required) ::
5858
5959 pip install esptool
6060
@@ -69,7 +69,7 @@ Using esptool.py you can erase the flash with the command::
6969
7070And then deploy the new firmware using::
7171
72- esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=8m 0 esp8266-2016-05-03-v1.8.bin
72+ esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-2016-05-03-v1.8.bin
7373
7474You might need to change the "port" setting to something else relevant for your
7575PC. You may also need to reduce the baudrate if you get errors when flashing
@@ -80,7 +80,7 @@ For some boards with a particular FlashROM configuration (e.g. some variants of
8080a NodeMCU board) you may need to use the following command to deploy
8181the firmware (note the ``-fm dio `` option)::
8282
83- esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=8m -fm dio 0 esp8266-2016-05-03-v1.8.bin
83+ esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-2016-05-03-v1.8.bin
8484
8585If the above commands run without error then MicroPython should be installed on
8686your board!
@@ -138,6 +138,8 @@ after it, here are troubleshooting recommendations:
138138* If lower baud rate didn't help, you may want to try older version of
139139 esptool.py, which had a different programming algorithm::
140140 pip install esptool==1.0.1
141+ This version doesn't support ``--flash_size=detect `` option, so you will
142+ need to specify FlashROM size explicitly (in megabits).
141143
142144* The ``--flash_size `` option in the commands above is mandatory. Omitting
143145 it will lead to a corrupted firmware.
0 commit comments