Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 10 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:
1 Answer
7 years, 10 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.