I am having a problem flashing the esp8266 in the Wemos d1 mini pro. This is what i have done;
First erase flash:
Code: Select all
~/Dev/esptool $ python3 esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py v2.5.1-dev
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 2c:3a:e8:1f:62:81
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
A fatal error occurred: Timed out waiting for packet content
Code: Select all
~/Dev/esptool $ python3 esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect 0 esp8266-20180511-v1.9.4.bin
esptool.py v2.5.1-dev
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 2c:3a:e8:1f:62:81
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Flash params set to 0x0040
Compressed 604872 bytes to 394893...
A fatal error occurred: Timed out waiting for packet content.
Any help is much appreciated.
Cheers.