Page 1 of 1

Application resetting every 13m20s

Posted: Thu Jun 10, 2021 12:38 pm
by l.wuyts
Hello everyone,

We're writing an ESP32 application and debugging using OpenOCD and the FTDI CH232M cable.
When I'm running my application, the ESP32 resets exactly every 13 minutes and 20 seconds.

I get this error in the OpenOCD terminal:

Code: Select all

Error: Error: null stack pointer in thread
Error: RTOS: failed to get register list
Or this error:

Code: Select all

Error: Error reading FreeRTOS thread name
The ESP32 also resets when I have no debugger connected.

Does any of you know what could cause this behavior?
I'm not able to share the source code, but I can answer questions or show my config files if needed.

Kind regards
Laurens

Re: Application resetting every 13m20s

Posted: Fri Jun 11, 2021 5:23 am
by NevynSelby
Have you tried connecting a serial cable to the serial port on the ESP32 and using

Code: Select all

idf.py monitor
If a trace is generated then idf.py should be able to help interpret the stack trace.

Hope this helps,
Mark

Re: Application resetting every 13m20s

Posted: Fri Jun 11, 2021 10:47 pm
by GustavoGB
Perhaps it could be an overflow problem, that is, in each iteration you are taking up more memory space and in a moment you run out of memory.
I recommend you review your code and verify the variables that you create in each iteration.

Re: Application resetting every 13m20s

Posted: Wed Jun 16, 2021 11:04 pm
by rfleming

Code: Select all

Error reading FreeRTOS thread name
This `could` be that you either parsed in null when creating your thread, or you may have made your thread name too long? The thread name itself should only be something like 14 characters including null - defined in the sdkconfig.