SPI slave not receiving messages

Hello DevZone,

I am using the following example: github.com/.../ncs-spi-master-slave-example.git to test the functionality of the SPI slave device driver under zephyr. However, data does not seem to arrive at the SPI Slave RX, sent by the SPI TX. I have connected the pins as follows:

A5 <--> D0
A4 <--> D1
A3 <--> D2
A2 <--> D3

And I have compiled this repository for the nRD52840dk. When observing the NRF terninal, I get the following output, which makes it appear that the input for SPI_slave_RX is floating:

I have analyzed the logic state on the MOSI pin and I get the following, which makes it seem valid that data is on the pin:

I have also tried enabling pull up resistors by adding: bias-pull-up; to the &pinctrl, but this does not seem to fix it.

When compiling, I get a warning: Experimental symbol SPI_SLAVE is enabled.

Is there any knowledge on whether the SPI Slave drivers are working at all, if so, what can be done so that communication is possible from master TX to slave RX?

Parents Reply
  • Hey Jorgen, I tried assigning these pins, and it now seems to work on my end. I also tried it on the nRF52833, and it works as well when using it with SPI0 and SPI1, and swapping <NRF_PSEL(SPIS_MOSI, 1, 2)> to <NRF_PSEL(SPIS_MOSI, 0, 20)>.

    I am curious to whatever caused. There is some application specific issues that I am still concerned with, I am opening a new ticket to discuss these in private.

    Thank you for the help!

Children
No Data
Related