This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI master and slave loop back test, but the slave is receive 0x00 bytes at all

Hi everyone,

I am using NRF52832 and I use SPI as communication protocol. I check my SPI master by connect its MOSI and MISO pins together, and it works correctly. Now I want to check my SPI slave. I connect SPI slave and SPI master as below:

SPI master------SPI slave
MOSI-------------MOSI
MISO-------------MISO
SCK--------------SCK
CSN--------------CSN

When I send the string "Nordic is the best" from SPI master to SPI slave, all slave bytes received i s 20 0x00 bytes. Can you help me please? Thanks for reading!

Parents Reply
  • Hi Jorgen,

    I am new to Nordic. I am also trying to create an SPI master and Slave on a single nRF52832 (PCA10040) Development board with SDK Version 15.0. I have created a slave instance in the SPI example (using SPIS example as reference).

    Pin mapping:

    # PIN NAME MASTER SLAVE
    1 MISO Pin 28 Pin 05
    2 MOSI Pin 04 Pin 06
    3 CSN Pin 29 Pin 07
    4 CLK Pin 03 Pin 08

    My issue is that the master is receiving the correct data but the slave is not.

    I have checked on logic anlayzer, data on MOSI pin is valid, however, slave receive buffer does not show me correct data.

Children
Related