dma3_scatter_gather#
Overview#
The EDMA memory to memory example is a simple demonstration program that uses the SDK software. It excuates one shot transfer from source buffer to destination buffer using the SDK EDMA drivers. The purpose of this example is to show how to use the EDMA and to provide a simple example for debugging and further development.
Supported Boards#
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 Board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board.
Connect a USB cable between the host PC and the Debug port 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
Generate flash.bin with imx-mkimage on host pc
git clone
cd imx-mkimage
cp
.bin imx-mkimage/iMX8ULP/ for single boot type:
make SOC=iMX8ULP REV=A1 flash_singleboot_m33 (for A1 sillicon)
make SOC=iMX8ULP REV=A0 flash_singleboot_m33 (for A0 sillicon)
for low power boot type/dual boot type:
make SOC=iMX8ULP REV=A1 flash_dual_m33
make SOC=iMX8ULP REV=A0 flash_dual_m33
Download flash.bin for single boot type: a. Download to emmc(for single boot type) with uuu
uuu -b emmc imx-boot-imx8ulpevk-sd.bin-flash_singleboot_m33 flash.bin (Need download the file imx-boot-imx8ulpevk-sd.bin-flash_singleboot_m33 from linux bsp)
for low power boot type/dual boot type: a. Download to flexspi nor flash of m33 with uboot console(pls refer to the doc Getting Started with MCUXpresso SDK for EVK-MIMX8ULP and EVK9-MIMX8ULP.pdf) b. Download to flexspi nor flash of m33(for low power boot type/dual boot type) with jlink(pls refer to the doc Getting Started with MCUXpresso SDK for EVK-MIMX8ULP and EVK9-MIMX8ULP.pdf) c. Download to flexspi nor flash of m33 with uuu(write a uuu script to write flash.bin to flexspi nor flash of m33, pls refer to uuu manual)
Power Off board and Power on board
Note: Pls not running the demo that use TRDC with debugger(jlink or others)
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 Board
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe to the board.
Connect a USB cable between the host PC and the Debug port 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
Generate flash.bin with imx-mkimage on host pc
git clone
cd imx-mkimage
cp
.bin imx-mkimage/iMX8ULP/ for single boot type:
make SOC=iMX8ULP REV=A1 flash_singleboot_m33 (for A1 sillicon)
make SOC=iMX8ULP REV=A0 flash_singleboot_m33 (for A0 sillicon)
for low power boot type/dual boot type:
make SOC=iMX8ULP REV=A1 flash_dual_m33
make SOC=iMX8ULP REV=A0 flash_dual_m33
Download flash.bin for single boot type: a. Download to emmc(for single boot type) with uuu
uuu -b emmc imx-boot-imx8ulpevk-sd.bin-flash_singleboot_m33 flash.bin (Need download the file imx-boot-imx8ulpevk-sd.bin-flash_singleboot_m33 from linux bsp)
for low power boot type/dual boot type: a. Download to flexspi nor flash of m33 with uboot console(pls refer to the doc Getting Started with MCUXpresso SDK for EVK-MIMX8ULP and EVK9-MIMX8ULP.pdf) b. Download to flexspi nor flash of m33(for low power boot type/dual boot type) with jlink(pls refer to the doc Getting Started with MCUXpresso SDK for EVK-MIMX8ULP and EVK9-MIMX8ULP.pdf) c. Download to flexspi nor flash of m33 with uuu(write a uuu script to write flash.bin to flexspi nor flash of m33, pls refer to uuu manual)
Power Off board and Power on board
Note: Pls not running the demo that use TRDC with debugger(jlink or others)
Running the demo
When the example runs successfully, you can see the similar information from the terminal as below.
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-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 J14.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-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 J14.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-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 J14.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 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 on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
FRDM-KW43
Hardware requirements
Type-C USB cable
FRDM-KW43 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 J28.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8
FRDM-MCXW70
Hardware requirements
Type-C USB cable
FRDM-MCXW70 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 J28.
Open a serial terminal on PC for the 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, the following message is displayed in the terminal:
EDMA scatter_gather transfer example begin.
Destination Buffer:
0 0 0 0 0 0 0 0
EDMA scatter_gather transfer example finish.
Destination Buffer:
1 2 3 4 5 6 7 8