Page 1 of 1

ESP32 reboots somewhat once a day. How to capture the conditions?

Posted: Sun Mar 10, 2019 11:31 am
by Pcborges
Hi, I have a sketch that work great and runs continuously collecting data from a water flux sensor.
From time to time it reboots with no apparent reason.
I have a sort of log that tracks system reboots and other conditions (during boot process it records time of the boot).

What are the resources available to catch the reason for such spurious reboots?

Thanks
Paulo

Re: ESP32 reboots somewhat once a day. How to capture the conditions?

Posted: Sun Mar 10, 2019 8:50 pm
by vonnieda
The best way I have found is to use the ESP's core dump to flash feature, and then analyze the core dump afterwards. ESP supplies tools to make this easy, and usually it's just a matter of loading the core dump and running the bt (backtrace) command to see where it happened.

See: https://docs.espressif.com/projects/esp ... p-to-flash

Jason