]> git.sur5r.net Git - openocd/commit
stlink-v1: fix memory writes
authorSzymon Modzelewski <szmodzelewski@gmail.com>
Tue, 21 Feb 2012 12:44:00 +0000 (13:44 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 29 Feb 2012 14:39:15 +0000 (14:39 +0000)
commitc59a4419fcc5568d59fbaee775132f91cb7fd26b
tree91ddcb2c14fb20f608b2a7e08ca52aae33e55cc5
parent3ddb3b3c3d7a6a5764590a7df65e6c71ff924c0b
stlink-v1: fix memory writes

implement stlink_usb_send and use it to fix stlink_usb_write_mem

using two calls to stlink_usb_recv is inappropriate since each
call issues a SG command on stlink-v1, resulting in errors

Change-Id: I24ef9f2dda284e041dc4a532b59968a77eebe702
Signed-off-by: Szymon Modzelewski <szmodzelewski@gmail.com>
Reviewed-on: http://openocd.zylin.com/498
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/stlink_usb.c