Search found 6 matches
- Sat Jun 25, 2022 3:29 pm
- Forum: ESP32 Arduino
- Topic: ESP-C3 putting back to deep sleep keeps resetting
- Replies: 3
- Views: 4000
Re: ESP-C3 putting back to deep sleep keeps resetting
Bump, has anyone got any suggestions on this please?
- Mon Jun 20, 2022 1:07 pm
- Forum: ESP32 Arduino
- Topic: ESP-C3 putting back to deep sleep keeps resetting
- Replies: 3
- Views: 4000
Re: ESP-C3 putting back to deep sleep keeps resetting
Hi, rpiloverbd Thanks - I looked at the 2 posts, and don't believe these are contributory factors. 1) i am deliberately avoiding any GPIO pins, and my code does not enable any GPIO wake up 2) the board is powered directly from the USB port, so there shouldn't be any power spikes 3) i have tried usin...
- Sun Jun 19, 2022 2:51 pm
- Forum: ESP32 Arduino
- Topic: ESP-C3 putting back to deep sleep keeps resetting
- Replies: 3
- Views: 4000
ESP-C3 putting back to deep sleep keeps resetting
Hi, I have a ESP32-C3 where i need to use the esp_wake_deep_sleep() stub to perform some tasks, and then return back to sleep, but every time i attempt to put it back to sleep, it just resets, and wakes up the system rather than returning to deep sleep, I have simplified the code as much as possible...
- Wed Jun 01, 2022 11:55 am
- Forum: ESP32 Arduino
- Topic: Help with coding in esp_wake_deep_sleep()
- Replies: 5
- Views: 3283
Re: Help with coding in esp_wake_deep_sleep()
Hi, The REG_GET_FIELD(RTC_CNTL_WAKEUP_STATE_REG,RTC_CNTL_WAKEUP_CAUSE) doesn't work. Here's a simple example where the REG_GET_FIELD always returns Zero, but the esp_sleep_get_wakeup_cause() returns the correct result. #include <esp_sleep.h> #include "soc/rtc_cntl_reg.h" #define uS_TO_S_FACTOR 10000...
- Tue May 31, 2022 4:13 pm
- Forum: ESP32 Arduino
- Topic: Help with coding in esp_wake_deep_sleep()
- Replies: 5
- Views: 3283
Re: Help with coding in esp_wake_deep_sleep()
Hi ESP_Sprite,
Thanks for the link to the Doc, I'll take a look.
I'm struggling to find the register that i can use for the esp_sleep_get_wakeup_cause().
I thought REG_READ(RTC_CNTL_WAKEUP_STATE_REG), but this always returns 393216 decimal irrespective of what causes the wakes
Any Thoughts ?
Thanks for the link to the Doc, I'll take a look.
I'm struggling to find the register that i can use for the esp_sleep_get_wakeup_cause().
I thought REG_READ(RTC_CNTL_WAKEUP_STATE_REG), but this always returns 393216 decimal irrespective of what causes the wakes
Any Thoughts ?
- Mon May 30, 2022 3:47 pm
- Forum: ESP32 Arduino
- Topic: Help with coding in esp_wake_deep_sleep()
- Replies: 5
- Views: 3283
Help with coding in esp_wake_deep_sleep()
HI, This is my 1st post to the forum, and hope someone can give me some guidance. I have a ESP32-c3-12 on a dev board from RF Solutions, and is simple C coding without any rtos , and need to make use of the deep_sleep feature for waking up to a GPIO Level, as this is a battery powered water meter pu...