Other Parts Discussed in Thread: SYSBIOS, AM3352
Tool/software: Code Composer Studio
Hello,
The title says it all: The Register Dump following a fatal exception in ind_sdk_01.01.02.01 + bios_6_42_02_29 doesn't preserve the correct SP/LR/PC needed to properly restore the stack backtrace to the point of exception.
Here's an example dump, (note the poor formatting, "[CortexA8]" overwriting "R0 = "). The big issue here is, it seems PC and/or SP are incorrect -- why is PC always reported equal to SP after a crash?
[CortxA8] 0x0000000f R8 = 0x80106c90
R1 = 0x0000c75f R9 = 0x000000ff
R2 = 0x48200048 R10 = 0x00000000
R3 = 0x822f540c R11 = 0x00000002
R4 = 0x800582b0 R12 = 0x0000000f
R5 = 0x800582b4 SP(R13) = 0x8004b8d4
R6 = 0x48200068 LR(R14) = 0x822edd6c
R7 = 0x00000000 PC(R15) = 0x8004b8d4
PSR = 0x000000ff
DFSR = 0x00000005 IFSR = 0x00000000
DFAR = 0x0000001f IFAR = 0x00000000
ti.sysbios.family.arm.exc.Exception: line 205: E_dataAbort: pc = 0x8004b8d4, lr = 0x822edd6c.
xdc.runtime.Error.raise: terminating execution
Please advise.
Regards,
-david

