Chat freely about anything...

User avatar
By Jexxio
#44708 A few days ago i was trying to use ESP-01 as shield for a UNO to use it with Blynk, a tutorial (http://www.instructables.com/id/Connect ... /?ALLSTEPS) said i need to flashed sdk 1.0 at 0.2 on the module, so i did, but i got no response from the module, now i want to get back to firmware 1.3.0.2 (sdk 1.3.0 at 0.40) i've download some files (http://espressif.com/en/products/hardwa ... /resources) i've found and flashed the last 3 files on the module following the readme.txt on the AT folder in esp8266_nonos_sdk_v1.3.0_15_08_08_0.rar, and still get no response from the module.

What could be wrong? do i really need to flash these three files on the module? is there a single file with the firmware to flash on the module?

PS: i'm using esptool running on OS X to flash the module.

Thanks for your time.
User avatar
By Badweasel
#47490 Sorry about the double post. I didn't realize I had to wait for moderation.

This is what I found out although I don't have it working yet. This page really explains it best: https://odd-one-out.serek.eu/esp8266-de ... date-os-x/

I still am only guessing about which set of files I should be flashing. Also once I flash one I get an error when I try to flash the second one. I don't think I'm resetting properly after the firmware flash. I haven't been able to get any of my bricked units to come back to life.

I will keep experimenting. But I wish the process was more clear and had more (english) documentation. There are so many options and since it's so easy to brick the thing there should be an easy way to get it back to the starting point.

I'm considering seeing if I can clone the firmware from the one unit I do have working and then flash that to the other units.
User avatar
By Badweasel
#47496 It's really annoying that I can't see my previous posts until a moderator approves them.

I figured it out and thought I should share here.

1. After 3 days of searching I finally found the 0.40 firmware. It is hosted here: http://www.electrodragon.com/w/File:V1.3.0.2_AT_Firmware.bin.zip

There might be newer better firmwares out there. But that is the version that I had before and for now it's what I want to use.

Once you have that firmware place it in same folder as your esptool.py

2. If you didn't already, follow the directions here to install python and esptool on the mac: https://odd-one-out.serek.eu/esp8266-development-kit-nodemcu-firmware-update-os-x/

For what I was trying to do (restoring the ESP8266 EPS01 to the firmware it had when I bought it) ignore most everything other than the part about installing python. At the bottom under troubleshooting he talks about restoring it so he can retry uploading the Node firmware again. This is on the right track. But with that firmware file above you only need to run one esptool command.

You can also just go to the esptool github page https://github.com/themadinventor/esptool and follow those instructions to install everything. At the end though make sure the firmware file above is in that same folder.

3. Wire it up to flash firmware. For me this was simply pulling GPIO0 down to GND.

4. in terminal do ls /dev/tty.* and find the serial port. Mine was /dev/tty.usbserial-A700fbUH

5. Then flash the firmware. cd in to the folder where your esptool.py and the firmware is located. Then do:

Code: Select allsudo python esptool.py --baud 921600 --port /dev/tty.usbserial-A700fbUH write_flash -fm dio 0x000000 v1.3.0.2\ AT\ Firmware.bin


of course replace my port with yours and the filename with yours. One good tip in terminal is that when typing in the code when you get to the v1.3... you can type part of the file name and hit TAB which will autofill in the rest. That will prevent you from having to figure out the escape codes for the spaces and what not. You could also rename the file but I like this better.

6. After you get this response:

Code: Select allesptool.py v1.0.2-dev
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0200
Writing 1044480 @ 0x0... 1044480 (100 %)
Wrote 1044480 bytes at 0x0 in 15.4 seconds (542.6 kbit/s)...
Leaving...


...unplug the FTID from USB. Remove the GPIO from GND. Plug the FTID back in. And the unit should be back the way you got it. Remember that the baud rate will probably be set back at 115200.

7. What I did after that was to set up all my defaults. For me using it with arduino I set the baud rate and my default wifi connection. But to avoid bricking it again for the baud rate I'm doing:

Code: Select allAT+UART_DEF=9600,8,1,0,0


Hope that helps someone.
User avatar
By thinkingste
#50274 Hi Badweasel,

This is the output of AT+GMR command on my ESP-01 module:
AT version:0.40.0.0(Aug 8 2015 14:45:58)
SDK version:1.3.0
Ai-Thinker Technology Co.,Ltd.
Build:1.3.0.2 Sep 11 2015 11:48:04

Is this the same as the file linked on your post?
I want to try the espduino but wanna make sure that I can reflash my ESP-01 when I'm done with it.

Thanks
Ste