Hi, I am trying to get the example spi slave working. I am using SDK 11.0 ( I will try again under the 12.0 SDK later today). I've checked my spi master by running the master in loopback mode and verifying that it does receive what is being sent. I also verified on a logic analyzer the state of the spi pins. This all seems correct. I get an initial invocation of the spi_event_handler when the peripheral is configured. Then no other events.
One thing that I don't understand is the convention for assigning pins to the MOSI, MISO etc. This post : devzone.nordicsemi.com/.../ has a response that the pin assignment follows gpio numbering. I have looked thru the nRF52 product specification and cannot find a mapping of the gpios. Is it possible to point me to the document (or header file ) that specifies the mapping of gpios to pin numbers
Another thing that puzzles me is that the header/pinout diagrams all seem to indicate that SPI0 is brought out on the header. But the spi slave example is using SPIS_INSTANCE =1 as the index. In reading thru the product specification it is not clear if there is a mapping of SPIS_INSTANCE(1) to the SPI0 peripheral and it's associated pins.
I did notice this morning that there is a difference between the latest SDK code and the SDK that I am currently using, so I will go back and attempt the SDK 12 version and see if I get different results
I have searched thru the examples and questions and I realize that there are a lot of questions related to SPI slave configuration ( so I apologize if the question is redundant).
Update : I installed the SDK12 and re-ran the SPI slave example. Same response. Next I compiled and ran the spi master example in loopback mode. The transfers complete, but all I get back is 0xff characters. The MOSI and MISO pins ( P0.23 & P0.24) are tied together. I also verified with an ohm meter that I have continuity on the cable that ties MISO and MOSI together.
Thanks Victor