nRF51 SDK v9.0.0
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:
- Connect two boards using SPI.
-
Compile and program both applications (
spi_master_with_spi_slave_pca10028andspi_slave_pca10028). - Observe that BSP_INDICATE_RCV_OK indicates each incoming packet.
- BSP_INDICATE_FATAL_ERROR is indicated if an error occurred.