MinGW - Error: unable to open ftdi device...

Hello,

today I have successfully compiled openocd under MinGW. I followed this nice guide (viewtopic.php?f=18&t=11221). But when I try to connect my openocd to hardware I get the famous error:

Warn : Unable to open FTDI Device tried:...
Error: unable to open ftdi device: 2

Some time ago I compiled openocd under Cygwin and it works well. I think there is some problem with Windows driver.

Please could anyone tell me what to do?

The picture below demonstrates my situation.

~/openocd2/trunk/src (is compiled for MinGW)

~/openocd/src (is compiled for Cygwin)

The problem is solved! I tried another usb port. Other usb ports are kept free.

The WinXP sees automatically my BusBlaster v2 (based on FT2232H) as “USB Serial Port (COM12)” and “USB Serial Port (COM13)”.

I use this nice guide for compiling OOCD under WinXP and under MinGW(viewtopic.php?t=11221)

I start Oocd this way:

openocd -f ../tcl/interface/busblaster.cfg -f ../tcl/target/stm32f1x.cfg

The file “busblaster.cfg” is file copied from here:

(http://dangerousprototypes.com/docs/Bus … nOCD_guide)