[flash-stm32f4] more fixes