We have tested to make Cactus Micro as ESP8266 programmer. It works very well. To do the work, you need make some jump wires.
Steps for hacking
- For upload firmware to ESP8266, we need more stable connection for UART. So change the serial port to hardware serial port first.
- Add a jump wire ESP8266 GPIO0 -> Cactus Micro D5 , See the picture below. The pin D5 will pull down GPIO0 for upload firmware.
- Upload the sketch to Cactus Micro
Done! We tested”esptool” under OS X. It works like a charm.
Trying to do as described with sudo ./esptool.py -p /dev/cu.usbmodem14341 -b 115000 write_flash 0x000000 ai-thinker-0.9.5.2.bin
Writing at 0x00000400… (0 %)
Traceback (most recent call last):
File “./esptool.py”, line 536, in
File “./esptool.py”, line 195, in flash_block
struct.pack(‘<IIII’, len(data), seq, 0, 0)+data, ESPROM.checksum(data)) != “”:
File “./esptool.py”, line 106, in command
raise Exception(‘Invalid head of packet’)
Exception: Invalid head of packet
I just tried the step again and it works. The command line is:
./esptool.py -p /dev/tty.usbmodem1421 write_flash 0x0 ai-thinker-0.9.5.2.bin
What md5 checksum is the ai-thinker-0.9.5.2.bin?
Tried your command, still the same. Md5 is right. Which esptool did you use? https://github.com/themadinventor/esptool this one?
Yes. I use same esptool. But I use OS X.
Can you show me how did you wires the line?