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

Overview

The direct memory access (DMA) controller performs complex data transfers with minimal intervention from the host processor. This example uses the DMA peripheral to transfer data from the Flash to RAM by using the DMA with different channels.

Supported Platforms

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

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

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

DMA EXAMPLE
Requesting channel 0 to transfer data from address 0x37ec to 0x1fffe018
Starting tranfer data ...
Transfered with DMA channel No.0: successful
Press any key to start tranferring data with other channel

User need type characters from the keyboard and the board will transfer data by using other channel (number of supported channels depends on each DMA instance). These instructions are displayed/shown on the terminal window:

Requesting channel 1 to transfer data from address 0x37ec to 0x1fffe018
Starting tranfer data ...
Transfered with DMA channel No.1: successful
Press any key to start tranferring data with other channel
Requesting channel 2 to transfer data from address 0x37ec to 0x1fffe018
Starting tranfer data ...
Transfered with DMA channel No.2: successful
Press any key to start tranferring data with other channel
Requesting channel 3 to transfer data from address 0x37ec to 0x1fffe018
Starting tranfer data ...
Transfered with DMA channel No.3: successful
Press any key to start tranferring data with other channel