How to read the below registers value?
1) Stack pointer(SP) - R13
2) Link Register(LR) - R14
3) Program Counter - R15
4) Exception and Reset Control Registers
5) Program Status Register
@S32k146, @ArmCortexM
Hi @pratheek_b,
Do you want to read it with the core in C?
If so. use inline assembler.
You can refer to this example:
https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447
fault_exceptions.c
BR, Daniel