Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmware needed #9

Closed
WheresWally opened this issue Dec 24, 2015 · 17 comments
Closed

Firmware needed #9

WheresWally opened this issue Dec 24, 2015 · 17 comments

Comments

@WheresWally
Copy link

Hi, can anyone provide a link to firmware to update the ESP8622-01 the little blue one.
Currently AT+GMR returns 2.2.89.2, what ever that is.
I think WiFiERsp says ver 21.
I would like to upgrade to ver 22.

@WheresWally
Copy link
Author

OK I was connected to something else...
This is what I actually see

AT+GMR
AT version:0.21.0.0
SDK version:0.9.5

@bportaluri
Copy link
Owner

Please take a look at this procedure: http://yaab-arduino.blogspot.it/2015/12/flashing-esp8266-firmware-arduino.html
I'm using Arduino Uno to flash the ESP but the procedure is similar.

@WheresWally
Copy link
Author

Great doco, thanks. I do have a dead arduino that I can pop the chip out and see if the serial works.
I did try this with my FTDI at 5V to a 3V regulator and resistor voltage divider, works well in terminal terminal and all the AT commands worked on COM12 at 9600. Ver 21

I followed the like, using the same versions of flasher and BINs as described there.
BUT when I did the GPIO0 to GND, powered up and tried to flash it, nothing.
FAILED showed up and now I can not even get the Blue LED to light on that ESP8266-01 now.

SO I placed my 3rd unopened ESP8266 in my circuit and it does work fine as it should so I might not try upgrading and failing a 3rd time.
2 ESP8266's are now in the DEAD bucket ...

@bportaluri
Copy link
Owner

I also had a lot of problems trying to flash ESP with my FTDI board. I bricked at least two ESPs but I was able to reflash them using the Aurduino Uno as described in my post.
I think that there are a lot of unreliable FTDI boards around...
Try flashing the broken modules using Arduino. Removing the chip from the Arduino board is non-destructive. I have done it more than 30 times during my experiments.

@WheresWally
Copy link
Author

I pulled out the old UNO board from the DEAD STUFF box. I removed the chip.
Hooked up the ESP8622 and Blue LED lights, and flickes when i send data to the ESP but nothing comes back from it, and that makes me think, that was the reason the board was declared dead 3 years ago.
It is a one-way serial port, so that isn't going to work.
Return to drawing board. I have soem new ESP8266-01 on order and i have also ordered a CP2102 USB To TTL/Serial Module UART STC Downloader For Arduino for $3 from Banggood so that might work.

@WheresWally
Copy link
Author

Grabbed another UNO board, this tine has the chip surface mount so i cant remove it, BUT i have soldered a jumper across the reset button to keep the ATMEL chip in reset mode. A link between RESET and GND works too.

And I can now do AT commands to the ESP8266 and it responds correctly.

Ran the FLASH downloader and it seems to grab the setting from the ESP8266 but i do not get a progress bar and nothing downloads it seems
See picture.
flasher fails

@WheresWally
Copy link
Author

OK, I do need to check the box beside the file to download ... or else nothing.
Now i gets a progress bar but it stops after about 10s and FAIL....

@WheresWally
Copy link
Author

If I do only one file at a time, I can do the blank.bin ok
the other 2 fail.
flasher fails at 10 percent

@bportaluri
Copy link
Owner

You haven't set the flash size to 8Mbit.
Raise the baud rate to 115200. This is not related to the default baud rate of the ESP module.
Sometimes also the order of bin files matters. See screenshot.
You can select the 4 bins and flash them in one shot. It should work.
flash_1 5_ok

@WheresWally
Copy link
Author

I have tried both so those 3 suggestions and still it stops at xxxxC00. only 3K into any file.
Sorry to be such a pain.

Does GPIO2 need to be connected to 3V?

@bportaluri
Copy link
Owner

I understand your pain. I also had many problems before but now I have a reliable process. I believe ESP is very sensitive to FTDI device and wiring. Use a reliable 3.3V power source and good UART.
I have no more suggestions...
Sorry

@WheresWally
Copy link
Author

A large decoupling cap allowed it to work once. There is a bit of spaghetti wiring going on here.
I have a PCB on the way, so that should fix some of these long, hanging, loosely connected wiring issues too.
So now i have one done at 1.5
1 fixed, 2 more "dead" ones to resurrect.

@bportaluri
Copy link
Owner

Great!
Where did you put the the capacitor and how big it is?
We are all learning here...

@WheresWally
Copy link
Author

10iF right before the regulator, only worked for 1 of the 3 dead ESP8266-01,
i tried also putting the 10uF across the ESP directly but still no flashing.
i should have looked closer to see if the blank,bin would flash.

@WheresWally
Copy link
Author

The other 2 are now alive. I now have 3 working ESP8266-01 at 1.5 version level.
This uses a cheapie Arduino UNO and I used the RESET to GND trick to allow the board to act as a serial interface.
I made another ESP8266-01 programmer, I have a small PCB that has the 5V to 3V regulator a capacitor or 2 and the RX resistor divider. the surface mount is a little tricky to hand solder but with some strong glasses and reverse tweezers to hold the part, it is easy enough.

Here is the setup in pictures.
p1270035
p1270036
p1270037
p1270039

esp8266_top
esp8266_bot

@WheresWally
Copy link
Author

I found that the size needs to be set to 4M for my hardware, when it was set to 8M after one or two RST commands it would go all screwy, spit out characters that were random.
The Flash Downloader does say under detected Info for my device, that the flash is 4Mb.
When I re-flashed at 4M the EPS8266 is now stable after about 20 resets.
I repeated this on 2 devices, same.

@bportaluri
Copy link
Owner

Thank you for sharing. I will use your tips for a 'troubleshooting guide for flashing ESP firmware'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants