MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
WDOG Example

This example shows typical use of the Watchdog Timer (WDOG) module.

Source code:
/******************************************************************************
* (c) Copyright 2010-2015, Freescale Semiconductor Inc.
* ALL RIGHTS RESERVED.
******************************************************************************
* wdog_test.c
******************************************************************************/
#include "drivers.h"
void main (void)
{
volatile uint16 i=0;
/* Watchdog timeout is of 1.5 sec approximately */
while(1)
{
/*
* Adding the delay of approximately 2 ms because watchdog is running
* at 1 KHz clock. Commenting out this delay will cause watchdog reset.
*/
for(i=0;i<0xf0;i++);
}
}
Toolchain support:
IAR EWARM 7.40.7CodeWarrior 10.6KEIL uVision 5.15CrossWorks 3.6ATOLLIC TrueStudio 5.3.0Kinetis Design Studio 3.0.0