Hey experts!
I have a problem with flashing my stm32f4 microcontroller via openocd.
If I flash the stm32f4 the first time everything works fine but everytime I flash the controller the second time it does not work. When I unplug USB and reconnect it, it works again for one time…
I am using ubuntu 13.10 64bit
Open On-Chip Debugger 0.7.0 (2013-05-15-17:28)
Flash Script:
source [find interface/stlink-v2.cfg]
source [find target/stm32f4x_stlink.cfg]
init
reset halt
flash write_image erase stm32f4.hex 0 ihex
reset run
shutdown
Error:
Open On-Chip Debugger 0.7.0 (2013-05-15-17:28)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : This adapter doesn’t support configurable speed
Error: read version failed
in procedure ‘transport’
Runtime Error: …/openocd_flash.cfg:4:
in procedure ‘script’
at file “embedded:startup.tcl”, line 58
in procedure ‘init’ called at file “…/openocd_flash.cfg”, line 4
Any ideas?
Thanks a lot!!
Johnny
p.s. The same script works on my 32bit ubuntu computer without problems.