gdma_transfer_wrap#
Overview#
This project shows how to use GDMA transactional APIs to do the wrap transfer.
Both the source address and destination address can be wrapped.
In this example, there are 2 buffer, s_wrappedData is 16-byte buffer, s_unwrappedData is 64-byte buffer.
In case APP_GdmaSrcWrap, s_wrappedData is filled with 0, 1, 2, …, 15, s_unwrappedData is empty. GDMA copies s_wrappedData to s_unwrappedData, and the source address wrap is set to 16. When transfer finished, the s_unwrappedData is: 0, 1, 2, …, 15, 0, 1, 2, …, 15, 0, 1, 2, …, 15, 0, 1, 2, …, 15.
In case APP_GdmaDestWrap, s_unwrappedData is filled with 0, 1, 2, …, 63, s_wrappedData is empty. GDMA copies s_unwrappedData to s_wrappedData, and the destination address wrap is set to 16. When transfer finished, the s_wrappedData is: 48, 49, 50, …, 63.
The project checks the data and shows the result in terminal.
Supported Boards#
FRDM-RW612
Hardware requirements
Micro USB cable
FRDM-RW612 board
Personal Computer
Board settings
No special settings are required.
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 example.
Running the demo
The example run result will be shown in the terminal.
RD-RW612-BGA
Hardware requirements
Micro USB cable
RD-RW612-BGA board
Personal Computer
Board settings
No special settings are required.
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 example.
Running the demo
The example run result will be shown in the terminal.