This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

freertos_spi

Overview

The freertos_spi example shows how to use SPI driver in FreeRTOS:

In this example , one spi instance is used as SPI master with blocking and another spi instance is used as SPI slave.

  1. SPI master sends/receives data using task blocking calls to/from SPI slave. (SPI Slave uses interrupt to receive/send the data)

Running the demo

When the example runs successfully, you can see the similar information on the terminal as below.

SPI FreeRTOS example start. This example use one SPI instance in master mode to transfer data through loopback Please be sure to externally connect together SOUT and SIN signals. SOUT – SIN
SPI transfer completed successfully. Data verified ok.

Supported Boards