MKM34Z256VLx7 Bare Metal Software Drivers  R4.1.6
Reference Manual
OSC Example

This example shows typical use of the System Oscillator (OSC) module. The OSC_Init(OSC_MODULE_OSCERCLK_ON_STOPMODE_ON_CONFIG(OSC_SC0P)) macro activates external reference (OSCERCLK) clock in Run and Stop modes.

Source code:
/******************************************************************************
* (c) Copyright 2010-2015, Freescale Semiconductor Inc.
* ALL RIGHTS RESERVED.
******************************************************************************
* osc_test.c
******************************************************************************/
#include "drivers.h"
void main (void)
{
/* route core clock to PTF7 */
/* clock mode 1:1:1 */
/* System oscillator and FLL settings */
while(1);
}
Toolchain support:
IAR EWARM 7.40.7KEIL uVision 5.15CrossWorks 3.6ATOLLIC TrueStudio 5.3.0Kinetis Design Studio 3.0.0