-->
Page 1 of 1

Strange esptool behaviour

PostPosted: Mon Aug 03, 2015 6:05 pm
by Alexey Malashin
Hello,

I am developing my own firmware and faced with a strange behaviour with esptool.py. If I flash compiled firmware (0x00000.bin and 0x40000.bin) via this util (esptool.py) the device stuck in "boot(3,0)" and don't boot further. If I use flash_download_tool with the same firmware files everything are working fine - the device boots up and executes my code successfully.

So, how to troubleshoot this issue because I am writing code on mac and it is very inconvenient to use windows vm each time when I need to test new firmware.

Thanks for help!

Re: Strange esptool behaviour

PostPosted: Sat Aug 08, 2015 1:39 am
by projectgus
Hi Alexey,

There are some known bugs with esptool.py when flashing larger images (actually it's a bug in the esp8266 ROM SPIErase function, but it needs to be worked around in the flasher tool).

ie https://github.com/themadinventor/esptool/pull/53

Unfortunately the esptool.py maintainer hasn't been very active lately.

There is a workaround: Flash the higher address (0x40000) first on the command line, then the lower address.

Otherwise, igrrr's esptool-ck will also work: https://github.com/igrr/esptool-ck/releases


Angus