AM261x MCU+ SDK: Watchdog reset mode

| AM261x MCU+ SDK 26.00.00 |

Watchdog reset mode

# Introduction

This example uses the WDT module in reset mode to trigger SOC warm reset. Servicing the WDT for few iterations before triggering the warm reset. It will reset the device once it reaches the expiry time set by user. Note that this example won't work in the debug mode as the user must not service the watchdog while in debug mode. For it to work, we can flash the image to get the expected result.

# Supported Combinations

# Steps to Run the Example

- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
- Please select the UART port used for console as mentioned in Setup UART Terminal

# See Also

WATCHDOG

# Sample Output

Shown below is a sample output when the application is run, Please note that application prints in both CCS and UART console.

Note
  Console prints will be stopped once WDT triggers warm reset.

CCS Console:

[MAIN_Cortex_R5_0_0] Watchdog reset Mode Test Started ...
Servicing WDT for 3 iterations
Servicing WDT !!
Servicing WDT !!
Servicing WDT !!
Watchdog triggers warm reset in 3000 (ms)
All tests have passed!!
3
2
1

UART Console:

Watchdog reset Mode Test Started ...
Servicing WDT for 3 iterations
Servicing WDT !!
Servicing WDT !!
Servicing WDT !!
Watchdog triggers warm reset in 3000 (ms)
All tests have passed!!
3
2
1