stm32f1x: use async algorithm in flash programming routine