Hi,

a little change... a great effect...
I just tested your changes on a local copy of openocd and now I get my Altera USB-Blaster at work.

Now it's possible to detect the jtag tap of my device. (without the patch i got errorss like "all ones and zeros"...)

But it seems to be very slow. I got a lot of packet errors, when loading a binary... I will check my configuration files tomorrow and try to get a binary loaded and debugged.

Best regards!
Stefan


Zitat von Felix <dg1...@gmx.de>:

Can you git bisect to find the problem commit?

After having a look at the git commits, it seems that the first commit from 2009-12-29 already has the broken version. The sane version I was referring to, was passed to the mailing list by Catalin Patulea (cat at vv.carleton.ca) on Sun Dec 20 09:25:38 CET 2009 (http://lists.berlios.de/pipermail/openocd-development/2009-December/013731.html). I thought this to be the same version that was committed s initial version, but unfortunatly it wasnt.

Maybe I can help out with this patch (I'm quit new to git, I hope I didnt mess up something ;) )

index 1679040..b0df7d3 100644
--- a/src/jtag/drivers/usb_blaster.c
+++ b/src/jtag/drivers/usb_blaster.c
@@ -234,7 +234,7 @@ usb_blaster_buf_read(uint8_t *buf, unsigned size, uint32_t *bytes_read)
 #define NCE                    (1 << 2)
 #define NCS                    (1 << 3)
 #define TDI                    (1 << 4)
-#define LED                    (1 << 5)
+#define LED_OE         (1 << 5)
 #define READ           (1 << 6)
 #define SHMODE         (1 << 7)
 #define OTHERS         ((1 << 2) | (1 << 3) | (1 << 5))
@@ -277,6 +277,9 @@ static void usb_blaster_write(int tck, int tms, int tdi)
        if (tdi)
                out_value |= TDI;

+       // enable output of CPLD
+       out_value |= LED_OE;
+
        usb_blaster_write_data();
 }


_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development





_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to