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

'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)

I am trying to Compiling ‘ble_advertising.c’ and get 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function).

This declaretion is already in the nrf_soc.h and i have set system include directories with path of the nrf_soc.h but still getting this error. Thank you.

Parents
  • Hi

    How is the SoftDevice enabled in your application? Is sd_evt_get() pulled from somewhere else in the application? Usually, these events are pulled from a software interrupt and passed to the event handler. This will occur before you're able to pull events in the application, as the interrupt has higher priority.

    Also, is there a reason you're using SDK v14.2.0 and not a more recent SDK?

    Best regards,

    Simon

Reply
  • Hi

    How is the SoftDevice enabled in your application? Is sd_evt_get() pulled from somewhere else in the application? Usually, these events are pulled from a software interrupt and passed to the event handler. This will occur before you're able to pull events in the application, as the interrupt has higher priority.

    Also, is there a reason you're using SDK v14.2.0 and not a more recent SDK?

    Best regards,

    Simon

Children
  • Because of the sdk version of my main project i want to use this version. If it is not needed i want to stick with this version. Maybe i skip something during the merge ? Where should be "sd_evt_get()" called from ? I can compile ble_app_buttonless_dfu_pca10040_s132 example and "nrf_soc.h" contains SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id));

Related