ESP32 - Crash detection

R1Snake
Posts: 2
Joined: Mon Apr 25, 2022 8:25 pm

ESP32 - Crash detection

Postby R1Snake » Mon Apr 25, 2022 8:31 pm

Hello,

I have an ESP project that has worked wonderfully and so I have potted the board to protect it from water (use outside).

Updates I have always installed via OTA and this has always worked wonderfully

Now I have updated the entire project over the weekend and made a few changes to the code, these played on an ESP Dev Board and tested.

Now the worst case scenario happened, I played the latest firmware on my potted ESP and it always crashed. I found the cause, however I now have a potted ESP that I can no longer use.

To avoid this case in the future I want to somehow program a "crash detector" pure.

If the ESP crashes 5 times in a row, then it should be detected and an access point with web interface should be created where a new firmware can be installed.

Is there a way to read out the crashes? The counter could be written in a RTC variable.

Translated with www.DeepL.com/Translator (free version)

ESP_Sprite
Posts: 9746
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 - Crash detection

Postby ESP_Sprite » Tue Apr 26, 2022 1:06 am

Not exactly what you want, but perhaps the rollback feature is good enough?

Who is online

Users browsing this forum: Majestic-12 [Bot] and 93 guests