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: Question regarding errorforcing mode of nERROR

Part Number: TMS570LC4357

Tool/software:

Hi experts,

The Reference Manual states:

"The ESM module cannot be switched into the error forcing mode if a failure has already been detected
in functional mode. The application command to switch to error forcing mode is ignored."

This means that I cannot enter error forcing when nERROR is LOW.

What is the behaviour of the EKEY field of the ESMEKR register when there is a write of 0xA to this field?
What happens in the following cases:

ESMEKR = 0x0 and 0xA is written? ESMEKR should be reset to 0x0.

ESMEKR = 0x5 and 0xA is written? ESMEKR should be reset to 0x5.

Is this correct?

If this is correct, what happens if I am in error forcing mode and inject an error during a diagnostic and then request a nERROR reset:

ESMEKR = 0xA and 0x5 is written.

Will this end error forcing and ESMEKR will be 0x0 after nERROR goes back to HIGH or will ESMEKR ignore the reset request?

Thank you and best regards,
Max

  • Hi Max,

    This means that I cannot enter error forcing when nERROR is LOW.

    Yes, you are correct!

    What is the behaviour of the EKEY field of the ESMEKR register when there is a write of 0xA to this field?

    Actually, my first suggestion would be we should not write if nERROR is low.

    If you verify our driver code for error forcing, as you can see there, we are not writing to the EKR register if nERROR is already low.

    ESMEKR = 0x0 and 0xA is written? ESMEKR should be reset to 0x0.

    I am assuming error triggered, that means EPSR = 0x0 and EKR = 0x0.

    Now if i again write 0xA to the EKR register to force error, as mentioned in TRM the command will get ignored. I mean even though EKR register contains 0xA, but there won't be any action on the nERROR or EPSR register and EPSR register will continue on 0x0 only.

    ESMEKR = 0x5 and 0xA is written? ESMEKR should be reset to 0x5.

    I am assuming error triggered, that means EPSR = 0x0 and EKR = 0x0.

    Now if we write 0x5 to the EKR register then error reset request will happen.

    That means EPSR register will become 0x1.

    And EKR register will also switch back to the 0x0 (Normal mode).

    And now if you write 0xA to the EKR register to force error, now error forcing should happen because we already cleared the previous error.

    So that means EPSR register will becomes 0x0 (nERROR active) and EKR register will becomes 0xA.

    --
    Thanks & regards,
    Jagadish.