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

qspi data handler function not getting called in ble peripheral code

I am trying to collect sensor data and store in flash using qspi interface. Unlike the peripheral example code, the qspi data handler function is not getting hit with ble stack. 

/*QSPI initialization*/

nrf_drv_qspi_config_t config = NRF_DRV_QSPI_DEFAULT_CONFIG;

uint32_t err_code = nrf_drv_qspi_init(&config,qspi_handler, NULL);
// m_finished = true;
APP_ERROR_CHECK(err_code);
if(err_code == NRF_SUCCESS)
{
NRF_LOG_INFO("QSPI initiated");
}

/*QSPI initialization*/

/*qspi handler function*/

static void qspi_handler(nrf_drv_qspi_evt_t event, void * p_context)
{


if (event = NRF_DRV_QSPI_EVENT_DONE)
{
// Handle incoming event from the peripheral.
m_finished = true;
}
}

/*qspi handler function*/

Can anyone help me to understand why the qspi_handler is not getting called in BLE peripheral?