hello
how set panic handler behavior in ESP32////
my project with ESP32 crash after 4 or 5 hour in working how can set self restart it
How to set ESP32 reset when there's crash issue like stack overflow?
-
- Posts: 40
- http://meble-kuchenne.info.pl
- Joined: Mon Apr 05, 2021 1:59 am
- Has thanked: 8 times
- Been thanked: 4 times
-
- Valued Contributor
- Posts: 1156
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 287 times
- Been thanked: 413 times
Re: How to set ESP32 reset when there's crash issue like stack overflow?
Hi
I think mehmet64 might be meaning when his hardware crashes?
I don't have too much experience with the ESP32 but perhaps the Watch Dog Timer would assist?
Regards
I think mehmet64 might be meaning when his hardware crashes?
I don't have too much experience with the ESP32 but perhaps the Watch Dog Timer would assist?
Regards
-
- Matrix Staff
- Posts: 1743
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: How to set ESP32 reset when there's crash issue like stack overflow?
Hello,
When you say it's crashing what exactly is happening. Emg. Does the WiFi comms stop working etc? Could you do something like trying to detect the stalled condition and for example disconnect and reconnect the WiFi.
When you say it's crashing what exactly is happening. Emg. Does the WiFi comms stop working etc? Could you do something like trying to detect the stalled condition and for example disconnect and reconnect the WiFi.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1457
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 512 times
- Been thanked: 473 times
Re: How to set ESP32 reset when there's crash issue like stack overflow?
Yes, indeed.chipfryer27 wrote: ↑Fri Mar 17, 2023 4:56 pmHi
I think mehmet64 might be meaning when his hardware crashes?
I don't have too much experience with the ESP32 but perhaps the Watch Dog Timer would assist?
Regards
Thank you I had misread the post.
Martin
-
- Valued Contributor
- Posts: 968
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 104 times
- Been thanked: 514 times
Re: How to set ESP32 reset when there's crash issue like stack overflow?
I posted a small component that allows you to query the restart reason at viewtopic.php?f=3&t=1623&p=9450&hilit=E ... tart#p9450
You can then choose different actions after crash or power on etc.
Need to check why you're getting a crash ? Stack overflow shouldn't occur - do you have some recursive code with no 'end' condition?
Martin
You can then choose different actions after crash or power on etc.
Need to check why you're getting a crash ? Stack overflow shouldn't occur - do you have some recursive code with no 'end' condition?
Martin