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.

TMS570LS1224: TMS570LS1224 and TPS65381A-Q1 -watchDog

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

Hi Sir:

     I want to know when I need bootloader to update the flash。 How to set the WatchDog? Then. I want the ship into sleep .how to set the WatchDog

  • Hello Lei,

    The bootloader is located at the very beginning of the flash. It is used to update the application firmware in the flash. You can update the application code whenever you want to.

    If you want to use the watdog on LS1224, please refer to the example code (example_dwwd.c in HALCoGen). LS1224 supports either time-out watchdog or digital windowed watchdog. The DWD is disabled by default. If it should be used, it must be enabled by writing a 32-bit value to the
    RTIDWDCTRL register. Once the DWD is enabled, it cannot be disabled except by system reset or power on reset.

    For dwwd (digital windowed watchdog), any attempt to service the watchdog outside the time window, or a failure to service the watchdog in this time window, will cause the watchdog to generate either a reset or a NMI to the CPU. The default window size is set to 100%, which corresponds to the DWD functionality of a time-out-only watchdog. The window size can be selected (through register RTIWWDSIZECTRL) from among 100%, 50%, 25%, 12.5%, 6.25% and 3.125%

    If you want to use the watchdog in TPS65381A-Q1, you need to enable/disable it through SPI. You need to disable the watchdog in TPS65381 before updating the firmware. Please refer to TPS65381 datasheet:

    www.ti.com/.../TPS65381-Q1

    or ask question at e2e of power management forum:

    e2e.ti.com/.../733543
  • IF I want the MCU sleep。it also to disable the watchdog in TPS65381。 Is It?
  • Hello Lei,

    The watchdog on TPS65381 monitors the correct operation of the MCU. This watchdog requires specific messages (Q&A) from the MCU in specific time intervals to detect correct operation of the MCU. The watchdog has two different modes: trigger mode, and Question and Answer (Q&A) mode. In Q&A mode, the MCU sends watchdog answers through SPI. In trigger mode, the MCU applies a trigger (pulse) on the ERROR/WDI pin to send the required watchdog event for trigger mode.

    The watchdog includes a watchdog fail counter which increments because of bad events or decrements because of good events. When the value of the watchdog fail counter is 5 or more, the watchdog status is out-of-range and the ENDRV pin is low. The ENDRV pin can be used in the application as a control signal to deactivate the power output stages, for example a motor driver, in case of incorrect operation of the MCU.

    Putting MCU in sleep doesn't stop the watchdog in TPS65381. If the MCU is in sleep mode and stops sending events (feeding the watchdog) during the watchdog sequence, the watchdog considers this lack of response from the MCU a time-out event (no response event). This increments the watchdog fail counter.