-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
ESP-12E troubleshooting (rst cause:2, boot mode:(3,6)) #2414
Comments
Have you connected some new devices to GPIO 0, 2 or 15? They control the boot-mode of the ESP and if some device you've connected pulls the wrong pin high or low it'll change boot-mode from normal to something else. See https://zoetrope.io/tech-blog/esp8266-bootloader-modes-and-gpio-state-startup |
I fundamentally don't use these pins in the project. Pin 15 is pulled down, pin 2 is pulled up, in normal mode pin 0 is pulled up, when I flash new firmware, I connect pin 2 to GND. There are no any devices connected to this pins. |
Well, the obvious next step would be to flash the simple "blink LED" - example sketch and see if it works -- you don't mention if you've tried that or not. |
I flashed Blink example and having the same output: load 0x4010f000, len 1384, room 16 |
Did you run blink with the other hardware connected or everything disconnected? |
I have some news regarding to this issue: the module has started to work, but very unstable. Ie yesterday it has started and worked full day. Then this error again. It seems that it occurs at all accidental. The most important thing is that I do not change a sketch and wiring, everything remains as before. It's like some kind of magic (( @supersjimmie I tried to flash Blink example with disconnected peripheral. And in addition to described ablove message it gives me stack trace:
But that's just matter of chance: I can get this stack trace even with peripherals connected, and can not get even when it's disconnected. Believe me, I tried different power supplies, testing them on an oscilloscope, added a capacitor 600 uF as near as possible to the board and I tried absolutely all combinations of pins 0, 2 and 15. I even replaced the board to the other. All to no avail. I'm in a state of frustration. |
What voltage regulator are you using? How far from the regulator to the ESP module? What are you using for interconnections? I have found that capacitance alone does not deal with the dynamic current requirements. I suspect that you are having power issues. |
ok, in order: I tried to replace the power supply, but nothing has changed. Then, I tried to configure the voltage regulator to 3.7V, and ESP started! I do not know for how long, but if this problem is over, I'll write about it here. |
I think that the 300mA from your DC power adapter is really "on the edge"... |
I was a little concerned about that. But with a switching supply the current available at the output would be higher. The switcher acts more like a transformer and does a power conversion. A linear regulator just consumes the voltage difference and does not give any current gain. |
7.5V at 300mA would equal 2.25W of power and just assuming roughly a conversion-efficiency of 90% that'd result in 3.3V and ~600mA max current, if I understand things right. I think I read somewhere that the ESP8266 can peak at a little over 200mA, so that should still be plenty for it. That does make me wonder why his ESP would only turn on at 3.7V, not 3.3V -- there must be something else at play. |
@supersjimmie, it seems like you are right. I replaced this power supply with 24v@500mA and ESP works corectly and starts every time. It was extremely difficult to determine that the problem is in power. I am very astonished, because this chip is positioned as super energy efficient, capable of operating from a small CR2032 battary for a years. |
I am having the same problem when I connect the Adafruit GSM FONA808. But it works fine when I run other programs. |
@architmuchhal12 |
I was also having this issue powering my device (wemos D1 Mini) directly from an 18650. It seems that the problem was that as the battery runs down it creates a power problem as RudyFiero above correctly suspected. Replacing the single 18650 with a "powerbank" that puts out a constant 5V solved the problem for me immediately. |
I had the same error load 0x4010f000, len 1384, room 16 |
Hi folks, I encountered the same issue with boot modes(1,6) and (3,6). Finally I found the culprit and the cause for having the effect with the boot modes. The exact reason for the continues boot mode errors shown I can;t give, but in my project it was some code failing in a class initialization of a global instance which runs before setup() is called. So my recommendation if you encounter the same issue: Cheers, |
@KlausNZ you can't have global classes that on construction depend on on other global classes being already constructed. The order of construction of global classes is non-deterministic in C++ (it depends on the order that Translation Units are linked, which can't be controlled). |
Something weird is happening recently.
|
Hi, I bought a few D1 Mini Lite, and every one is only responding with uart @74880 and this message : ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x40100000, len 2592, room 16 I tried to flash NodeMCU, I have no errors on esptool, but nothing change : I still have this issue, and NodeMCU is not loaded |
Also my boards.... tried different ESP's, power supplies, etc... Looks like there might be a virus in IDE? Any success solving this? |
i have same problem ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1384, room 16 |
@damo1023 I have one board that used to work in QOUT-mode, but all of sudden it now only works in DIO-mode, so I would recommend you try changing the board to a generic ESP8266, then test if changing the flash-mode to something else works. (DOUT-mode is the slowest and most compatible one, so I'd start with that.) If it does, then I suppose the issue needs further investigation. |
In my case cause of resets and exceptions was FT232 TX line to ESP. |
edit: reformat I have a UNO+WiFi R3 ATmega328P+ESP8266 32Mb board (with 8 dip switches). I tried many times to flash the firmware without success using the esptool.py. By setting sw7 to off, running miniterm.py and pressing reset button I received the same message as matiascolon e.g "ets Jan 8 2013, rst, cause:2, boot modes:(3,6)" followed by the other lines and stopping at "ets_main.c". Following the info on "https://www.bountysource.com/issues/47667636-esp-link-on-a-robotdyn-atmega2560-esp8266" I d/l esp-link v3.0.14 and reflashed the firmware. This failed as before until I added the option "-fm dio". Now when I connected via miniterm.py and hit RST I see the result:
The sequence to flash it was:
Using my phone I can now (at last see) a wifi station called "ESP_809A70". |
I have same error |
This worked for me! By default, flash mode DIO is selected in the Arduino IDE. I have an ESP-01S, so change flash mode to DOUT and just worked great. Thanks. |
Hi, I recently encountered this problem when designing open source hardware.
The reason for this problem is that the current of the power supply is insufficient.
I hope this will help you. |
Hi guys, void setup() { // Wifi startup, should be here in the beginning of setup, further down it caused periodically restarts // Capacitive Sensor for detecting door open-close/ void volatile connectWiFi (){ Serial.println(); /* Explicitly set the ESP8266 to be a WiFi-client, otherwise, it by default, WiFi.mode(WIFI_STA); while (WiFi.status() != WL_CONNECTED) { Serial.println(""); // Try and create TCP connections |
i started the connection to wifi again before to use the http.begin(). it worked for me |
Some details I found:
|
thank you, it works greatly!! |
I dont think anyone get in rediculous situation as me, but if you have declared iostream lib. in cpp or header file, lets remove it first!!! |
@hassin23ayz It worked, thank you |
I am facing the same issue. I accidentally pressed "reset" button on the board while uploading was in progress (nearly 60%). Now when I am connecting the board to my PC, its detected. I am also able to upload the sketch to the board. But its misbehaving. Inbuilt LED is constantly flashing and I see the mentioned error on serial screen (Baud Rate 115200 / NL&CR). |
thanks. It worked |
Have no solution? ets_main.c " Nothing more. I have clicked "Erase" button on ESP8266 Download Tool V.3.6.8, and the prompt shows this message:
|
I solve this problem when download older version of the esp8266 to version 2.5.0 and everything works again. |
I am using ESP8266-12 and 2.6.3 core. Oh, and having downloaded the GH latest head ( v4.1) , I still needed to add the ICACHE RA ATTR in front of all the ISR functions. |
which programmer? |
I had the same issue and resolved it. I recalled reading in recent months that there were some changes and enhancements in how interrupts ( ISR s ) were handled as a result of the ESP8266 Arduino Core development over time. I revisited my interrupt code and had to add ICACHE_RAM_ATTR in. There is a good read here on stackoverflow about it: https://stackoverflow.com/questions/58113937/esp8266-arduino-why-is-it-necessary-to-add-the-icache-ram-attr-macro-to-isrs-an and also the general ESP8266 Arduino Core reference library here https://arduino-esp8266.readthedocs.io/en/latest/reference.html My boards are both the Lolin Wemis D1 Mini Pro 2.0.0 and Lolin Wemis D1mini that I was experiencing this on. |
I had the same problem, solved it with hassin23ayz 's method: |
The problem i had (rst cause:1, boot mode:(3,7)), was laid down in my code where i defined an ISR which encountered the code memory and due to that , esp rebooted continuously. |
this is due to long processing on loop while acting as webserver... |
Fine problem solve a while ago thanks for the awnsers sorry for not responding
Outlook for Android<https://aka.ms/ghei36> downloaden
…________________________________
From: jhalak333 ***@***.***>
Sent: Saturday, March 27, 2021 9:54:20 AM
To: esp8266/Arduino ***@***.***>
Cc: k-byte-rgb ***@***.***>; Comment ***@***.***>
Subject: Re: [esp8266/Arduino] ESP-12E troubleshooting (rst cause:2, boot mode:(3,6)) (#2414)
this is due to long processing on loop while acting as webserver...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#2414 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQLDSIJ37L2VUXKZYB5MSILTFWMLZANCNFSM4CNEQWYQ>.
|
To everyone having the same Problem as the OP. I had it too. The Problem is, that the ESP8266 crashes during the rotation of the stepper motor because it can not handle the WiFi tasks that continuisly run in the background while only having a few microseconds delay. I added the yield(); function to my rotation loops and the crashes are gone. At least that was the Problem with me, since we are basically doing the same thing and i had the problem i assume this would be the solution for this case too. |
Try to upload a blink code on Arduino Uno , then switch to ESP and upload the code again , I had the same problem and it solved |
It seems to work But it's too ugly to be forced to do it everytime, especially if we must do dynamic configuration each time! Why just does it happens? |
me dio ese error: ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 3460, room 16 tail 4 chksum 0xcc load 0x3fff20b8, len 40, room 4 tail 4 chksum 0xc9 csum 0xc9 v00041c40 ~ld lo que hice fue eliminar la librería de LiquidCrystal_I2C y funciono de nuevo con otra librería |
I have same issue. ESP8266 in restarting loop. I try this ICACHE_RAM_ATTR and working :) you must add before setup() and same name your method like this void ICACHE_RAM_ATTR door();
|
Same problem here. Thank you Klaus! Ciao |
It works. But I just wonder, why? |
I have the same problem Nothing in this thread resolve the problem It won't happen when upload blink or similar simple projects, but anything fancier than this would cast debug messages Debugging information that just don't say anything about the problem... |
Basic Infos
Hardware
Hardware: ESP-12E (ESP8266MOD)
Core Version: 2.3.0
Description
Hi. Previously, I was able to flash ESP through Arduino IDE. The code worked well, although very often controller restarted with no reason. "... wdt reset ..." has been written to the COM port. I tried to turn off the watch dog timer with the help of ESP.wdtDisable() or simply to increase the timeout with ESP.wdtEnable(65535). This partly solves the problem, but restarts still have a place to be.
But now, after a regular flashing I get this output in COM port:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld
And that's all. I tried to change the module in the IDE to "ESP8266 Generic", and to change the size of the memory, but no result. What could be the problem? And how to fix this behavior?
Settings in IDE
Module: NodeMCU 1.0
Flash Size: 4MB/3MB
CPU Frequency: 80Mhz
Upload Using: SERIAL
Sketch
The text was updated successfully, but these errors were encountered: