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.

TPS65381-Q1 SAFETY_STAT_4 register

Hi,

I'm looking for a way to know if an RM46x was resetted by the TPS65381 because of a watchdog Q/A error or a MCU_ERROR pin failure.
The MCU_ERR and WD_ERR bits in the SAFETY_STAT_4 register seems to be the rigth flags to test to know that.
Is the content (MCU_ERR and WD_ERR bits) of the SAFETY_STAT_4 register cleared when a transition to the RESET mode is performed ?

Best regards,

Bruno.

  • Hi Bruno,

    There isn't a direct way to tell only if the watchdog was the cause of the reset. Another issue is the watchdog will start running again after RESET and could also set the WD_ERR flag before the MCU rebooted fully and read the flags. I have another E2E post that outlines how you can track various possible RESET causing events and determine if it was the watchdog or some other event causing RESET:

    e2e.ti.com/.../400960

    Hopefully this helps.
    Scott
  • Hi Scott,

    Thanks for your reply.
    I have read carefully the post about the various possible reset events, but I don't find the answer to my question:
    Is the content (MCU_ERR and WD_ERR bits) of the SAFETY_STAT_4 register cleared when a transition to the RESET mode is performed?


    Bruno

  • Hi Bruno,

    Sorry for the delay. Yes, the MCU_ERR and WD_ERR flag bits will be cleared (RESET) on the transition through RESET. The associated function from these ERR flags will restart after the RESET.

    Scott