How to stop ESP32 reset when there's crash issue like stack overflow?

xiangcheng
Posts: 29
Joined: Mon Feb 20, 2017 2:27 am

How to stop ESP32 reset when there's crash issue like stack overflow?

Postby xiangcheng » Tue Jan 16, 2018 3:37 pm

Hi, my ESP32 platform (not arduino) will crash (seems to be stack overflow) after long time running. I have no JTAG tool and I always print some info and watch by COM port. How could I stop the ESP32 reboot so I can watch the info I printed. Sometimes it will run 5+ hours. Thanks.


chegewara
Posts: 2358
Joined: Wed Jun 14, 2017 9:00 pm

Re: How to stop ESP32 reset when there's crash issue like stack overflow?

Postby chegewara » Tue Jan 16, 2018 5:44 pm

Change settigs in menuconfig.

Code: Select all

menuconfig->Component config->ESP32-specific->Panic handler behaviour

xiangcheng
Posts: 29
Joined: Mon Feb 20, 2017 2:27 am

Re: How to stop ESP32 reset when there's crash issue like stack overflow?

Postby xiangcheng » Wed Jan 17, 2018 12:37 pm

oh, brothers. thanks. Magic of esp32 here to get all the answers.

Who is online

Users browsing this forum: No registered users and 111 guests