rst:0x5 (DEEPSLEEP_RESET)
What it looks like
rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
What it means
The chip woke from deep sleep. That is normal, but deep sleep turns off the CPU and RAM, so waking is a full restart: setup() runs again and ordinary variables are back to their starting values.
Likely causes
- A timer, button (ext0/ext1), touch or ULP wake-up from esp_deep_sleep_start().
How to fix it
- Use esp_sleep_get_wakeup_cause() in setup() to tell a wake-up from a power-on.
- Keep values across sleeps in variables marked RTC_DATA_ATTR.
Paste your full log
The lines around the error usually say more. Paste everything from the reset to the backtrace and the crash translator explains each part. It runs in your browser; nothing is sent anywhere.