-->
Page 1 of 1

wemos d1 mini - bricked(?) after esptool flash

PostPosted: Sun Jun 25, 2017 3:47 pm
by dsvilko
I've been using this wemos board with arduino IDE without any problems. After I've tried to flash the deauth.bin firmware with esptool, I can no longer get it to flash anything.
I am on linux so I am limited to esptool.
Some things work:
Code: Select all./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:
Code: Select all./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:
Code: Select allwarning: 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.

Re: wemos d1 mini - bricked(?) after esptool flash

PostPosted: Sun Jun 25, 2017 8:30 pm
by QuickFix
dsvilko wrote:
Code: Select allwarning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader
error: espcomm_upload_mem failed

This looks like the flash-port (GPIO0) is not being triggered at reset needed to initiate firmware upload.
Please make sure you've selected "Wemos D1" under "Tools" -> "Board" in the Arduino IDE.
Also: I don't think the ESPTool supports the automatic flash-thing the Wemos board has.

You might want to manually force GPIO0 (pin D3 on the board) low (this initiates firmware upload mode) after reset. :idea:
So:
  • Connect WEMOS to USB-cable
  • Place a lead between D3 and GND
  • Press the small reset button
  • Remove lead to D3
  • You *should* be able upload firmware
If, by any chance, you have the 1-Button shield, you can use that instead (since it's using D3 / GPIO0). ;)

Re: wemos d1 mini - bricked(?) after esptool flash

PostPosted: Wed Apr 25, 2018 1:31 pm
by gabor szabo
Hello,

For those who also have errors with wemos D1 r2 (model v2.1.0):

I tried to do the
- Connect WEMOS to USB-cable
- Place a lead between D3 and GND
- Press the small reset button
- Remove lead to D3
- You *should* be able upload firmware
way but it didn't work to me.

My solution is that:
- Remove USB
- Connect D3 to GND
- Plug in USB
- Run upload in Arduino IDE with 115200 baud.
- disconnect D3 from GND

I hope it helps for somebody!

Re: wemos d1 mini - bricked(?) after esptool flash

PostPosted: Mon Jan 28, 2019 4:53 pm
by Buffer
gabor szabo wrote:My solution is that:
- Remove USB
- Connect D3 to GND
- Plug in USB
- Run upload in Arduino IDE with 115200 baud.
- disconnect D3 from GND

I hope it helps for somebody!


Yes, thank you.
After a lot of internet searching and other suggestions, this solution help me recover two Wemos D1 Minis.
Also, pressed the Reset button just after plugging in the USB.