-->
Page 1 of 1

ESP-01 reseting cause 2,4

PostPosted: Sun May 08, 2016 11:21 am
by Sweeris
Hi all, I am quite new to esp8266. I very recently ran into a problem. The ESP8266 ESP-01 will reset with cause 2 or 4. I doesnt matter what firmware/sketch I run.

I had no problems loading sample codes and trying my codes to run it. I would load about 4-5 codes to try out everynight for the past week or so. If it doesnt work I just modify the code and reload it. What is happening now is no matter what code I load on to the board I would get a reset every few seconds. The cause is 4 (I have seen 2 as well but rarely) and mode 3,6 or 3,7. My hardware has not changed since I had the board. I tried loading codes that didnt have problems before and it still resets every few seconds.

My current set up Arduino IDE 1.6.8 running on XP (I know it's an old laptop). CP2102 USB to TTL. When I first got the esp board I flashed it with nodeMCU and tried lua programing but didnt like it so I flashed it again with the lastest firmware from espressif.

What can suddenly cause the constant reseting of the board no matter what code is loaded? Even codes that used to work fine.
Tried reflashing the espressif firmware and loading my code with arduino IDE again. Still same result even with basic samples that used to work fine.
Can the system running the arduino cause the problem? It was starting to act stange while I'm coding and compling. Could it complie and upload a corrupted code to the esp?

Any help or advice would be great thanks in advance.

p.s. I am switching over to my desktop running win7 to try and rule out if the old laptop was the problem.

Re: ESP-01 reseting cause 2,4

PostPosted: Tue May 10, 2016 7:47 pm
by rudy
I don't know about the error code but I would bet that the power supply is your problem.

I had sporadic reset issues but not enough to point to anything. They all went away when I changed the voltage regulator I was using to a higher capacity device.

I had taken five esp-12 boards to work and watched the supply with a digital oscilloscope. I was able to see the seemingly minor drops. I tried a different regulator and the drops were much less. And like I said, my wdt resets went away.