Chat freely about anything...

User avatar
By gerardwr
#4571
conradjohnson wrote:When you mention 'ESP-1' from electrodragon, what are you referring to?
Their version of the esptool.py? ( Do you have a link?)
Oh, you meant the hardware version. Right on. Thanks, I'll give this a go and report back.


Yep, I meant the HW version, it's an ESP-01 module, but at Electrodragon it's called : ESP8266 WI07c Wifi Module
Here's the link: http://www.electrodragon.com/product/esp8266-wi07c-wifi-module/
User avatar
By conradjohnson
#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!
User avatar
By gerardwr
#4579 You're welcome, have fun.

Here's some info if you intend to build your own toolchain for the Mac. Have not tried it myself yet, i'm using the nodemcu Lua interpreter for my prototyping.
http://www.esp8266.com/viewtopic.php?f=6&t=792&p=4470&hilit=mac#p4470
Let us know if you make something interesting!