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
PDB Example

Overview

The PDB Example project is a demonstration program that uses the KSDK software and PDB to generate a constant periodic of time (trigger pulse and interrupt). Each time the PDB expires, an interrupt occurs and counter is increased and prints to the terminal.

Supported Platforms

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

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

The PDB 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:

PDB example
PDB ISR No.1 occurred !
PDB ISR No.2 occurred !
PDB ISR No.3 occurred !
PDB ISR No.4 occurred !
PDB ISR No.5 occurred !
PDB ISR No.6 occurred !
PDB ISR No.7 occurred !
PDB ISR No.8 occurred !
PDB ISR No.9 occurred !
PDB ISR No.10 occurred !
PDB example finished
Press any key to run example again