xWRL6432 MMWAVE-L-SDK  05.04.00.01
MCSPI Loopback

Introduction

This example demonstrates the McSPI RX and TX operation configured in blocking, interrupt 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, MISO 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 m4fss0-0 freertos
m4fss0-0 nortos
Toolchain ti-arm-clang
Board xWRL6432-evm
Example folder examples/drivers/mcspi/mcspi_loopback

Using SDK with SysConfig

A GUI tool SysConfig is used to configure different modules and peripherals of the example. Using this tool, users can select and customize different modules and peripherals. The SysConfig tool will generate the code for initializing and configuring these modules. This configuration is saved to a file called example.syscfg for every example. To know more about how to use SDK with SysConfig, Visit this page

Using SDK with SysConfig

Steps to Run the Example

See Also

MCSPI

Sample Output

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

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