Originally Posted by desiv
That's the same error i was getting.
Double check your cables, and if you are using plugs on headers, back them out a bit..
I am assuming a dmesg is showing something like this when you plug in your cable:
[13880.473791] pl2303 2-1:1.0: pl2303 converter detected
[13880.485429] usb 2-1: pl2303 converter now attached to ttyUSB0
[13880.485475] usbcore: registered new interface driver pl2303
[13880.485480] pl2303: Prolific PL2303 USB to serial adaptor driver
Checked the cables, plug them again (backing them out a bit), now it says:
stm32flash - http://stm32flash.googlecode.com/
Serial Config: 57600 8E1
Failed to read byte: read_byte: Undefined error: 0