Chat freely about anything...

User avatar
By platforma
#4026 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%.
Last edited by platforma on Fri Dec 05, 2014 2:43 am, edited 1 time in total.
User avatar
By platforma
#4029 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 :)