Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ESP8266 stuck on reset loop #1671
I am trying to upload new sketch using ESP8266 board manager, I use blink example and code works,i can see inbuilt blue led of esp blinking without reset on serial monitor.
But when i add Serial.begin or try to upload WifiServer sketch, program uploads and get stuck on reset
Can anyone please help me on this.
Module: Generic ESP8266 Module
VCC + RST +CHPD - 3.3V ( all connected to 3.3V)
I have used separate power supply with 10 and 100 uF capacitors on Power and Gnd
This is my connection till now, I have tried replace power supply
I have Arduino 1.6.5
I have checked my connections and still same error.
I have observed few things here -
a) ESP is very sensitive to power. I tried to upload sketches using nodemcu and esplorer, they have worked. While uploading the nodemcu firmware, power from FTDI chip was sufficient, but when I was trying to upload the sketch using esplorer with FTDI, it was not working. After I gave power to ESP with separate power supply and made common ground from FTDI and other power supply, then I only I could upload the sketch and I tried this separate power supply with Arduino IDE and ESP Board, it is still not working. When I work with separate power supply and FTDI serial comm,I have to connect Ground from FTDI with the ground of separate power supply.
b) Blinking sketch is working with Arduino IDE and Serial.Begin() is not, I have uploaded blinking sketch and it works without resets, but as soon as I add Serial.begin(115200) it is stuck on reset loop.
c) I can not make CheckFlashConfig this example work because it has serial printing that is not working. I have tried with configurations. Is there anyother way to check flash chip configuration may be I need to read chip number written on eeprom chip on esp.
After changing Flash size to 512K (64K SPIFF),upload is success but after reset this is error on serial port -
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
And now I am trying with different flash memory, others config are not giving this parse error but they get stuck
I will try with 9600 baud rate too now.
Looks like you need to erase flash completely and then try CheckFlashConfig with 512K option selected.
To erase the flash, you can use esptool (the same one which is used by Arduino to upload the sketch).
Hello i have problem with esp
i use arduino IDE for esp8266 programing .and i have esp-07
2-how many times esp could reset?
I also had this problem but it was completely unrelated to every comment I read here.
I wanted to share my experience. I may help some of you.
My problem was simple: I didn't know that some boards (like mine) are labeled terribly. I thought that the D7 was GPIO7 but it was GPIO13. Actually, there's no GPIO 7, and by me trying to use it, it was causing the board to reset!!!
I found this page that maps the horrible labels to something that makes sense:
BTW, before you say anything: YES, I'm completely new to this. I worked with an Arduino for a week and as everything worked perfectly, I wanted to jump to the ESP8266. The Arduino UNO (even the fake ones) is properly labeled ;)
Anyways, I'm not saying that this is THE cause of your problems, but that was MINE. After changing the code that I was uploading, it worked perfectly
Has anyone found a method for recovery a 12E module once it gets into an infinite reset boot loop?
I tried this www.pratikpanda.com/completely-format-erase-esp8266-flash-memory
I tried programming many sketch via Arduino causes the same reset loop.
The LUA also causes the same reset loop.
I tried the AT firmware to and that also causes the reset loop
Fresh Out Of Ideas now....
heres the link again
It shows how to use a 1Meg blank file to erase the entire flash using the ESP flash tool v.2.4
I am using 1.6.13 and 1.6.10 depending on which laptop I am using.
I didnt provide any code as it doesnt matter, no code will not work at all.
This doesnt work either. It reboots so many times per second. the Blue LED is on almost constantly.
Flashing the AT SDK will not work Flashes just fine, but reboot loops as soon as powered up.
I figure it has to be something to do with flash memory after reading the link below
You should use esptool to erase flash properly. You can find instructions around, i do not have then handy atm.
It comes with your esp install just gotta find it and run it manually or download it from its repo, also you may or may not have success with the exe and have to use the python version
I did all the install esptool.py and erased the flash every which way, still no joy.
One cause is the sketch's Global variables exceeding about 45% of dynamic memory, at least on a 1MB chip, like so:
Sketch uses 276611 bytes (30%) of program storage space. Maximum is 892912 bytes.
When I make sure the global variables stay at or below 45%, the hardware resets disappear. One way to do this is to remove unnecessary #includes in the sketch, the other way of course is to reduce the number of global variables declared in the sketch.
sorry, I do not have any idea how to run the esptool. could you please describe. Or can I erase the flash also by arduino IDE?
I got this replay:
\Documents\Arduino\hardware\espressif\esp32\tools>esptool -cp -cd ck -ce