76 lines
2.1 KiB
Plaintext
76 lines
2.1 KiB
Plaintext
Overview
|
|
========
|
|
The WDOG Example project is to demonstrate usage of the KSDK wdog driver.
|
|
In this example,quick test is first implemented to test the wdog.
|
|
And then after 10 times of refreshing the watchdog in None-window mode, a timeout reset is generated.
|
|
We also try to refresh out of window to trigger reset after 10 times of refreshing in Window mode.
|
|
|
|
Toolchain supported
|
|
===================
|
|
- IAR embedded Workbench 7.50.1
|
|
- Keil MDK 5.17
|
|
- GCC ARM Embedded 2015-4.9-q3
|
|
- Kinetis Development Studio IDE 3.0.0
|
|
- Atollic TrueSTUDIO 5.4.0
|
|
|
|
Hardware requirements
|
|
=====================
|
|
- J-Link ARM
|
|
- FRDM-K22F board
|
|
- Mini/micro USB cable
|
|
- Personal Computer
|
|
|
|
Board settings
|
|
==============
|
|
No special is needed.
|
|
|
|
Prepare the Demo
|
|
================
|
|
1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
|
|
2. Open a serial terminal with these settings:
|
|
- 115200 baud rate
|
|
- 8 data bits
|
|
- No parity
|
|
- One stop bit
|
|
- No flow control
|
|
3. Download the program to the target board.
|
|
4. Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
|
|
|
|
Running the demo
|
|
================
|
|
When the example runs successfully, you can see the similar information from the terminal as below.
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
--- Quick test ---
|
|
--- Quick test done ---
|
|
--- None-window mode refresh test start---
|
|
--- Refresh wdog 1 time ---
|
|
--- Refresh wdog 2 time ---
|
|
--- Refresh wdog 3 time ---
|
|
--- Refresh wdog 4 time ---
|
|
--- Refresh wdog 5 time ---
|
|
--- Refresh wdog 6 time ---
|
|
--- Refresh wdog 7 time ---
|
|
--- Refresh wdog 8 time ---
|
|
--- Refresh wdog 9 time ---
|
|
--- Refresh wdog 10 time ---
|
|
--- None-window mode refresh test done ---
|
|
--- Window mode refresh test start---
|
|
--- Refresh wdog 1 time ---
|
|
--- Refresh wdog 2 time ---
|
|
--- Refresh wdog 3 time ---
|
|
--- Refresh wdog 4 time ---
|
|
--- Refresh wdog 5 time ---
|
|
--- Refresh wdog 6 time ---
|
|
--- Refresh wdog 7 time ---
|
|
--- Refresh wdog 8 time ---
|
|
--- Refresh wdog 9 time ---
|
|
--- Refresh wdog 10 time ---
|
|
--- Window mode refresh test done---
|
|
End of Wdog example!
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Customization options
|
|
=====================
|
|
|
|
|