I am on linux so I am limited to esptool.
Some things work:
./esptool.py --port /dev/ttyUSB1 chip_id
esptool.py v2.0.1-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Chip ID: 0x0008e6e8
Hard resetting...
but I can't get it to erase flash:
./esptool.py --port /dev/ttyUSB1 erase_flash
esptool.py v2.0.1-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
A fatal error occurred: Timed out waiting for packet content
or flash a new firmware through Arduino IDE:
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader
error: espcomm_upload_mem failed
Any ideas? It stopped working immediately after flashing with the esptool.