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

SPI Master from interrupt

I'm using the SPI Master driver code on the nrf52 using EasyDMA to talk to a SPI slave (Adesto Flash chip)

I can successfully initialize, read, write and read-back from the flash chip from MAIN.

However, if I try to instead read from a timer interrupt the firmware hangs after a successful call to nrf_drv_spi_transfer. It never gets to the callback, it instead resets without hitting the assert handler.

Is there a trick? Do I need to de-init and re-init? Is there something that could be throwing off my callback? I am also using the SAADC and timeslots and a second SPI instance.

Parents Reply Children
No Data
Related