It seems that when you call this function, it will not return until the erase has been completed, so it could block other code from running for many hundreds of milliseconds. Is there a non-blocking version of this function that can be polled for erase completed?