This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

not getting NRF_SPI_EVENT_READY event

Hi - In my app, I'm using Bluetooth, the ADC, the TWI, and the SPI. The general idea is to measure lots of things, store the data in SPI NOR FLASH, and occasionally flush some data through BLE. All is good initially, but when everything is up and running, subsequent calls to the SPI bus hang at

while (!nrf_spi_event_check(p_spi, NRF_SPI_EVENT_READY)) {}

This is with SDK 13.0 on an nRF52. What am I missing? Thanks!

Parents
  • I've tried both, and that does not really help. As best as I can tell, there is some kind of interplay between the SPI1 bus and RTC1, which is used by the "application timer". When I do not fire up the application timer, then everything works. It took me a while to realize that the softdevice automatically turns on RTC0, and that the application timer is just a wrapper around RTC1. So the basic question is - how do I get the application timer (aka RTC1) to play well with SPI1?

Reply
  • I've tried both, and that does not really help. As best as I can tell, there is some kind of interplay between the SPI1 bus and RTC1, which is used by the "application timer". When I do not fire up the application timer, then everything works. It took me a while to realize that the softdevice automatically turns on RTC0, and that the application timer is just a wrapper around RTC1. So the basic question is - how do I get the application timer (aka RTC1) to play well with SPI1?

Children
No Data
Related