Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By george-hopkins
#5654 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
User avatar
By jcmvbkbc
#5684
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).