Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By Alexey Malashin
#24940 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!
User avatar
By projectgus
#25335 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