FDS asynchronous operation to synchronous

Hi

I am writng some peer information just after connection using pm_peer_data_store. I need to read the data stored to do the next task. As the FDS is asynchronous, i am not able to wait for the completion of FDS write using a wait loop. Is there any way to make it synchronous? Please suggest  a solution to this.

with regards,

Ansil

Parents Reply
  • Hi Vidar,

    I have used a wait cycle with sd_app_evt_wait() inside. And i didn't obtain any event from the peer_data_storage.c. As per documentation, the priority of flash access is four (priority) and also "In order to wake up from disabled interrupts, the SEVONPEND flag has to be set in the Cortex-M MCU's System Control Register (SCR), CMSIS_SCB" (disabled interrupts. So are these the reasons for this asynchronous behaviour and also are FDS events disabled interrupts? 

    with regards,

    Ansil

Children
Related