AM263x MCU+ SDK  09.02.00
FSI Loopback Dma

Introduction

This example performs FSI TX to FSI RX internal loopback in DMA mode. The application configures an instance of FSI TX and FSI RX module with below configuration

  • Single lane
  • TX clock at 50 MHz
  • 16 words per frame (transfer)
  • Register both FSI TX DMA and FSI RX DMA edma interrupts
  • Set up two DMA channels to be triggered by the same FSI transmitter and DMA trigger.
  • Configure one channel to fill the transmit buffer.
  • Configure the other channel to set the frame tag and user data fields
  • Similar configuration for RX to receive data and frame tag.
  • 4 DMA Channels required to transmit and receive.

With above configuration, the application transfers 100 frames of data from FSI TX, waits for data to be received by FSI RX. EDMA completion interrupt is configured once all the data, tag and user data is transmitted/received.

Once the transfer completes, it compares the source and destination buffers for any data mismatch.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Boards am263x-cc, am263x-lp
Example folder examples/drivers/fsi/fsi_loopback_dma/

Steps to Run the Example

See Also

FSI

Sample Output

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

[FSI] Loopback Dma application started ...
[FSI] 100 frames successfully received!!!
All tests have passed!!