AnsweredAssumed Answered

How to trace stack for program flow in MPC5746R

Question asked by Renjith R on Jun 5, 2017
Latest reply on Jun 9, 2017 by Martin Kovar


I want to trace stack for program flow to store some information as follows

-current program counter value

-last few function calling addresses (eg:. fun3,fun2,fun1 address )

void fun1()





void fun2()


fun3(); // fault checking inside fun3()




void fun3()


store_NVM(); // store PC,last few function calling addresses to NVM

reset(); // call reset if fault occured



whenever fault happens, I need to store those information in NVM and reset.


Please suggest ,is there any SPR available to read such information or any other methods..?


Thanks & Regards,