Good Morning,
I have a problem with deep sleep when I update espressif32 sdk version to 3.0.0 from 2.1.0. When I wakeup from deep sleep I saw that a reset is produced (Reset cause = 6 = WDT). I only have this problem in sdk version 3.x.x, in lower versions there is no problem.
What is the full code and platformio.ini
with which the problem can be reproduced?
platform-.ini:
[env:esp32dev]
platform = espressif32@3.0.0
board = esp32dev
framework = espidf
Code:
RTC_DATA_ATTR char ctrl=0;
void main(){
if(ctrl ==0{
printf("First time\n");
ctrl=1;
}else if (ctrl ==1){
esp_sleep_wakeup_cause_t wk_cause;
wk_cause= esp_sleep_get_wakeup_cause();
printf("WK CAUSE %i\n",wk_cause);
}
esp_sleep_enable_timer_wakeup(30 * uS_TO_S_FACTOR);
esp_deep_sleep_start();
}