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

nRF52840 SPI Slave

I am trying to use peripheral/spis as a reference for configuring my nRF52840 DK as a slave. The SPI clock frequency is 1 MHz. The SPI master is another micro-controller.

On the first call to nrf_drv_spis_buffers_set(...), I get an interrupt event NRF_DRV_SPIS_BUFFERS_SET_DONE and after that I don't get NRF_DRV_SPIS_XFER_DONE event at all.

I can see the SPI clock, MOSI data from the master and CSN low (before master starts transmitting) on the o-scope. What could possibly be wrong?

Parents Reply
  • I have the same problem and I use the SPIS_PCA10056 example. Here's my definition of pin :

    #ifndef APP_SPIS_SCK_PIN
    #define APP_SPIS_SCK_PIN 47
    #endif
    
    #ifndef APP_SPIS_MISO_PIN
    #define APP_SPIS_MISO_PIN 46
    #endif
    
    #ifndef APP_SPIS_MOSI_PIN
    #define APP_SPIS_MOSI_PIN 45
    #endif
    
    #ifndef APP_SPIS_CS_PIN
    #define APP_SPIS_CS_PIN 44
    #endif
    
    #ifndef APP_SPIS_IRQ_PRIORITY
    #define APP_SPIS_IRQ_PRIORITY 7
    #endif

    I don't undertsand why it doesn't work ...

Children
Related