SPI slave support for nRF52-PCA10040 #spi #nrf52-pca10040


moritzgerlich@...
 

Hello at all,

i am trying to configure a nrf52-PCA10040 board to act as Slave for SPI but i am running into an issue.

When i try to setup the spi device as slave as shown at the end of the post, the spi device is Not set up as a spi slave in drivers/spi/spi_nrfx_spis.c but as master in drivers/spi/spi_nrfx_spi.c

Does someone know, how to correctly set up the spi device as a slave for the nrf-boards?

Thank you very much!

Config file:

CONFIG_SPI_NRFX=y
CONFIG_NRFX_SPIS=y
CONFIG_SPI=y
CONFIG_SPI_1_OP_MODES=2
CONFIG_SPI_1=y
CONFIG_SPI_1_IRQ_PRI=1
CONFIG_SPI_1_NRF_SPIS=y
CONFIG_SPI_1_NRF_SCK_PIN=29
CONFIG_SPI_1_NRF_MOSI_PIN=31
CONFIG_SPI_1_NRF_MISO_PIN=30


/home/stefan/Desktop/Screenshot at 2018-09-03 14:32:39.png

Join users@lists.zephyrproject.org to automatically receive all group messages.