K20D5M flash algo for template