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

Hard fault when spi msg receive during ble scanning.

Hi,

I setup the nrf51 as in central mode and talking to an ARM Cortex mcu via spi bus with the NRF51 set to slave. The spi communication working fine, but when I star scanning and the ble event start coming in, I getting hardfault when I try to sent spi msg from the ARM over. It seem to be the spi interupt causing the hard fault when ble event coming in from softdevice. My handle for the spi interupt is very simple, very time I got SPI_SLAVE_XFER_DONE, I call the spi_slave_buffers_set to make it go to the next state as require to.

I wonder if I have missed something, do I need to do anything special for the spi interupt handle when ble events coming in?

I'm using SDK 9 and s130.

Thanks, Kevin.

Related