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

Parents
  • Hi Hakon,

    Thanks for your reply. We are new to this Nordic series development. We tried using nrftools and segger embedded studio  to load the sample from SDK given. The Spi part we just used only the Init part. Can you help to look the folder and advise us where we went wrong. Because we changed the proj.conf file and the overlay files. But it failed in the initialize part.

    Is the folder you have referred below in github is compatible with nrf9160dk? As I dont see the respective overlay file in the folder you have referred. We are not worried about coding after initializing the SPI. Somewhere some setting we are missing and that is why we keep getting error on initialize of SPI.

    It will be of great help if you can help to either run through our attachment and see where the mistake is or if just a new project which works with nrf9160dk with just the SPI init part done in main.c will be of great help us to move further. 

Reply
  • Hi Hakon,

    Thanks for your reply. We are new to this Nordic series development. We tried using nrftools and segger embedded studio  to load the sample from SDK given. The Spi part we just used only the Init part. Can you help to look the folder and advise us where we went wrong. Because we changed the proj.conf file and the overlay files. But it failed in the initialize part.

    Is the folder you have referred below in github is compatible with nrf9160dk? As I dont see the respective overlay file in the folder you have referred. We are not worried about coding after initializing the SPI. Somewhere some setting we are missing and that is why we keep getting error on initialize of SPI.

    It will be of great help if you can help to either run through our attachment and see where the mistake is or if just a new project which works with nrf9160dk with just the SPI init part done in main.c will be of great help us to move further. 

Children
Related