On MPC7448 Is possible via system exception capture, get the below informations.
-Processor.overload
- Arithmetic overflow
- Illegal program instruction
- Memory corruption
regards
Stefano
In the standalone system environment, the user software is responsible for handling the exceptions. Provide handlers for each exception involved in order to process or monitor. MPCFPE32B chapter 6 describes the context for all exceptions.
http://www.freescale.com/files/product/doc/MPCFPE32B.pdf
Now, about the cases:
- Processor.overload
what do you mean? 7448 has no "overload" state. Processor executes instruction stream continuously unless it is in sleep state. You might think about "overload" as if the processor is not able to meet the application performance requirments (e.g. can't process video on fly). This case should be managed by the application.
- Arithmetic overflow
Power Architecture instructions do not assert exceptions on the arithmetic overflows but report the overflow status in the XER register so that software can further handle this conditions properly. It can be done easily in assembler but not in high level language. Typical "C" compiler does does not check for arithmetic overflow.
Floating point exceptions can be handled in software. Please refer to the fenv.h description in "MSL C Reference.pdf".
- Illegal program instruction
Program exception 0x00700 is raised on illegal instruction. The registers involved are SRR0,SRR1,MSR. Please refer to Section 6.5.7 of MPCFPE32B.
- Memory corruption
7448 implements the machine check exception 0x200 to handle system bus errors like L1/L2 cache errors. External memory controller (TSI108/109) which support ECC may provide error signaling to the same exception vector.
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------