SDK V17.1, nRF52840 SOC, s140_nrf52_7.2.0_softdevice.hex
I am attempting to configure a spi device from a ble gap disconnect event handler. Before the disconnect event communication with the spi device is good.
When the disconnect event happens I try to read the device status register. The nRF52840 spi driver starts a read with nrf_drv_spi_transfer(..).
Then this code waits for the transfer to complete:
while((!spi_xfer_done) && --timeout)
__WFE();
if(!timeout)
{
NRF_LOG_DEBUG("SPI timeout!");
NRF_LOG_FLUSH();
return NRF_ERROR_TIMEOUT;
}
The timeout message is not seen and the code hangs waiting for an event. Could this be a soft device issue?
After BT reconnection event spi access once again works. config is attached.