I am wondering what circumstances lead to the big difference of the write and erase times of the NVMC. Since the difference between the max. value is a multiple of the min. value are there certain things to pay attention or avoid?
Thanks in advance
I am wondering what circumstances lead to the big difference of the write and erase times of the NVMC. Since the difference between the max. value is a multiple of the min. value are there certain things to pay attention or avoid?
Thanks in advance
When using SoftDevice you should use the Flash memory API. Use sd_flash_write() to write and sd_flash_page_erase() to erase.
The API will schedule flash access in between radio events automatically, to avoid conflicts between the radio and the flash operations. The way this works is that you don't really know when the flash access will happen, but you will get an event after the flash operation is complete telling you whether or not the flash operation was successful.
In cases where flash access fails you can typically just retry the operation, but if you have so aggressive connection parameters that there is no room for flash operations (mainly a problem for flash erase operations) you might have to either change the connection parameters or temporarily disconnect the BLE link.
Yes I was. That's good to know. Thank you!
Yes I was. That's good to know. Thank you!