]> git.sur5r.net Git - openocd/commitdiff
From Lou.openocd012@fixit.nospammail.net
authorduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 27 Dec 2008 03:13:50 +0000 (03:13 +0000)
committerduane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 27 Dec 2008 03:13:50 +0000 (03:13 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1282 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/rlink/rlink.c

index 9fc4a75a3394775a383ef7ced35be081c7a142b7..188ea56d0d9d33e2055cc8d98b6f666e1cecdde9 100644 (file)
@@ -1001,18 +1001,29 @@ void rlink_reset(int trst, int srst)
        }
 
        usb_err = ep1_generic_commandl(
-               pHDev, 5,
+               pHDev, 6,
                 
                EP1_CMD_MEMORY_WRITE,
                        ST7_PADR >> 8,
                        ST7_PADR,
                        1,
-                       bitmap
+                       bitmap,
+               EP1_CMD_DTC_GET_CACHED_STATUS
        );
        if(usb_err < 0) {
                LOG_ERROR("%s: %s\n", __func__, usb_strerror());
                exit(1);
        }
+
+       usb_err = usb_bulk_read(
+               pHDev, USB_EP1IN_ADDR,
+               &bitmap, 1,
+               USB_TIMEOUT_MS
+       );
+       if(usb_err < 1) {
+               LOG_ERROR("%s: %s\n", __func__, usb_strerror());
+               exit(1);
+       }
 }