This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C1294KCPDT: Trivial trick to get the stack unwound in exception handlers

Part Number: TM4C1294KCPDT

Tool/software: Code Composer Studio

If you remove the "loop forever" code at the end of exception handlers and if you have added a BKPT instruction to the handler then getting the stack "unwound" is as "easy" as stepping over the break point. The only issue is that due to another bug (also on the radar to be fixed) is that the debugger doesn't actually step over break points. However setting the PC to PC + 2 moves execution past the break point instruction and an assembly level single step gets you back to the exception context.

A single step now will generally get you back to the exception handler so trying to continue is likely to be problematic, but at least you should have a full debug stack and the variables tab in the debugger should be sensible.