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? 

Parents
  • Hi

    I'm not sure what you mean about this. The QSPI handler is part of the QSPI driver which is independent of the BLE module of the SDK. You can include and implement the QSPI driver to an example using BLE if you want but this is not done by default. Please try to explain in detail what you want to achieve and I will try to help you.

    Best regards,

    Simon

Reply
  • Hi

    I'm not sure what you mean about this. The QSPI handler is part of the QSPI driver which is independent of the BLE module of the SDK. You can include and implement the QSPI driver to an example using BLE if you want but this is not done by default. Please try to explain in detail what you want to achieve and I will try to help you.

    Best regards,

    Simon

Children
No Data
Related