igrr / esptool-ck

ESP8266 build/flash helper tool by Christian Klippel
GNU General Public License v2.0
367 stars 123 forks source link

Erase? #56

Open beicnet opened 7 years ago

beicnet commented 7 years ago

Using latest bin: esptool-0.4.11-win32.zip

But how I see, I can't erase my WeMos D1 mini

esptool.exe -cp COM7 -cb 115200 -cd nodemcu -ce
warning: espcomm_send_command: didn't receive command response
error: espcomm_erase_flash: FLASH_DOWNLOAD_BEGIN failed
error: Invalid argument or value after -ce (argument #8)

btw...but I can flash it without any issue.

nissimzur commented 7 years ago

I believe you can’t flash it too, based on the log you send


Kind regards, Dr. Nissim Zur Wireless long range IoT Artificial Intelligence platforms Wi-Fi, Bluetooth Smart, Sub GHz Consultant & Lecturer, Research IoT Projects

Tel +972 544 500635 Israel Tel +972 3 5716699 Skype nissim.test Email mailto:nissim@telnt.com nissim@telnt.com

web http://www.telnt.com/ www.telnt.com

Zoom https://zoom.us/download https://zoom.us/download

Zoom ID https://zoom.us/j/3717699114 https://zoom.us/j/3717699114

From: beic [mailto:notifications@github.com] Sent: Tuesday, July 18, 2017 1:31 AM To: igrr/esptool-ck Cc: Subscribed Subject: [igrr/esptool-ck] Erase? (#56)

Using latest bin: esptool-0.4.11-win32.zip

But how I see, I can't erase my WeMos D1 mini

esptool.exe -cp COM7 -cb 115200 -cd nodemcu -ce warning: espcomm_send_command: didn't receive command response error: espcomm_erase_flash: FLASH_DOWNLOAD_BEGIN failed error: Invalid argument or value after -ce (argument #8)

btw...but I can flash it without any issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/igrr/esptool-ck/issues/56 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADgOR3Ng6kqlA6xekJ8LmpusoiTh3Auvks5sO-CrgaJpZM4OannT . https://github.com/notifications/beacon/ADgORzuGnhyYp-LbfTYQuqn90oLC68uqks5sO-CrgaJpZM4OannT.gif

beicnet commented 7 years ago

@nissimzur Yes, I can, I flashed it a few times yesterday and today too, but can't erase, I thinks its related to timing.

nissimzur commented 7 years ago

Just send a bin file that has 0xFFFF all over.

www.telnt.com

From: beic [mailto:notifications@github.com] Sent: Tuesday, July 18, 2017 12:19 PM To: igrr/esptool-ck Cc: Dr. Nissim Zur; Mention Subject: Re: [igrr/esptool-ck] Erase? (#56)

@nissimzur https://github.com/nissimzur Yes, I can, I flashed it a few times yesterday and today too, but can't erase, I thinks its related to timing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/igrr/esptool-ck/issues/56#issuecomment-316007056 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADgOR06tKO7fT5FR2_rlTEUTbK434s11ks5sPHiFgaJpZM4OannT . https://github.com/notifications/beacon/ADgOR5uan3G09gE3uAoDoP-2Vk63kc2Bks5sPHiFgaJpZM4OannT.gif

pieman64 commented 7 years ago

I also found out that I can't erase but "flashing" is working of sorts. The flash is accepted but the ESP doesn't seem to reboot into running mode. Will do further tests. What I did find I was able to flash a general sketch to a "dead" ESP01 and then return to the Arduino IDE and now it's running with an OTA hostname of Lazarus. I have a few dead ESP07's and at least one dead WeMos so I will try to resurrect them too when I have time.

beicnet commented 7 years ago

I figured out, that it will erase, but also will freeze the command prompt window for a while, is it a bug?

pieman64 commented 7 years ago

Tried again today and erasing flash still doesn't work. Argument #8 error as per @beicnet Anyone have a real fix?

beicnet commented 7 years ago

@pieman64 Unfortunately, there is no explanation given for that issue yet.

nissimzur commented 7 years ago

The chip does not "know" if it flashes a bin file filled of 0xFFFF or a code. So, if you can flash 0XFFFF ok or other data, it must flash good apps bin file. If it does not run, you have a bug in your bin. Call my SKype nissmi.test I will help

beicnet commented 7 years ago

@nissimzur We are talking here about "erasing" chip with command line prompt