The long version...
I downloaded esp8266-20200421-v1.12-388-g388d419ba.bin from https://micropython.org/download/all/. I then connected my esp8266 using this adaptor...
https://photos.app.goo.gl/pdFszF9zVVxFwU957
I have the jumper connected underneath to switch the esp8266 into flashing mode...
https://photos.app.goo.gl/76kywAjra4gBDTBY7
I used esptool.py to first erase the flash...
Code: Select all
$ esptool.py --chip esp8266 erase_flash
Found 1 serial ports
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: ec:fa:bc:5e:50:2f
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.0s
Hard resetting via RTS pin...
Code: Select all
$ esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect 0 esp8266-20200421-v1.12-388-g388d419ba.bin
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: ec:fa:bc:5e:50:2f
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 616424 bytes to 406806...
Wrote 616424 bytes (406806 compressed) at 0x00001000 in 44.3 seconds (effective 111.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Code: Select all
$ minicom -D /dev/ttyUSB0
Code: Select all
>>> fout = open("/test", "wt")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 19] ENODEV
>>>
Code: Select all
$ esptool.py --chip esp8266 --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 esp8266-20200421-v1.12-388-g388d419ba.bin
Am I doing something dumb?