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
[Solved] ESP8266 12E keeps rebooting (rst cause:2, boot mode:(3,6)) #3241
Comments
Same wiring same all, the problem starts if I change the function "getkey" to "waitForKey" I don't know why, the function waitForKey stops the program and wait until a key is pressed, not like "getkey" that keeps the programme looping |
Include a delay in the routine. That would allow background tasks that need to run. You can not have long blocking code with the ESP8266. It will cause the behavior you see. |
Yes I noticed if I keep pressing buttons from the keypad the board doesn't reboot until I stop for few seconds. |
If you load the original sketch, is all ok then?
|
Pin 10 is used to connect flash memory inside the esp12 module, I doubt it can be used for other purposes. |
As you can see I kept the same wiring, even if I used the pin 10, the first code works fine but the second one keeps rebooting if I don't press buttons quickly, the problem appears if I change the function I mentionned above. I've read about a reset period that can be modified, but I don't have further information about it. If you know please tell me, thanks. |
Ok, sorry, missed that part.
|
Oh, I'm a beginner, I didn't understand what you meant... |
The codes are : 0 -> normal startup by power on I found that loops need a yield() to be ESP8266 friendly, to feed the watchdog before it triggers. |
Or rather,
:) |
If it doesn't block the program, it would be like the function getKey() and this one make a little mess in my program, I really want the program to wait like 5s or more in this step before looping again. I want the program to wait a key then store it into a char c1, then wait another key and store it into char c2 ... So I can do other things later. If I use the function "getkey" it mess with my program: I can only store one char, because the program doesn't wait. (to explain my little idea). And how can I modify the library if I want to test your solution. Thanks guys. |
I downloaded that library by using the "library manager" method, where can I find the cpp file so I can modify it? |
It is in the folder under your sketchbook location, so probably Documents/Arduino/libraries/Keypad/Keypad.cpp. |
No didn't find it there. |
Hello everyone, You guys thanks so much you're really helpful. |
If we are calling the yield() function in the "Keypad.cpp" file should we not have some code associated with it too what i mean is |
You can consider that system is doing this:
|
ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1384, room 16 Hello guys ,anyone help me , i have used Esp12e after uploading iot code its continuesly rebooting ,not connect mqtt ,what to do? How to solve |
@moorthi5 please create your own issue with all the required details. |
@pieman64 i was doing home appliance control threw google assistant using iot platform ,i was used Esp12e board ,after uploading code ,wifi connection properly conneting local hotspot ,but mqtt not connecting ,, board working properly while see serial monitor following cmt only continuously reboot load 0x4010f000, len 1384, room 16 Where is problem i can't find ,board or code? |
@moorthi5 there are lots of reasons for a device reset and that's why you must create a NEW issue with all the required details. |
mine was also giving the same error in the serial monitor but kept failing to upload, I was about to give up and just throw it away when I found this page, I fixed it and wanted to share in case someone else has a esp8266 that always fails to download no matter what you try, reboot power down another port hit flash button, nothing worked. sooo.. I hooked a wire to ground and touched every pin (BUT vin and 3.3v) as that would be stupid. this somehow "fixed" my device for some reason. I suspect it was one of the 2 reserve pins. if anyone knows why this desparate measure fixed my bricked node ecu please chime in! update, a program caused this semi bricked state, this time I did one pin at a time and found ground to CMD resets it and lets you upload again! yay |
Adding a 1ms delay worked for me. |
Where did you add it? |
Just put this into
|
I did it and it worked! |
What the heck it also works for me |
:)) Idk |
Hello,
I want to use my ESP8266 12E with a keypad, I wired it this way:
1-----D0
2-----Rx
3-----SD3
4-----D3
5-----D4
6-----D5
7-----D6
8-----D7
I didn't use the D1 and D2 because I want to add an LCD I2C later.
Well, first I tried this code, same wiring it works perfectly:
But later in my project I will need to use another commands and somethings, so I used this one, very similar
But when I upload this on the board, the board starts rebooting, and I get this in the serial monitor
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
I'm powering it from my computer, and as you can see all I did is changing a function and add a variable
Thanks
The text was updated successfully, but these errors were encountered: