Started by findmyname, June 11, 2021, 03:26:27 pm
RTC_DATA_ATTR static int bat_v_rtc;
esp_wifi_stop(); ESP_ERROR_CHECK( esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_ON) ); esp_deep_sleep(sleep_interval)
Quote from: JohnS on June 12, 2021, 12:31:04 pmMaybe print the address of the thing(s) with RTC_DATA_ATTR to see if they have actually been put in the right place.May be a software issue that they are not in there!John
Quote from: JohnS on June 14, 2021, 01:47:54 amAnd what does the datasheet say for the memory area you want it in?Then if it's in the right area I guess you look how (if at all) it needs powering and/or configuring.John
Quote from: JohnS on June 15, 2021, 12:42:14 amThat looks OK.Is the ULP enabled? It looks not to be, by default.John
Quote from: LubOlimex on September 09, 2021, 02:17:35 pmMaybe test with Arduino IDE instead of ESP-IDF. From my experience Arduino IDE trivializes the usage of the deep sleep function. I usually use Arduino IDE for my deep sleep tests about power consumption.
Quote from: LubOlimex on September 09, 2021, 02:17:35 pmMy advice is to post in the espressif support forums and also contact the ESP-IDF community. Maybe it is something known.
Quote from: LubOlimex on September 09, 2021, 02:17:35 pmWhat? We never advertised the product to be capable to store RTC while in deep sleep and while using exactly ESP-IDF environment. That is too specific to advertise.
Quotei.e. in deep sleep RAM memory is powered DOWN and whatever you write in it it's lost
Quote from: LubOlimex on September 10, 2021, 09:30:06 amAnd there are hardware differences between WROOM and WROVER modules. WROVER has 2 MB PSRAM, and WROOM lacks such PSRAM.