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

Overview

The enhanced direct memory access (eDMA) controller is a second-generation performing complex data transfers with minimal intervention from a host processor. This example uses the eDMA peripheral to transfer data from the Flash to RAM using the eDMA with different channels.

Supported Platforms

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

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

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

EDMA transfer from memory to memory
Starting EDMA channel No. 0 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.0: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 1 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.1: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 2 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.2: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 3 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.3: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 4 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.4: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 5 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.5: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 6 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.6: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 7 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.7: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 8 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.8: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 9 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.9: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 10 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.10: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 11 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.11: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 12 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.12: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 13 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.13: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 14 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.14: successful
Press any key to start transfer with other channel
Starting EDMA channel No. 15 to transfer data from addr 0x1fff0000 to addr 0x1fff0028
Transfered with eDMA channel No.15: successful
Press any key to start transfer with other channel

This example will try to transfer data from FLASH to RAM on each channels that are supported by the eDMA instance.