19.3.2.2 Use Model 2

The following steps are used to generate a watchdog timer interrupt on timeout.

  1. Enable the watchdog timer in MSS configurator of your Libero project.
  2. Select timeout behavior as interrupt in the watchdog timer configuration window.
  3. Initialize the watchdog timer in SoftConsole application using MSS_WD_init() function.
  4. Enable the watchdog timer timeout interrupt using MSS_WD_enable_timeout_irq() function.
  5. Use MSS_WD_reload() function to reload its down counter timer with the load value configured through the call to WD_init().
  6. Use MSS_WD_clear_timeout_irq() function in interrupt handler to clear the watchdog timeout interrupt.
Important:
  • The watchdog timer cannot be disabled through software. Only the interrupts can be disabled.
  • The MSS Watchdog timer does not support full behavioral simulation models. See SmartFusion2 MSS BFM Simulation User Guide for more information.