update k64f flash algo (copy from pyOCD)