OpenOCD 0.1.0 with olimex ARM-USB-TINY-H problem

Hi there

I am using OpenOCD 0.1.0 with olimex ARM-USB-TINY-H and an STM32F103 device along with the config file from openOCD directories: interface/olimex-jtag-tiny.cfg

I get the following errors:


Open On-Chip Debugger 0.1.0 (2009-01-21-21:15) Release

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: https://kc8apf@svn.berlios.de/svnroot/r … /openocd.c $

jtag_speed: 50

500 kHz

Error: unable to open ftdi device: 2

Runtime error, file “pp_Program.cfg”, line 58:

#cmd.exe /C program.bat


My code works OK with the Olimex parallel port JTAG wiggler or with an Amontec USB JTAG wiggler on a couple of computers.

Therefore, I am sure that my problem is either a faulty unit or the wrong drivers for the FTDI chip.

I have used the drivers off the supplied Olimex CD, but these don’t work for me. Also, I have used the ‘driver-libftdi-openocd.zip’ - ‘drivers for working with OpenOCD 0.1.0’ from the Olimex website, but these don’t work either.

Is there anything else I can try before sending back the ‘faulty’ unit?

Thanks

hi,

it might be a driver problem.

You could try a newer version of openocd. for example 0.4.0.

You can get a compiled version for windows on http://www.freddiechopin.info

The versions submitted on that page contains the libftdi drivers.

greetings

Hello All,

I am at a similiar stage getting OpenOCD to work with an Olimex ARM-USB-Tiny-H. (I have not used this device before - more of an AVR fan in the past)

There are a few things you might find useful

  1. Correct device VID & PID (from my .cfg file)

REFERENCE: ARM-USB-TINY

interface ft2232

ft2232_device_desc “Olimex OpenOCD JTAG TINY”

ft2232_layout “olimex-jtag”

ft2232_vid_pid 0x15BA 0x002a

Note the PIDs could be 0003 0004 as well - you can use USBviewer.exe to get this info.

  1. I am using version OpenOCD 0.3.0. The commands and their syntax changes significantly between OpenOCD version releases. Be aware!

  2. Speed - try slow

ft2232_latency 10

jtag_khz 200

jtag_speed is the command format for older versions of OpenOCD. should be Clk speed/200khz (between 30 and 150??)

Note the addition of latency (in ms). Should be between 2 and 10. Not certain if available in version 0.1.0

  1. Reset Configuration

No idea what your board has. SRST and TRST may be available separately.

I use

reset_config trst_and_srst separate

jtag_ntrst_delay 200

jtag_nsrst_delay 200

Note delay parameters (ms) - some boards need resets help for a short time to work.

  1. Drivers

Almost certainly the real problem.

Need to know if 32-bit or 64-bit OS. The Olimex drivers are only for 32-bit. If you are using 64-bit OS then Olimex say to use FTDI 64-bit drivers. However the FTDI website drivers are only certified for FTDI chip VID & PIDs. So cannot install on Vista as if wants certified drivers.

There are versions of FTDI drivers with correct hardware VID & PIDs (which I have just found/loaded).

See Products Software Item 2. (The Crossworks FTD2xx drivers)

Having said all of the above and now trying these last FTD2xx drivers…

I am still getting “unable to open FTDI device: Device not found” error.

I am about to try a Windows XP 64-bit and Windows XP 32-bit OS to see if I can get around the problem.

I would appreciate any help I can get.

Ernest