19.3.2.1 Use Model 1

The following steps are used to generate a reset by the watchdog timer on timeout.

  1. Enable the watchdog timer in MSS configurator of your Libero project.
  2. Select timeout behavior as reset in watchdog timer configuration window.
  3. Initialize the watchdog timer in the SoftConsole application using MSS_WD_init() function.
  4. Use MSS_WD_reload() function to reload its down counter timer with the load value configured through the call to WD_init().This function must be called regularly to avoid a system reset.
  5. Use MSS_WD_timeout_occured() to report the occurrence of a timeout event. It can be used to detect if the reset is resetting as part of a watchdog timeout.
  6. Call MSS_WD_clear_timeout_event() function after a call to MSS_WD_timeout_occured() function to clear the hardware's report of a time out event.