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

nrf52 s332 - sd_flash_erase while scanning?

Can I expect the call to sd_flash_erase() to successfully erase a page of flash while I have an ANT channel open doing a low priority search?

What about when doing a BLE background scan?

Parents
  • Both BLE and ANT softdevices uses a sort of timeslot mechanism. Since sd_flash_xxx uses the same mechanism, there will be no conflict. So the answer is YES sd_flash_xxx operation will work with ANT and BLE activity. One thing worth mentioning is that the flash operation has the least priority when compared to BLE and ANT activity. So if there is a lot of protocol traffic, then you MAY get flash operation timed out as it did not get a timeslot to perform the flash operation within a reasonable time.

Reply
  • Both BLE and ANT softdevices uses a sort of timeslot mechanism. Since sd_flash_xxx uses the same mechanism, there will be no conflict. So the answer is YES sd_flash_xxx operation will work with ANT and BLE activity. One thing worth mentioning is that the flash operation has the least priority when compared to BLE and ANT activity. So if there is a lot of protocol traffic, then you MAY get flash operation timed out as it did not get a timeslot to perform the flash operation within a reasonable time.

Children
Related