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.

Watchdog of TMS320F28377D

Is there any method to confirm the cause of device reset? On 28335, there is WDFLAG bitfield of WDCR register to indicate the reset cause as shown below.

However, on 28377D, the WDFLAG bitfield changes to RESERVED. 

  • Hi,

    On this device we have this status available in RESC (Reset Cause) register. RESC register has status bit "WDRSn" which gets set when device gets reset by watchdog.

    Please refer section "2.14.11.25 RESC Register (Offset = 80h) [reset = X]" in TRM for the register description.

    Let us know if you have any further queries on this.

    Regards,

    Vivek Singh

  • Hi,
    The RESC register has other bitfilelds to indicate other reset causes, such as bit0(POR) and bit1(XRSn). However, after power on reset, these two bits are cleared by the boot ROM. That means the user application will always get 0 when reading these two bits. So the question is how to confirm the device was reset by POR or XRSn?
  • Hi,

    These bits will be cleared only on power on reset. So if at startup none of the state bit are set in this register then reset is due to power on reset and if only XRSn bit is set then reset is caused by XRSn.

    Does that help?

    Regards,
    Vivek Singh
  • Hi,

    Thanks a lot!