nRF51 SDK - S110 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
SPI Slave Example

The SPI Slave Example has been created for verifying the SPI connectivity link for the SPI Master Example.

The application uses the Board Support Package to indicate the status of the SPI transaction.

The name of the example is spi_slave_pca10028. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\examples\peripheral\spi_slave

Testing

Test the SPI Slave Example application by performing the following steps:

  1. Connect two boards using SPI.
  2. Compile and program both applications (spi_master_with_spi_slave_pca10028 and spi_slave_pca10028).
  3. Observe that BSP_INDICATE_RCV_OK indicates each incoming packet.
  4. BSP_INDICATE_FATAL_ERROR is indicated if an error occurred.