This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: How do I generate a Lockstep error while my application is running so that I can check if the ERRFLAG bit is set in the MPUERRSTAT register?

Part Number: TMS570LC4357


Have a requirement to check for a lockstep error for a flight safety application.  How do I generate a Lockstep error while my application is running so that I can perform unit test to check if the ERRFLAG bit is set in the MPUERRSTAT register?

  • Hi Robert,

    The CPU lockstep core compare module (CCM) allows you to force a compare error in order to verify the signaling mechanism. Please refer to the CCM chapter in the reference manual for more details about this error-forcing mode.

    The MPUERRSTAT flag is related to a separate safety mechanism and can be generated by deliberately violating memory access privilege constraints configured via the different memory protection units (MPU).

    Regards, Sunil