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

Clearing Pending Flash Events via System Reset

I have a rare issue where my device won't advertising as it is waiting for a Pending Flash event to clear. However I want to add a supervisor time-out to this. It is safe to call sd_nvic_SystemReset() to clear pending Flash events?

Thanks

Parents
  • Hi Einar,

    I know that the CPU is blocked during an operation. But I see cases where a Flash event is pending, pstorage_access_status_get(&count), count != 0

    I use Pstorage and I have a call back function which works 99% of the time. This only seems to occur when the device has intermittent connection to the central. Where its constantly connecting/disconnecting. Here is where is seems the chip starts to lag on Flash Event completion.

Reply
  • Hi Einar,

    I know that the CPU is blocked during an operation. But I see cases where a Flash event is pending, pstorage_access_status_get(&count), count != 0

    I use Pstorage and I have a call back function which works 99% of the time. This only seems to occur when the device has intermittent connection to the central. Where its constantly connecting/disconnecting. Here is where is seems the chip starts to lag on Flash Event completion.

Children
No Data
Related