dma_channel_link#
Overview#
The DMA channel link example is a simple demonstration program that uses the SDK software. It executes channel link transfer using the SDK DMA drivers. The purpose of this example is to show how to use the DMA and to provide a simple example for debugging and further development. not finished not finished +—————-+ +—————-+ v | v | +——-+ +——————–+ each request trigger +——————–+ finished +——————+ | start | –> | channel 0 transfer | ———————-> | channel 1 transfer | ———-> | example complete | +——-+ +——————–+ +——————–+ +——————+
Supported Boards#
FRDM-K32L2B
Hardware requirements
Mini/micro USB cable
FRDM-K32L2B board
Personal Computer
Board settings
The DMA memory to memory demo does not call for any special hardware configurations.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB on the board.
Open a serial terminal on PC for OpenSDA serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
DMA channel link example begin.
Destination Buffer:
0 0 0 0
DMA channel link example finish.
Destination Buffer 0:
1 2 3 4
Destination Buffer 1:
1 2 3 4
FRDM-MCXC242
Hardware requirements
Mini USB cable
FRDM-MCXC242 board
Personal Computer
Board settings
The DMA memroy to memory demo does not call for any special hardware configurations.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB on the board.
Open a serial terminal on PC for OpenSDA serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
DMA channel link example begin.
Destination Buffer:
0 0 0 0
DMA channel link example finish.
Destination Buffer 0:
1 2 3 4
Destination Buffer 1:
1 2 3 4
TWR-KM34Z50MV3
Hardware requirements
Mini USB cable
TWR-KM34Z50MV3 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, the following message is displayed in the terminal:
DMA channel link example begin.
Destination Buffer:
0 0 0 0
DMA channel link example finish.
Destination Buffer 0:
1 2 3 4
Destination Buffer 1:
1 2 3 4
TWR-KM34Z75M
Hardware requirements
Mini USB cable
TWR-KM34Z75M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, the following message is displayed in the terminal:
DMA channel link example begin.
Destination Buffer:
0 0 0 0
DMA channel link example finish.
Destination Buffer 0:
1 2 3 4
Destination Buffer 1:
1 2 3 4
TWR-KM35Z75M
Hardware requirements
Micro USB cable
TWR-KM35Z75M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the demo runs successfully, the following message is displayed in the terminal:
DMA channel link example begin.
Destination Buffer:
0 0 0 0
DMA channel link example finish.
Destination Buffer 0:
1 2 3 4
Destination Buffer 1:
1 2 3 4