Ok, I tried all the 512 options anyway I got the same response. I don’t understand the error though, it says:
java.io.IOException: Cannot run program "C:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266/tools/esptool/esptool.exe": CreateProcess error=2, The system cannot find the file specified
If I go to that directory there is no esptool.exe in the esptools directory I have this:
Ok well I tried esptool.py (for the first time) and I found it couldn’t connect for several commands. I tried:
C:\flash>esptool.py --port COM5 read_flash_status
esptool.py v2.0.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
C:\flash>esptool.py --port COM5 chip_id
esptool.py v2.0.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
esptool.py --port COM5 read_mac
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
C:\flash>esptool.py --port COM5 flash_id
esptool.py v2.0.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
C:\flash>esptool.py elf2image app.elf
esptool.py v2.0.1
Creating image for ESP8266...
C:\flash>esptool.py --port COM5 write_flash 0x00000 app.elf-0x00000.bin 0x40000 app.elf-0x01010.bin
esptool.py v2.0.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
C:\flash>esptool.py --port COM5 dump_mem 0x40000000 65536 iram0.bin
esptool.py v2.0.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
Your Ebay seller did a quick flash size check and sent me the details. Confirmed as 4M. Maybe you just have a rogue unit.
One of my Mini Pro’s has developed a fault on the USB port and the PC fails to recognise the device. Fortunately it had an OTA sketch on it so I can continue to flash whatever I want to it without the USB port.
This is one reason that the first thing you should do with a new ESP is flash an OTA sketch.
Update, I received another Wemos board from a different seller and I can upload to it with esptool just fine. The IDE gives the save error so I’m going to work on that.