-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
DEEPSLEEP_RESET gets stuck after a few resets #796
Comments
I'm having the same problem. My sketch goes to sleep for 60 seconds after taking temp/humidity readings etc via I2C. It used to work ok before system upgraded to most recent commit. First two restarts work ok but always hangs on third restart. Debug messages
Connecting to SKYE3E0B rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) Connecting to SKYE3E0B rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
I'm having a "similar" problem. In my case it happened with ESP.restart().
|
Same here, after commit 55289a4 this problem starts |
Same here, hangs after 2-3 reboot, just after the 'entry' log line |
Exactly the same problem for me as well with an unmodified "TimerWakeUp" example sketch. |
I would suggest an issue to be opened in IDF (if one does not already exist). It is surely something in that update. |
I reset the core version back to https://github.com/espressif/arduino-esp32/tree/95123681d5340defa24472e441758fba88e3a34f as was suggested in Issue #801 and my sketch with a 20 minute deep sleep that would hang after an hour or so (as described above) now has been working properly for 2 days. |
Any patch for deepsleep issue ??? |
I can do the test with older version as well, but I am not very familiar
with git.
I guess the following commands on debian must be adapted:
git clone https://github.com/espressif/arduino-esp32.git esp32
git submodule update --init --recursive
What is the way to follow?
…On Wed, Nov 8, 2017 at 10:28 AM, cristianhumelnicu ***@***.*** > wrote:
Any patch for deepsleep issue ???
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#796 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFozOX29RaB7vvCxqu1svKkNz1Z3ZzUpks5s0XQ7gaJpZM4QLpWy>
.
|
thank you! it works perfectly with this version.
…On Thu, Nov 9, 2017 at 12:22 PM, David ***@***.***> wrote:
@etimou <https://github.com/etimou>: what I did: just apply a checkout
after de clone operation, with a version number before 55289a4
<55289a4>
on the esp32 directory: git checkout 9512368
<9512368>
running without reboot hangs with this release for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#796 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFozOaG5qnBe3CGMlcg3EoGHXNa1naGYks5s0uBogaJpZM4QLpWy>
.
|
I've run the deep sleep example for more a little bit more than one hour
with no problem. It think the counter was around 800.
…On Thu, Nov 16, 2017 at 9:48 AM, cristianhumelnicu ***@***.*** > wrote:
@etimou <https://github.com/etimou>, @degehi <https://github.com/degehi>
Could you tell me what is the maximum time you've been able to keep ESP32
in deepsleep? All I've done is a deepsleep time of 30 minutes ... if it's
more than 30 minutes it's not waking up again ffrom deepsleep...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#796 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFozOWrfh46w_nd7VBMllU7jngBq4QIWks5s2_bXgaJpZM4QLpWy>
.
|
@etimou Do you use the deepsleep example from Arduino or other scatch ? |
I am using my own program based on the Arduino deepsleep example an it sleeps for 20 minutes and then sends sensor data to ThingSpeak. It has run for several days. When I get a chance I will change the deepsleep to one hour and see if it continues to work. |
I'm using the Sparkfun esp32 thing and am having similar issues however its not just sleep, i'm getting hanged reboots when pressing the reset button too, not just in the TimerWakeUp sketch. I also find that I get about 5 reboots before a hang when RTC_DATA_ATTR int bootCount = 0; is intialised however if I comment it out and all references to it then I get about 30-40 reboots before a hang. Using latest with 80a7d60 commited 6 days ago |
Using the MHET Live D1 mini-kit. Both the reset button and ESP.restart() have the issue. |
I am using the deep sleep example from Arduino, not modified.
…On Thu, Nov 16, 2017 at 10:11 PM, Cellie ***@***.***> wrote:
Using the MHET Live D1 mini-kit.
Can confirm the problem with hanging reboots.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#796 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFozOXOqiAkCWZX2x1qxgTveoh2lZZQdks5s3KUJgaJpZM4QLpWy>
.
|
I'm having the same problem (with latest Arduino - idf): I set up a deep-sleep / wake timer for N seconds (5, 2 or even 1 second) and after a low number of wake-ups (2 to 6 times of normal waking up), ESP32 hangs. So after reading the above posts, I am waiting for the bug to be crushed (on IDF, it seems). Regards, Enrique. |
There is a commit that fixes it on IDF espressif/esp-idf@abacf8d seems like just wait @me-no-dev bump the version for Arduino IDE =) |
need to check if @nkolban has updated the BLE lib and find some time to put a new release. |
That is job number 1 starting now |
@me-no-dev Could you estimate when any fix update for deepsleep and reset issue will be availble ? |
I have updated Arduino. Can you pull the latest changes and give it a try? |
@me-no-dev I already did .. using deepsleep example with timer wake-up and put to be 60 min in deep sleep . Until now have 12 deepsleep cycles without problems for 1h deepsleep But i still have one problem .. I put another 3 x Wroom32 (Rev.1) to sleep 2h , 6h and 8h ant all of them standing in sleep about 45 minutes and after that wake up . All i've done with success is 1h sleep time with first Wroom32 Could u guide me what is supouse to do for long time deepsleep i mean 8h - 24h ? Thank you very much! |
@cristianhumelnicu please post a minimal sketch that shows that issue and I will run it here on a few boards to see the result |
@me-no-dev Is the standard deepsleep example and i use Wroom32 Silicon Rev.1 chipset #define uS_TO_S_FACTOR 1000000
#define TIME_TO_SLEEP 7200
RTC_DATA_ATTR int bootCount = 0;
void setup(){
Serial.begin(115200);
delay(200);
++bootCount;
Serial.println("Boot number: " + String(bootCount));
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
Serial.println("Setup ESP32 to sleep for every " + String(TIME_TO_SLEEP) + " Seconds");
Serial.println("Going to sleep now");
esp_deep_sleep_start();
}
void loop(){
} After last update is working for 1h deep sleep, but if I set TIME_TO_SLEEP>2h , the microconttroler exit from deep sleep in 45min Until last arduino-esp update never did exit from deepsleep for TIME_TO_SLEEP > 30 min I did try to define TIME_TO_SLEEP as unsigned long with same results Thank you ! |
I have no logs. It only goes to sleep after random number of cycles and never wakes up. Am I supposed to do something to get the logs ? |
I'm having the same problem. But interestingly only when I'm on battery power. So I think my code is OK and the deep sleep and wake up working properly - but only on stable voltage from USB port. I have a NodeMCU ESP32S module and I'm using Arduino to make and sync my code the the ESP. And of course I'm using the recent Arduino-ESP32 libraries 1.0.4. You can find my code here https://github.com/miniAirQ/miniAirQ Now I'm fighting with ghosts because I can not see any logs or messages while I'm on battery power (no serial monitor). I made LED blinkings in proper part of my code and then it was turned out that after 3-4 deep sleep cycles the reboot process stucked somewhere. Do you have any suggestions what to follow, how to create a persistent log or any other thing to figure out the exact problem? Battery powering is important to me so the answer "switch over to a stable 5V" will not make me happy. Thank you very much. |
rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) I am getting this error in my esp32 devkit v1 |
Please don't hijack issues. Your problem clearly has nothing to do with deep sleep. |
I am not hijacking your issue,i dont have any clue about my error. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Not solved |
[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future. |
I'm quite sure I have a similar issue, on MicroPython. Using deep sleep, sometimes my ESP32 (Heltec Wifi kit 32) doesn't wake up. It runs on 4x NiMH + a diode to lower the voltage. Works perfectly (it's not charging the batteries of course). When the battery voltate is lower, it fails to wake up significantly more often. So I can confirm the feeling of the battery being related. Edit: To add on that, I noticed when the machine doesn't wake from timed sleep, it's also unable to wake up from button (GPIO) wake up sources that it usually does wake up from. |
I am running some Wroom32 boards to send BME680 values to a MQTT server every 15 minutes. The circuits are powered by 2 AA batteries (3 volts). Some of the boards run flawlessly over months, while some of them fail after some days and drain the battery within hours. My latest attempt as mentioned above already soldering a capacitor of 100uF very close to the board to filter the power supply seems to be successful. All of them but one are running now for 2 weeks without a problem. At one board the capacitor did not bring the solution. I changed the capacitor to a 47uF tantalum today. Maybe that works. Basically I guess the stability of the voltage is the key solution for the problem. 9 days later: |
Hello |
If you are using the esp-idf try leaving the RTC slow memory enabled when configuring deep sleep.
…Sent from my iPhone
On 16 Jan 2021, at 18:21, Younes Sadat-Nejad ***@***.***> wrote:
Hello
I am having the exact same problem.
I am using ESP32 Dev kit1, with the external trigger as my wake-up from a deep sleep.
The problem is that after few wakeup and sleep, it stops waking up and manual reboot is the only way to fix it.
The problem exists both with wire and without wire, however when using battery, it happens sooner (about 30-40 times), while with wire it may take 200 times.
I used a pull-up resistor of 100K for pin2 that is my trigger, and a 100uF capacitor on the battery, the problem remains.
I tried adding a 500ms delay at the beginning of setup, the problem remains.
Is there any software solution, or is it just a matter of finding the right capacitor on the voltage supply?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have the same issue too with ESP32-WROVER the wake-up after deep sleep and it seems everything is working fine for the flash read and here us the
i was testing the Voltage and the pin status of EN and during touching the En pin to check 3.3 voltage is present and just with one probe "may be static charge" the ESP restarted and worked fine and the restart reason was waking up from deep_sleep although it stuck for hours and the sleep was just for 5 minutes. any ideas? |
A possible fix is mentioned in espressif/esp-idf#6694 with batteries. Potentially the ESP32 gets stuck in a restart procedure, due to a low voltage, and deep sleep wake up. Adding a capacitor to the CHIP_PU pin might fix the issue. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Tried all possible solutions here and still same problem. It wakes up from deep sleep and stalls in setup after 2-3 lines.. no cause, no reset, no crash.. nothing.. just freezes...happens with batteries and with usb connected.. |
Yep. My bet is that a bad power supply still is the main cause. Using a watchdog timer is the only method of recovering after this „freeze“ that I‘m aware of. best regards JLIspace |
Also was going mad with this issue for years, excluded power supply issues and using different chip revisions (last tests done with ESP32-E) and didn’t find a root cause, but a least this kind of workaround for improvement: |
Anyone has found yet the root cause on this? |
I think I'm having the same issue with my AZDelivery lolin32 lite. I thought I was running out of battery even though it didn't make a lot of sense but now I know the battery isn't the culprit. With the USB connected, it hangs forever (after 13 30min deep sleep/wake up but this is very random):
I'll try the delay at the beginning of the setup(). EDIT: Adding a delay didn't change anything, it froze again. |
Hardware:
Board: ESP32 Dev Module - Sparkfun ESP32 Thing
Core Installation/update date: 30/oct/2017
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600
Description:
The board does not correctly restart after deep sleep. Im using the builtin example sketch "TimerWakeUp" without modifications and no other hardware attached and i get random results on the powerup after sleep.
The board usually start successfully a few times after deepsleep, but then it failes to run the actual sketch after startup and a manual reset is needed.
The debug information below shows that the device starts after deepsleep and outputs "Boot number: x", but then in the last boot it doesn't output anything from the sketch and does not return to sleep. A manual press of the reset button restarts the device and the it runs for a few more deepsleep cycles before it gets stuck again.
Any one else seen this problem?
Sketch:
builtin "TimerWakeUp" example sketch
Debug Messages:
The text was updated successfully, but these errors were encountered: