4 years, 11 months ago.

NRF52_DK, SPI slave mode and read/write delays.

I have two development kits based on arm processors which are mbed enabled. One of the kits is the nrf52_dk and the other is multitech's mdot UDK kit https://developer.mbed.org/platforms/MTS-mDot-F411/.

The mdot behaves as the SPI master and the nrf52 the SPI slave. I am using the mbed SPI master and SPI slave API's to communicate between the two devices. I have managed to get the applications on both the devices to communicate over SPI. However in the SPI master I have to introduce a delay as much as half a second/to a second between each of my writes to successfully read anything from the NRF52, otherwise either I lose data that is sent from the NRF52 or it seems like NRF52 doesn't respond to master writes. On the master and spi slave, have been configured for 8 bit data, in Mode 0 with a 1MHz clock rate.

Any ideas as to why I have to introduce delays to read anything successfully from the SPI slave?

Thanks, Ajay.

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.

1 Answer

4 years, 11 months ago.

I guess it can be caused by your implementation of handling spi_slave API in an app. I recommend to check: how frequent spi read is polled, and how replies are provided to the spi slave.