igrr / esptool-ck

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

Flashing binary not same result as with esptool.py #48

Open phinxy opened 7 years ago

phinxy commented 7 years ago

Cant flash micropython with esptool-ck, only works with esptool.py

Download micropython binary, any version. erase flash, then flash with esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266.bin the micropython will display a terminal prompt on the serial port and there will be a new wifi AP.

now erase flash and flash again, but with esptool-ck esptool -cb 460800 -bz 32M -cd nodemcu -cf esp8266.bin issue is, there's no functionality. no terminal prompt and no AP. the UART led blinks blue repeatedly.

I have tried on nodemcu board and on a personal circuit. I have tried all four -bm options I have tried 40 and 80 mhz flash speed. out of ideas.. saw someone else had similar issue further down on issue page.

phinxy commented 7 years ago

Maybe it is an issue with the firmware-combined.bin that esptool-ck cant handle. Did some testing but did not get any working REPL prompt. It does not help to use the micropython firmware.elf and then link yourself. It does not help to use the pre-linked 0x0 and 0x09000.bin and flash them.

devbis commented 6 years ago

I have the same issue with esptool-ck, but I can't use esptool.py from mac os x, because of timeouts while flashing. So the only usable way for me is flashing from a virtual machine with linux, using esptool.py