stm32f4: fix flash setup