- esp_sleep_enable_timer_wakeup(5000000);
- Serial.flush();
- delay(100);
- delay(1);
- yield();
- vTaskDelay(pdMS_TO_TICKS(30));
- rtc_wdt_disable();
- esp_light_sleep_start();
- rtc_wdt_enable();
I am using the esp32 dev kit version 1. I ported Arduino mega2650 code for esp32 with some modifications in the library. Although it gets complied for esp32 successfully on uploading the code, esp32 gets reset again and again. I'm not able to find the exact reason. Below is the log snippet of the serial monitor with some information. I'm attaching the my code.
- rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
- configsip: 0, SPIWP:0xee
- clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
- mode:DIO, clock div:1
- load:0x3fff0030,len:1184
- load:0x40078000,len:13220
- ho 0 tail 12 room 4
- load:0x40080400,len:3028
- entry 0x400805e4
- ets Jul 29 2019 12:21:46