Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-21 Thread Freddie Chopin
Thomas A. Moulton pisze: > In the example above 114k file at 8KB/sec is 14 seconds vs 11KB/sec is > 10 seconds - a difference of 4 seconds - I for one do not care and my > flash is smaller than that! Indeed - flash upload speed is not the most important speed, but the stepping speed is 100% propo

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-20 Thread Xiaofan Chen
On Sat, Jun 20, 2009 at 10:53 PM, Thomas A. Moulton wrote: > If libusb and libftdi works, then please build it and make it available > so it can be used. I believe it can work under the platforms where libusb-win32 device driver works (Win 2K, Windows XP 32/64bit, Vista 32bit). It is not so simple

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-20 Thread Xiaofan Chen
On Fri, Jun 19, 2009 at 2:26 AM, Freddie Chopin wrote: > I've just managed to compile OpenOCD r2268 with libftdi and > libusb-win32. I've also compiled the same revision with ftd2xx. I have a > custom build JTAGkey. The ftd2xx version just works, the one with > libftdi just doesn't. I've installed

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-20 Thread Thomas A. Moulton
On Sat, 2009-06-20 at 11:13 +0800, Xiaofan Chen wrote: > On Fri, Jun 19, 2009 at 3:36 AM, Freddie Chopin wrote: > > Anyway, about that "equal" performance with libftdi: > > Tested with a ~29kB image on LPC2103 (upload to flash): > > > > libftdi: > > > Start address 0x3c, load size 29640 > > > Tra

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-19 Thread Zach Welch
On Sat, 2009-06-20 at 11:13 +0800, Xiaofan Chen wrote: > On Fri, Jun 19, 2009 at 3:36 AM, Freddie Chopin wrote: > > Anyway, about that "equal" performance with libftdi: > > Tested with a ~29kB image on LPC2103 (upload to flash): > > > > libftdi: > > > Start address 0x3c, load size 29640 > > > Tra

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-19 Thread Xiaofan Chen
On Fri, Jun 19, 2009 at 3:36 AM, Freddie Chopin wrote: > Anyway, about that "equal" performance with libftdi: > Tested with a ~29kB image on LPC2103 (upload to flash): > > libftdi: >  > Start address 0x3c, load size 29640 >  > Transfer rate: 6 KB/sec, 14820 bytes/write. > ftd2xx: >  > Start address

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-19 Thread Xiaofan Chen
On Fri, Jun 19, 2009 at 9:08 PM, Gene Smith wrote: >> That should be enough. In fact, I kind of believe that you do not >> need to use the modified libusb0.sys but rather a proper inf file >> generated by the INF wizard for the whole device. >> > > I used the wizard to generate and install the inf.

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-19 Thread Gene Smith
Xiaofan Chen wrote: > On Fri, Jun 19, 2009 at 7:27 AM, Gene Smith wrote: >> I already have libusb working fine on windows with jlink. Now I am >> trying to add libftdi. I have built and installed enough of libftdi to >> enable a build of openocd with --enable-ft2232_libftdi. And I installed >> the

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-19 Thread Xiaofan Chen
On Fri, Jun 19, 2009 at 7:27 AM, Gene Smith wrote: > I already have libusb working fine on windows with jlink. Now I am > trying to add libftdi. I have built and installed enough of libftdi to > enable a build of openocd with --enable-ft2232_libftdi. And I installed > the new libusb0.sys described

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Xiaofan Chen
On Fri, Jun 19, 2009 at 4:05 AM, Freddie Chopin wrote: > Michael Fischer pisze: >> upps, in case of performance I have tested here only >> download to RAM. And this looks like the same, 140 KB/sec. > > Unfortunately, I have no chips with external RAM, so I cannot test that > kind of speed - STM32 I

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Xiaofan Chen
On Fri, Jun 19, 2009 at 3:36 AM, Freddie Chopin wrote: > As Michael wrote to me, you actually need a hacked version of > libusb0.sys for any composite USB device (FT2232) to work... It's just > asking for trouble IMHO... > > http://www.nabble.com/LibUSB---composite-USB-devices-td11027391.html > > A

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Gene Smith
Freddie Chopin wrote: > As Michael wrote to me, you actually need a hacked version of > libusb0.sys for any composite USB device (FT2232) to work... It's just > asking for trouble IMHO... > > http://www.nabble.com/LibUSB---composite-USB-devices-td11027391.html > I already have libusb working f

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Øyvind Harboe
On Thu, Jun 18, 2009 at 9:43 PM, Michael Fischer wrote: > Hello Freddie, > > upps, in case of performance I have tested here only > download to RAM. And this looks like the same, 140 KB/sec. > > Btw, an old OpenOCD, r657, had a performance of about 165 KB/sec: That narrows down the regression to ~

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Freddie Chopin
Michael Fischer pisze: > upps, in case of performance I have tested here only > download to RAM. And this looks like the same, 140 KB/sec. Unfortunately, I have no chips with external RAM, so I cannot test that kind of speed - STM32 I have has only 20kB, so the upload speed result will be worthl

[Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Michael Fischer
Hello Freddie, upps, in case of performance I have tested here only download to RAM. And this looks like the same, 140 KB/sec. Btw, an old OpenOCD, r657, had a performance of about 165 KB/sec: http://www.yagarto.de/projects/jtagspeed/index.html Best regards, Michael __

Re: [Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Freddie Chopin
As Michael wrote to me, you actually need a hacked version of libusb0.sys for any composite USB device (FT2232) to work... It's just asking for trouble IMHO... http://www.nabble.com/LibUSB---composite-USB-devices-td11027391.html Add that libusb cannot be compiled on Windows and you need to use

[Openocd-development] OpenOCD + libftdi on Windows

2009-06-18 Thread Freddie Chopin
First of all let me state that if one considers building OpenOCD with ftd2xx on Windows hard, than building that with libftdi is extreme... I really don't know whether I've done that right... Now - my question: How do I use that? I've just managed to compile OpenOCD r2268 with libftdi and libu