dma_channel_chain#
Overview#
The DMA channel chain transfer example is a simple demonstration program about how to use channel chain feaute with the SDK software. In this example three channel is used,
------->channel1------->channel0
|
channel0-->
|
------->channel2
Channel0 is configured with two descriptor, first descriptor is linked to the second, then trigger the channel0 by software, after channel0 first descriptor finish, it will trigger channel1 and channel2 start transfer, after channel1 descriptor exhaust it will trigger channel0, then channel0 second descritpor will be carried out, after second descriptor exhaust, example finish.
Supported Boards#
EVK-MIMXRT595
Hardware requirements
Micro USB cable
EVK-MIMXRT595 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
EVK-MIMXRT685
Hardware requirements
Micro USB cable
EVK-MIMXRT685 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
FRDM-MCXW23
Hardware requirements
Type-C USB cable
FRDM-MCXW23 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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 example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
FRDM-RW612
Hardware requirements
Micro USB cable
FRDM-RW612 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J10) on the 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPC845BREAKOUT
Hardware requirements
Micro USB cable
LPC845 Breakout board
Personal Computer
Board settings
No special settings are required.
Prepare the demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board.
Open a serial terminal with the following settings:
9600 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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso51U68
Hardware requirements
Micro USB cable
LPCXpresso51U68 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J6) on the 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 example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso54628
Hardware requirements
Micro USB cable
LPCXpresso54628 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the host PC and the LPC-Link USB port (J8) 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 example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso54S018
Hardware requirements
Micro USB cable
LPCXpresso54S018 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the host PC and the LPC-Link USB port (J8) 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 example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso54S018M
Hardware requirements
Micro USB cable
LPCXpresso54S018M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the host PC and the LPC-Link USB port (J8) 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 example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso55S06
Hardware requirements
Mini/micro USB cable
LPCXpresso55S06 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso55S16
Hardware requirements
Mini/micro USB cable
LPCXpresso55S16 board
Personal Computer
Board settings
The jumper setting: Default jumpers configuration does not work, you will need to add JP20 and JP21 (JP22 optional for ADC use)
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso55S28
Hardware requirements
Mini/micro USB cable
LPCXpresso55S28 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso55S36
Hardware requirements
Mini/micro USB cable
LPCXpresso55S36 board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J1) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso55S69
Hardware requirements
Mini/micro USB cable
LPCXpresso55s69 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (P6) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso824MAX
Functional description
Channel chaining is a feature, which allows completion of a DMA transfer on channel x to trigger a DMA transfer on channel y.
Toolchain supported
IAR embedded Workbench 8.50.5
Keil MDK 5.31
GCC ARM Embedded 9.2.1
MCUXpresso 11.2.0
Hardware Requirements
Mini/micro USB cable
LPCXpresso824MAX board
Personal Computer
Board Settings
No special settings are required.
Run the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP port(J3 on the board).
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Choose an IDE, building the project and download the program to the target board. More information about how to compile and program the project can refer to the
[Getting Started with MCUXpresso SDK](../../../../docs/Getting Started with MCUXpresso SDK.pdf).
Launch the debugger in your IDE to begin running the demo.
Expected Result
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso845MAX
Functional description
Channel chaining is a feature, which allows completion of a DMA transfer on channel x to trigger a DMA transfer on channel y.
Hardware Requirements
Mini/micro USB cable
LPCXpresso845MAX board
Personal Computer
Board Settings
No special settings are required.
Run the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP port(J4 on the board).
Open a serial terminal with the following settings:
9600 baud rate
8 data bits
No parity
One stop bit
No flow control
Choose an IDE, building the project and download the program to the target board. More information about how to compile and program the project can refer to the
[Getting Started with MCUXpresso SDK](../../../../docs/Getting Started with MCUXpresso SDK.pdf).
Launch the debugger in your IDE to begin running the demo.
Expected Result
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
LPCXpresso860MAX
Hardware requirements
Micro USB cable
LPCXpresso860MAX board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J4) on the board
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
9600 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, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
MIMXRT685-AUD-EVK
Hardware requirements
Micro USB cable
MIMXRT685-AUD-EVK board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
RD-RW612-BGA
Hardware requirements
Micro USB cable
RD-RW612-BGA board
Personal Computer
Board settings
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J7) on the 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444
MCXW23-EVK
Hardware requirements
Mini/micro USB cable
MCXW23-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J33.
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 example runs successfully, the following message is displayed in the terminal:
DMA channel chain example begin.
Destination Buffer:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DMA channel chain example finish.
Destination Buffer:
1 2 3 4 11 22 33 44 111 222 333 444 1111 2222 3333 4444