- Thu Dec 11, 2014 12:27 pm
#4578
Allright, reporting back my learnings in case anyone else is trying this with a mac.
Had the esptool.py and the .bin file (renamed to '922Firm' for easy entry) in the same directory. Used this command:
sudo ./esptool.py --port /dev/cu.usbserial-A702PYV3 write_flash 0x00000 922Firm.bin
and got this on the traceback:
File "./esptool.py", line 22, in <module>
import serial
ImportError: No module named serial
Looks like I didn't have a serial module for my mac for python...
So I followed the instructions on this page to install pyserial (a serial module library) -
https://learn.adafruit.com/arduino-lesson-17-email-sending-movement-detector/installing-python-and-pyserial - I previously tried pip to install pyserial and that still didn't seem to fix the problem. The above instructions did.
Reran the command:
sudo ./esptool.py --port /dev/cu.usbserial-A702PYV3 write_flash 0x00000 922Firm.bin
And results:
Connecting...
Erasing flash...
Writing at 0x0007ec00... (100 %)
All is working well now. Issuing AT commands and connecting like a boss now.
Will be able to flash all of my others now and get started on my projects with these.
Thanks so much for the help!