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.
Parameter | Value |
---|---|
CPU + OS | m4fss0-0 freertos |
m4fss0-0 nortos | |
Toolchain | ti-arm-clang |
Board | xWRL6432-evm |
Example folder | examples/drivers/mcspi/mcspi_loopback |
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
Shown below is a sample output when the application is run,