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.

ESM exception handler



Hi all!

        Regarding the ESM exception handler, some exceptions are easily to handled, like flash exceptions we can repeat the action when we got flash exception, but some of the exceptions are not easily to handle, like CPU compare exception, we can hardly handle it, cause there are too many CPU actions to tell which action cause the exception, and repeat the action.

        How to handle these exceptions, can I judge that the CPU is not available? Is there somebody can give me some advice?

 

Thanks & Best regards

  • Hi Jhon,

    ESMSRx status register will get updated if an error condition occurs, regardless if the corresponding interrupt enable flag is set or not. The error source of each ESM channel is defined in datasheet (ESM Channel Assignments). If you don't use fault injection, but get CPU compare error, the code execution needs to be aborted for further diagnosis.

    Regards,
    QJ
  • Ok! Thank you for your post!
    Alike CPU, PSCON, Flash, osc and so on, which is in the "safe island", cause a fatal error, maybe the software can not be executed correctly ! what kinds of diagnosis should I do? STC? or simply report a fatal error by the error pin to other MCU?

    Thanks & Best regards
    Jhon