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

Pcborges
Posts: 37
Joined: Thu Aug 09, 2018 9:56 pm

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

Postby Pcborges » Sun Mar 10, 2019 11:31 am

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

vonnieda
Posts: 145
Joined: Tue Nov 07, 2017 3:42 pm

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

Postby vonnieda » Sun Mar 10, 2019 8:50 pm

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

Who is online

Users browsing this forum: Baidu [Spider] and 123 guests