flash: fix stm32 failed probe using incorrect flash size