cmsis_uart_dma_transfer#
Overview#
CMSIS-Driver defines generic peripheral driver interfaces for middleware making it reusable across a wide range of supported microcontroller devices. The API connects microcontroller peripherals with middleware that implements for example communication stacks, file systems, or graphic user interfaces. More information and usage method please refer to http://www.keil.com/pack/doc/cmsis/Driver/html/index.html.
The cmsis_uart_edma_transfer example shows how to use uart cmsis driver with EDMA:
In this example, one uart instance connect to PC through uart, the board will send back all characters that PC send to the board.
Note: The example echo every 8 characters, so input 8 characters every time.
Supported Boards#
FRDM-K32L2B
Hardware requirements
Mini USB cable
FRDM-K32L2B board
Personal Computer
USB to Com Converter
Board settings
Connect pin:
RX of USB2COM to J1_6
TX of USB2COM to J2-4
GND of USB2COM to J2-14
Prepare the Demo
Connect USB to Com Converter between the PC host and the port on the board.
Open a serial terminal on PC for 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.
Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:
USART DMA example
Send back received data
Echo every 8 characters
When you input 8 characters, system will echo it by UART and them would be seen on the OpenSDA terminal.
FRDM-MCXC242
Hardware requirements
Mini USB cable
USB to TTL converter
FRDM-MCXC242 board
Personal Computer
Board settings
Connect the USB to TTL converter to FRDM-MCXC242 board. FRDM-MCXC242 UART pins:
TX of USB2COM to J1-5
RX of USB2COM to J1-7
GND of USB2COM to J2-14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the board.
Connect the USB to TTL converter to PC host.
Open a serial terminal on PC for the USB to TTL converter with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:
USART DMA example
Send back received data
Echo every 8 characters
When you input 8 characters, system will echo it by UART and them would be seen on the OpenSDA terminal.
FRDM-MCXC444
Hardware requirements
Type-C USB cable
FRDM-MCXC444 board
Personal Computer
USB to Com Converter
Board settings
Connect pin:
RX of USB2COM to J1_6
TX of USB2COM to J2-4
GND of USB2COM to J2-14
Prepare the Demo
Connect USB to Com Converter between the PC host and the port on the board.
Open a serial terminal on PC for 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.
Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:
USART DMA example
Send back received data
Echo every 8 characters
When you input 8 characters, system will echo it by UART and them would be seen on the terminal.
TWR-KM34Z50MV3
Hardware requirements
Mini USB cable
TWR-KM34Z50MV3 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect USB to Com Converter between the PC host and the port on the board.
Open a serial terminal on PC for 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.
Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:
USART DMA example
Send back received data
Echo every 8 characters
When you input 8 characters, system will echo it by UART and them would be seen on the terminal.
TWR-KM34Z75M
Hardware requirements
Mini USB cable
TWR-KM34Z75M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect USB to Com Converter between the PC host and the port on the board.
Open a serial terminal on PC for 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.
Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:
USART DMA example
Send back received data
Echo every 8 characters
When you input 8 characters, system will echo it by UART and them would be seen on the terminal.
TWR-KM35Z75M
Hardware requirements
Micro USB cable
TWR-KM35Z75M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect USB to Com Converter between the PC host and the port on the board.
Open a serial terminal on PC for 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.
Reset the SoC and run the project.
Running the demo
When the demo runs successfully, the log would be seen on the UART Terminal port which connected to the USB2COM like:
USART DMA example
Send back received data
Echo every 8 characters
When you input 8 characters, system will echo it by UART and them would be seen on the terminal.