Man, I used to be better about remembering to attach my attachments.

On Sat, Dec 20, 2008 at 05:43:26PM -0600, [email protected] 
wrote:
> On Fri, Dec 19, 2008 at 02:04:06PM -0000, Spencer Oliver wrote:
> > 
> > I have made a few tweaks to support native win32 and committed to svn.
> > It correctly finds the rlink now and the jtag id's but fails to stop a stm32
> > - look into it a bit more when i have some time.
> 
> When you get the time, I'm willing to do what I can to help with this.
> You will have to tell me exactly how to reproduce it.
> And if I can't, it might be some difference between Linux and Windows,
> so it's going to be a process of trying stuff and having you (or another
> Windows user with the right hardware) test it.
> 
> Are you using an STM32 Primer, or an RLink with a standalone STM32
> target board?
> 
> Since it can scan, that means that the TCK/TDI/TDO/TMS part of the
> interface is working.  About all that's left, then is the TRST and SRST
> lines.  I have one idea regarding that.  It is embodied in  the attached
> patch.  It doesn't make a difference here, but, then, I haven't seen the
> problem that you've reported, either.
--- openocd-svn/src/jtag/rlink/rlink.c	2008-12-20 17:33:44.000000000 -0600
+++ openocd-svn-dev/src/jtag/rlink/rlink.c	2008-12-20 14:59:56.000000000 -0600
@@ -1001,18 +1000,29 @@
 	}
 
 	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);
+	}
 }
 
 
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to