Application resetting every 13m20s

l.wuyts
Posts: 7
Joined: Wed Mar 24, 2021 12:48 pm

Application resetting every 13m20s

Postby l.wuyts » Thu Jun 10, 2021 12:38 pm

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

NevynSelby
Posts: 34
Joined: Thu Dec 24, 2015 12:04 pm

Re: Application resetting every 13m20s

Postby NevynSelby » Fri Jun 11, 2021 5:23 am

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

GustavoGB
Posts: 18
Joined: Fri Jan 15, 2021 1:46 am

Re: Application resetting every 13m20s

Postby GustavoGB » Fri Jun 11, 2021 10:47 pm

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.

rfleming
Posts: 62
Joined: Tue Oct 09, 2018 12:30 am

Re: Application resetting every 13m20s

Postby rfleming » Wed Jun 16, 2021 11:04 pm

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.

Who is online

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