When using the gdbstub, I can’t find a way to get the exception trace information from chip. The “Inline GDB Stub Output” doesn’t show it and none of the logs I’ve enabled have any information.
Also, I have had very poor luck setting a breakpoint or breaking into a running program with gdbstub. Am I missing something?
The gdb stub relies on running code on the same processor as your program, so many crashes would render the stub itself unresponsive. Debugging over JTAG could be a better alternative.
The stub also does not support breakpoints in FLASH. Please try moving your functions to RAM in order to set breakpoints in them.
It does, but if the same port is open by gdb that expects special gdbserver packets, it’s somewhat tricky to get that output out.
Please try running the ‘set debug remote 1’ command to force gdb to dump the communication with the gdbserver. This might force it to display the exception information “as is” instead of simply discarding it.