How to detect boot type (ESP32 S3)
Posted: Tue Apr 22, 2025 2:29 pm
I have a project that also includes a Task Watch Dog Timer (WDT) timeout to prevent lockup. What I'm trying to do is detect at boot time what sort of restart is happening. I've noticed the following on the serial console:
Power On or Reset Button: console shows
WDT reboot : console shows
Is there any way to read these parameters from software at boot time in the Arduino environment to detect the boot type?
I want to customise the Arduino setup() differently for each.
Thanks
Power On or Reset Button: console shows
Code: Select all
rst:0x1 (POWERON)Code: Select all
rst:0xc (RTC_SW_CPU_RST)I want to customise the Arduino setup() differently for each.
Thanks