-->
Page 1 of 3

[solved] Failed to write to target flash using esptool

PostPosted: Fri Dec 05, 2014 1:19 am
by platforma
Hi!

I've spent over a couple of hours on this now and can't find the reason...
I can use the esptool.py to read the flash to a bin but not write back to it.

All I get is:
Code: Select allException: Failed to write to target Flash

GPIO2 is high, GPIO0 is low, external power from a 3.3V 1A rail, USB to UART via buspirate set to 115200 baud.
Using the "cloud update" binary from electrodragon post, also tried some of the latest updates.
Doesn't even move past 0x00000 (0%) and fails straight away.

Any suggestions would be very appreciated! :)

Update
Interestingly enough, the XTCOM UTIL workes in my windows emulator. But still, prints "Failed to leave Flash" at 99% and at times doesn't even go past 0%.

Re: Failed to write to target flash using esptool

PostPosted: Fri Dec 05, 2014 2:42 am
by platforma
So only managed to get it to flash from windows using the XTCOM tool. Although had to repeatedly turn the module off and on to get it to start flashing, it would fail randomly.
Still no idea why it didn't work with esptool.py

Figured out that the "Failed to leave Flash" at 99% is a common thing.
After setting the terminal map to CRLF i could use the module again :)

Re: [solved] Failed to write to target flash using esptool

PostPosted: Fri Dec 05, 2014 3:06 am
by gerardwr
There is a later version of esptool that runs to 100 %.

Re: [solved] Failed to write to target flash using esptool

PostPosted: Fri Dec 05, 2014 3:34 am
by platforma
git cloned the latest version from https://github.com/themadinventor/esptool, didn't work...