A way to trap stack overflow?

Hi, I’m real new on this forum, so I’ll just start with a warm HELLO to all :wink:

I did start programming on a photon 2 month ago, I do have some experience in real time /’ firmware programming.

My question is pretty simple : my application experiences Stack Overflow errors (red led blinking 13 times …). With the photon what would be a good strategy to debug a stack overflow ? I did some (10mn) research about the OS, and I’m guessing if freeRTOS is still the basis for Photon 0.5.3 ?

If that’s the case, did anyone tryed to use configCHECK_FOR_STACK_OVERFLOW (http://www.freertos.org/Stacks-and-stack-overflow-checking.html) ? If not, is there anything equivalent on Photon’s OS ?

thanks in advance for your help !
JM

2 Likes

Hi jmb, did you ever find an answer for this? Love to hear how you track the stack