Normal reset after timed wakeup with firebeetle DFR1075

userHead Wolfgang.Koch 2024-11-25 04:24:31 711 Views1 Replies

Hallo,

 

I am using the following code to get the Firebeetle (ESP32-C6)  into deep sleep and wake up after some time. Code ist compiled in Arduino IDE.

 esp_sleep_enable_timer_wakeup(2000000);

 esp_deep_sleep_start();

I need to store an integer value in  RTC-memory to be available after restart. It is defined with RTC_DATA_ATTR attribute.

But this does not work. The ESP32 wakes up, but the variable contains 0, and the wakup-reason is not the timer but a normal hardware reset. I use esp_sleep_get_wakeup_cause()  for retrieving the wakeup-reason. 
It is not a problem of power supply, I have tested it with different supplies which deliver enough power.

 

The code works for me with an older ESP32.

 

Thanks in advance for any ideas!

 

2025-01-14 17:16:25

I have the same problem with deep sleep wakeup. But what i see is that there is a ROM logging at serial monitor like this:

 

09:59:51.982 -> ESP-ROM:esp32c6-20220919

09:59:51.982 -> Build:Sep 19 2022

09:59:51.982 -> rst:0x3 (LP_SW_HPSYS),boot:0x2b (SPI_FAST_FLASH_BOOT)

09:59:51.982 -> Saved PC:0x4001974a

09:59:51.982 -> SPIWP:0xee

09:59:52.026 -> mode:DIO, clock div:2

09:59:52.026 -> load:0x4086c410,len:0xcf8

09:59:52.026 -> load:0x4086e610,len:0x2e30

09:59:52.026 -> load:0x40875728,len:0x113c

09:59:52.026 -> entry 0x4086c410

 

Than the ESP performs a reset. This happens at different times and only sometimes it works fine. 

May be it helps to find a solution.

 

Thanks.

userHeadPic WSchuppi