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.

TPS65381A-Q1: How to Disable Watchdog in Active

Part Number: TPS65381A-Q1

Hi,

My customer would like to reset and reload the codes for MCU when 65381 is in Active, the reloading takes several minutes, during the reloading there is no watchdog signal(They use Trigger Mode), so 65381 will go to SAFE mode with WD_FAIL_CNT=7+1 & WD_RST_EN=1 then Reset then Diag, then set DIAG_EXIT_MASK to stay in DIAG. However, to go to SAFE mode it needs several bad watchdog which takes too long time, so they asked, if we have quicker method to disable watchdog in active mode(By setting WD_RST_EN=0?), to keep 65381 in active mode even without watchdog, or if we have quicker method to go to Diag mode from Active?   

  • Wayne,

      Unfortunately on this device there is no software command way to go back to DIAGNOSTIC state from SAFE state without going through RESET state.

    During debug, before enabling reset from watchdog failures, try the following minor change to configuration:
    1) staying in DIAGNOSTIC state for debug via the DIAG_EXIT_MASK bit (1) and cleared (DIAG_EXIT bit 0). Makes sure you are writing both of those to the intended states in one SPI write into the register to avoid some issues.

    2)Then work on the watchdog code while WD_RST_EN = 0, so the WD_FAIL bit will set but the device will not cause RESET which is likely then leading to SAFE state while debugging. You can tell if the watchdog code is stable by enabling the ENDRV (safeing output) with the ENABLE_DRV bit. Once the watchdog code is stable and holds the watchdog failure counter (WD_FAIL_CNT) < 5, the ENDRV pin will go high.

    3) Once you are done reloading you can try setting WD_RST_EN to 1 and see if the device remains in DIAGNOSTIC state as expected.

    Let me know if this helps you.

  • Varney,

    Thanks for your reply.

    My case is that the system is working, 65381 is in active mode already, it is not in DIAG, I think setting WD_RST_EN=0 is only available in DIAG mode instead of ACTIVE, right? So your solution is not suitable for me because 65381 is still in ACTIVE. My problem is how 65381 quickly go to SAFE then DIAG from ACTIVE in my case, then we can set WD_RST_EN=0 and stay in DIAG, or solution 2: how to disable watchdog in ACTIVE, or stay in ACTIVE without watchdog for a long time(Say 10mins), so that 65381 stays in ACTIVE even without watchdog because there is no watchdog during MCU reloading. 

    Hope I explained clearly and thank you so much again.   

  • Wayne,

      I don't believe it's possible to disable the WDT from ACTIVE state.  I am looking at how fast we can get to DIAG to set the WD_RST_EN=0. I will get back to you soon.   

  • Hi Wayne,

    We just wanted to follow up with your question and see if this is still an open issue for you? Gordon is currently out of office and will not be able to address this until he gets back and we wanted to let you know that your question is not falling through the cracks.

    Thank you,

    Jadyn

  • Jadyn,

    It was closed. Thanks for your support