AnsweredAssumed Answered

assembly support for assert function

Question asked by Kraig Ritmanich on Jan 11, 2012
Latest reply on Jan 11, 2012 by TomE

I am in the process of porting some software from TI to MPC8377. In the TI platform, there was an instruction (ESTOP0) that would halt the debugger if it was attached or no op if no debugger is attached. This instruction was useful for debugging for implementing an Assert function. Is there an equivalent instruction(s) in the MPC8377? I didn't see one in the programming manual or the forums and it seems like others implementing an assert would be interested in this. Ideally, there wouldn't be a need to build a debug version of software, but it would be acceptable if that is the only solution.

The other nifty thing our assert function does is store the program counter to a global variable. At runtime, you can inspect this variable to get the memory address of a potential problem. In the PowerPC, the program counter is not available. Is there a way to get the program counter value?

-Kraig

Outcomes