-->
Page 1 of 1

Ways to debug applications? gdb?

PostPosted: Thu Dec 25, 2014 4:48 am
by george-hopkins
Hello

As my application doesn't work as expected (ESP resets after a certain time), I'd like to debug my application.
Is there any way I can output a stacktrace, use a debugger (like gdb)? Are there any other ways I can debug my applicaiton with?

Thank you for your support.

Regards,
George

Re: Ways to debug applications? gdb?

PostPosted: Thu Dec 25, 2014 2:16 pm
by jcmvbkbc
george-hopkins wrote:Is there any way I can output a stacktrace

Not supported by gcc ATM, but it should be rather easy to add such support. In any case it will not be able to support tracing through code built w/o frame pointers (i.e. all code in the SDK libs w/o sources).

george-hopkins wrote:use a debugger (like gdb)?

This is only supported with xt-ocd + xt-gdb (Tensilica tools). You'd need JTAG probe supported by xt-ocd and ESP module with JTAG pins. I tried that, it somewhat works (see viewtopic.php?f=9&t=31&start=10#p3435 for slightly more detailed report).