flash: add support for deprecated stm32 flash cmds