]> 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 11:19:18 +0000 (11:19 +0000)
commit6dfd56a7432fd7daa60ef8caa78f13576049de03
tree29f9c476d87d4efed3ae0edaa15898048dce9033
parent30a4271b414ca0931cb485785f3c6834f966b345
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: I52ff9ee8f5d9ae0d47356477468eb98952205c99
Signed-off-by: Szymon Modzelewski <szmodzelewski@gmail.com>
Reviewed-on: http://openocd.zylin.com/478
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/jtag/drivers/stlink_usb.c