Other Parts Discussed in Thread: CC1310, SEGGER
Tool/software: Code Composer Studio
Hi,
I'm trying to debug a hardware exception.
Since CCS can't backtrace past Hwi exception interrupts (it mistakes the exception word as a return address and chokes), I'm apparently supposed to manually copy SP/LR/PC from Hwi/Exception info into Core Registers to get CCS to give me the backtrace.
The problem is, quite frequently CCS flatly refuses to update the registers - It accepts the new address in edit mode, but returns to the old one when I press enter, and the backtrace doesn't work.
If I go to edit the field again, the new address is displayed in edit mode, so CCS apparently knows what I want it to be. Upon pressing enter, the address will however return to the old one.
Occasionally, if CCS randomly lets me change the PC to a *different* address, it'll update PC/LR with the values stored in their respective edit modes and I can get the backtrace after putting PC back where it should be, but most of the time CCS won't let me update PC and so the backtrace remains unavailable.
This makes debugging hardware exceptions almost impossible, leaving me to manually resolve symbols in the stack through memory browser and guess whether they're function arguments, function-local variables or return pointers.
I'm using Code Composer Studio Version: 7.1.0.00016 for Linux