stmhal: Add autoflash script, to flash a DFU device automatically.