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
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Boards | am263x-cc, am263x-lp |
Example folder | examples/drivers/watchdog/watchdog_reset/ |
Steps to Run the Example
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 few iterations
Watchdog triggers warm reset in 3000 (ms)
All tests have passed!!
Prints will be stopped after reset
Prints will be stopped after reset
Prints will be stopped after reset
'' ''
'' ''
'' ''
Prints will be stopped after reset
UART Console:
Watchdog reset Mode Test Started ...
Servicing WDT for few iterations
Watchdog triggers warm reset in 3000 (ms)
All tests have passed!!
Prints will be stopped after reset
Prints will be stopped after reset
Prints will be stopped after reset
'' ''
'' ''
'' ''
Prints will be stopped after reset