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: TPS65381A-Q1: SPI WD stop

Part Number: TPS65381A-Q1
Other Parts Discussed in Thread: TPS65381-Q1,

Hi Sir:

     I want to Boot-loader the MCU Program, then I can not give a WD to TPS65381-Q1. It will  reset the MCU.

What should I do to Complete the Boot-loader。when I boot-loader.  May I shun off the WD of TPS65381? or Stop.

  • Hello Lei,

    The watchdog of the TPS65381A-Q1 will not cause a RESET based on default configuration of the device. When the TPS65381A-Q1 powers up from off or STANDBY state, the registers are all re-initialized to their default condition due to the NPOR event in the device. The WD_RST_EN bit is cleared in this re-initialized state by default so even if the WD_FAIL_CNT is incremented to 7 +1, the WD_FAIL_CNT will saturate at count of 7 and no RESET state transition will happen unless WD_RST_EN is set to 1 prior to MCU to device synchronization which will decrement the WD_FAIL_CNT.

    In the boot loader simply follow the instructions in section 5.4.13 of the datasheet (MCU to Watchdog Synchronization) and flow chart Figure-6-11 Software Flowchart for Configuring and Synchronizing the MCU With the Watchdog in Q&A Mode or Figure 6-12. Software Flowchart for Configuring and Synchronizing the MCU With the Watchdog in Trigger Mode depending on which mode of the watchdog you are using.

    Note for booting: when the device powers up it will transition to DIAGNOSTIC state and there is a DIAGNOSTIC state time-out that allows the system up to 512ms to either set the DIAG_EXIT bit and transition to ACTIVE state or set the DIAG_EXIT_MASK bit, both in SAFETY_CHECK_CTRL register, so the device remains in DIAGNOSTIC state indefinitely (to support software debugging). If one of these events doesn't occur, the device will transition to SAFE state. Please see Section 5.4.19 Device Operating States section of the datasheet including Figure 5-16. Device Controller State Diagram and section 5.4.22 DIAGNOSTIC state for more details. Also, it should be ensured that when writing this register if DIAG_EXIT_MASK bit was used and the software wants to transition the device to ACTIVE state that the DIAG_EXIT_MASK bit is cleared AND the DIAG_EXIT mask bit are written in a single write to the register. If not the DIAGNOSTIC state time-out timer will continue from it's last count prior to having the DIAG_EXIT_MASK bit set.