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

Different SPI master hosts used for Nordic SPIS peripheral

Hi all,

I want to verify nRF52840 SoC SPIS peripheral on PCA10056 DK using any compatible SPI master hosts. I use SDK v15.2.0 SPIS example.

I know that Nordic SPIS peripheral is compatible with any SPIM according to hardware wise but not software. SDK example provided SPIM and SPIS test both with Nordic interdependent.

So how can I make use of Nordic SDK SPIS example to test with any type of host using SPI master?

Please provide your valuable suggestions

Thanks

Sridhar

  • Hello,

    As you said, the nRF52840 SPIS example is already working with the SPI(M) example.

    Do you have a SPI master device that you can't receive data from? If so, I recommend that you check the spi-mode which is set in 

    nrf_drv_spis_config_t spis_config = NRF_DRV_SPIS_DEFAULT_CONFIG;

    You can try the different mode by changing this parameter before calling nrf_drv_spis_init(); just like the different pins are changed after setting the spis_config = NRF_DRV_SPIS_DEFAULT_CONFIG; and before nrf_drv_spis_init();

    There are 4 modes, which are the possible variants of the two settings, active low or active high and sample on trailing edge or leading edge of the clock signal. They are described in nrf_spis.h, on line 107-113.

    Best regards,

    Edvin

Related