Building openocd under CYGWIN for the JTAGkey

Dear all,

I would like to build a new version of the openocd server to run under

cygwin and use the ftd2xx driver to communicate with the JTAGkey.

I have loaded the AMONTEC drivers and varified the operation of the JTAGkey.

I have also downloaded the linux driver from the ftdichip.com web site.

I have managed to compile the openocd server under a linux system,

but I need to run the server on a windoze system using cygwin.

Unfortunately apart from the the mention of cygwin in the INSTALL file

in the openocd source which suggests the use of the ftd2xx library

I have not been able to find any help as how to build under cygwin

and has spent all today trying different setups.

I would appreciate any help in this task (as I am a mere hardware

engineer)

Before anybody asks the question why not use the provided server/driver,

the processor I am using is and ARM9 compatible processor made under licence by a third party.

They decided to use a 6 stage pipeline and not a 5 stage pipeline as ARM did so the standard server is not compatible.

Using a home made wiggler I have succedded in talking to the processor

and accessing external device through the AHB bus. Unfortunately the

wiggler does not seem 100% reliable and thus I would like to start using

the USB device.

Dave

Hi Dave,

Yes, it can be frustrating. I have just literally in the last few days gone through the same frustrations and I simply started from the top of the list on the FTDI web site and kept downloading driver packages until I found the one that worked. It was the fifth one, I think!

Some clearer instructions would’ve been nice I think…

Anyway, this is how I did it…

Download the Windows XP driver from ftdichip.com (http://www.ftdichip.com/Drivers/CDM/Win … .00.00.zip) and expand it into a folder under your openocd folder. I called my folder k:\openocd\ft2232

Now, go to the openocd folder in your cygwin command shell. In my case this was /cygdrive/k/openocd

type the following:

./configure --with-ftd2xx=/cygdrive/k/openocd/ft2232/ --enable-ft2232_ftd2xx --disable-ft2232_libftdi --disable-amtjtagaccel --disable-ep93xx --disable-parport --disable-parport_ppdev

(note that the path to where you expanded the ftdi driver to is in there after --with-ftd2xx, if you expand it to elsewhere, you’ll need to change it)

make a cuppa, and drink it.

then type:

make clean all

then:

make install

This should put openocd.exe into /usr/local/bin. Of course, if you’ve got cygwin1.dll on your path you can just copy openocd.exe to wherever you want it and start using it.

HTH

  • Niels

BTW - do I know you?

Niels,

Thanks for the reply.

I have been distracted for a period and then decided to just continue with

the Linux development which I have working.

I will attempt to get the system running on windoze later in December

Dave