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.

TPS65313-Q1: MCU Error Signal Monitor Reset action is not performed

Part Number: TPS65313-Q1

MCU Error Signal Monitor (ESM) is enabled with configurations as follows:

  1. Operating mode of the ESM is controlled through the MCU_ESM_CFG bit in the SAFETY_CFG3 SPI register,  TMS570 mode is choosed.
  2. Set the Threshold of the low-signal duration from SAFETY_ERR_PWM_LMAX_CFG by choosing PWML_MAX value to be 0x3E.
  3. MCU_ESM_RST_EN bit in SAFETY_CFG3 register with 1b to make The device transitions to the RESET state.
  4. Set the threshold MCU_ESM_FC_RST_TH from SAFETY_CFG4 15
  5. Activated by setting the MCU_ESM_EN bit to 1b in the SAFETY_CHECK_CTRL SPI register.

Then at Runtime I read back the register SAFETY_ERR_STAT3 , it had a value of 0x05 indicated that there are no errors (the bits MCU_ESM_FAIL,  MCU_ESM_ENDRV_F AIL and  MCU_ESM_RST_FAIL are all zeros) 

I tried to inject an error after this by asserting an error in the bit ERROR in the register ERRORSTS (by forcing an NMI) then cleared the NMI:

The PMIC does not perform the reset reaction and the software continued running, however when I read back the the register SAFETY_ERR_STAT3 , it had a value of 0x7F indicated that errors occurred (the bits MCU_ESM_FAIL,  MCU_ESM_ENDRV_F AIL and  MCU_ESM_RST_FAIL are ones).

According to the tps65313-q1: Figure 11-29. The NRES Driver and Logic

These are two conditions which makes the PMIC perform the reset reaction and they are met according to my test.

If I am missing any info or there are extra configurations I need to make please let me know.

  • Hi Khaled,

    the MCU_ESM_RST_EN is only applied to transitions from the ACTIVE or DIAGNOSTIC states and not the SAFE state. The device first transitions to the SAFE state when MCU_ESM_FC = MCU_ESM_FC_RST_TH and thus will not transition from SAFE state to RESET state when MCU_ESM_FC = MCU_ESM_FC_RST_TH. This is said in the small note in the Figure 11-34. Device Fail-Safe Controller State Diagram.

    So the behavior is correct and in this case the device is not meant to transition to RESET state which would pull the NRES low.

    regards,

    Niko

  • Hi Niko,

    Thanks for the reply, this really helped!

    I wanted to trigger a reset reaction for ESM in case a failure is detected so I configured WD_FC_RST_TH with a value less than WD_FC_ENDRV_TH.

    Regards,

    Khaled