19.3.2.1 Use Model 1
The following steps are used to generate a reset by the watchdog timer on timeout.
- Enable the watchdog timer in MSS configurator of your Libero project.
- Select timeout behavior as reset in watchdog timer configuration window.
- Initialize the watchdog timer in the SoftConsole application using MSS_WD_init() function.
- 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.
- 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.
- 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.