Other Parts Discussed in Thread: AWR1243
Tool/software:
hi.
For debugging of RTOS time constraints,
Inside the watchdog callback interrupt, I want to read the PC Register,
which was running before the watchdog callback occurred.
The API called rldevicegetcpufault() seems to return only the LR with Fault.
Is there a good way?
The get_LR() function is written as shown below, but it is not compiled.
Although the PC of ISR Dispatcher seems to come out,
it is difficult to proceed because it is blocked here. Can you give a tip?
/* Error Msg : error #18: expected a ")" asm("\tMOV %0, r14\n" : "=r" (result)); ^ */ inline uint32_t __get_LR() { register uint32_t result; asm("\tMOV %0, r14\n" : "=r" (result)); return (result); }
ASM referred to: 4.2. Converting TI-Syntax ARM asm() Statements Embedded in C/C++ Source — TI Arm Clang Compiler Tools User's Guide