AM62x MCU+ SDK  09.02.01
MCSPI Loopback DMA

Introduction

This example demonstrates the McSPI RX and TX operation configured in blocking, DMA mode of operation.

This example sends a known data in the TX mode of length APP_MCSPI_MSGSIZE and then receives the same in RX mode. Internal pad level loopback mode is enabled to receive data. To enable internal pad level loopback mode, D0 pin is configured to both TX Enable as well as RX input pin in the SYSCFG.

When transfer is completed, TX and RX buffer data are compared. If data is matched, test result is passed otherwise failed.

Supported Combinations

Parameter Value
CPU + OS a53ss0-0 freertos
Toolchain arm.gnu.aarch64-none
Boards am62x-sk, am62x-sk-lp, am62x-sip-sk
Example folder examples/drivers/mcspi/mcspi_loopback_dma

Steps to Run the Example

See Also

MCSPI

Sample Output

Shown below is a sample output when the application is run,

[MCSPI] Loopback example DMA mode started ...
----------------------------------------------------------
McSPI Clock 1000000 Hz
----------------------------------------------------------
Data Width Data Length Transfer Time (micro sec)
8 128 1132.80
----------------------------------------------------------
All tests have passed!!