Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WDOG Example

Overview

The WDOG Example project is a demonstration program that uses the KSDK software to show a simple application that enables watchdog, then continuously refreshes the watchdog to prevent CPU reset. Upon SW button push, the watchdog will expire after approximately 2 seconds and chip will reset.

Supported Platforms

These Freescale Freedom development platforms and Tower System modules are supported by the WDOG example.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

The WDOG Example project does not call for any special hardware configurations. Although not required, the recommendation is to leave the development board's jumper settings and configurations in default state when running this example.

Prepare the example

  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.

Run the example

These instructions are displayed/shown on the terminal window:

WDOG example
Press SW1 to expire watchdog
WDOG reset count 1
Press SW1 to expire watchdog
WDOG reset count 2
Press SW1 to expire watchdog

After that, user need press the SW (*) button on board and observe a LED toggle for showing that the watchdog is about to expire.