SPI not able to initiate in nrf9160DK - spi slave is so hard in sdk 1.9.1

Hi there,

We are using
nrf9160 DK v1.0.0 ( pca10090 ).
SES version 5.68
nrf Connect SDK 1.9.1
Windows 10

I want to make it as spi slave on pins CS=p0.10, mosi=p0.11, miso=p0.12, sck=p0.13 for (arduino compatible).

also tried updating on all possible files., nothing seem to working.

note:
I followed devzone.nordicsemi.com/.../nrf9160-spi-slave-example-code
spi part of code taken from github.com/.../spi

spi_init failing with returning null device some times and hence HARD falut.
now it coms as spi master only i guess.

but still no luck, still spi3 is master in the output zephyr.dts

I am attaching the full folder of the code. Please help to find what configuration are we missing or what needs to be done. Advance thanks.

mqtt_simple_nu.zip

Related