# unable top open ftdi device: 2 \[SOLVED - Explained\]

**URL:** <https://community.sparkfun.com/t/unable-top-open-ftdi-device-2-solved-explained/11413>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [June 3, 2009, 8:24pm UTC](https://community.sparkfun.com/t/unable-top-open-ftdi-device-2-solved-explained/11413 "2009-06-03T20:24:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![w2vy](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@w2vy](https://community.sparkfun.com/u/w2vy)\
**Post date:** [June 3, 2009, 8:24pm UTC](https://community.sparkfun.com/t/unable-top-open-ftdi-device-2-solved-explained/11413/1 "2009-06-03T20:24:25Z")

</div>

Things to check:

Make sure the USB PID/VID match

Make sure the description match (Here my cfg has JTAG A and the list has JTAG TINY A)

That works!

Thanks!

* * *

was:

* * *

Common error… no clear solution.

```auto
C:\gccfd\projects\test>C:\gccfd\openocd\bin\openocd-ftd2xx.exe -f test.cfg -d
Open On-Chip Debugger 1.0 (2008-10-04-10:00) svn:exported
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Debug: 5 0 command.c:432 command_run_line(): script test.cfg
Debug: 6 0 configuration.c:87 open_file_from_path(): opened test.cfg
Debug: 8 0 command.c:432 command_run_line(): telnet_port 4444
Debug: 10 0 command.c:432 command_run_line(): gdb_port 3333
Debug: 12 0 command.c:432 command_run_line(): interface ft2232
Debug: 14 0 command.c:432 command_run_line(): ft2232_device_desc "Olimex OpenOCD JTAG A"
Debug: 16 0 command.c:432 command_run_line(): ft2232_layout "olimex-jtag"
Debug: 18 0 command.c:432 command_run_line(): ft2232_vid_pid 0x15BA 0x0004
Debug: 20 0 command.c:432 command_run_line(): jtag_speed 2
Debug: 21 0 jtag.c:1863 handle_jtag_speed_command(): handle jtag speed
Info: 22 0 options.c:50 configuration_output_handler(): jtag_speed: 2, 2
Debug: 24 0 command.c:432 command_run_line(): reset_config trst_and_srst separate
Debug: 26 0 command.c:432 command_run_line(): jtag_device 4 0x1 0xf 0xe
Debug: 28 0 command.c:432 command_run_line(): daemon_startup reset
Info: 29 0 options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-10:
00) svn:exported
Debug: 31 0 command.c:432 command_run_line(): target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
Debug: 33 0 command.c:432 command_run_line(): run_and_halt_time 0 30
Debug: 35 0 command.c:432 command_run_line(): working_area 0 0x40000000 0x40000 nobackup
Debug: 37 0 command.c:432 command_run_line(): flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 1200
0 calc_checksum
Debug: 39 0 command.c:432 command_run_line(): init
Debug: 40 0 openocd.c:102 handle_init_command(): target init complete
Debug: 41 0 ft2232.c:1374 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'olimex-jtag'
 layout (15ba:0004)
Error: 42 78 ft2232.c:1419 ft2232_init_ftd2xx(): unable to open ftdi device: 2
Error: 43 140 ft2232.c:1434 ft2232_init_ftd2xx(): ListDevices: 2

Error: 44 140 ft2232.c:1436 ft2232_init_ftd2xx(): 0: Olimex OpenOCD JTAG TINY A
Error: 45 140 ft2232.c:1436 ft2232_init_ftd2xx(): 1: Olimex OpenOCD JTAG TINY B
Debug: 46 140 command.c:387 find_and_run_command(): Command failed with error code -100

```

I have tried each USB port, I get 3 driver installs each time.

I have verified the PID/VID is correct in device manager.

I have 2 USB devices and One COM port

config file:

```auto
#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 2

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst separate

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
#target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
target arm7tdmi little run_and_halt 0
run_and_halt_time 0 30

#target_script 0 reset oocd_flash2138.script
working_area 0 0x40000000 0x40000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum

# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

```

Any suggestions?

Thanks

Tom

---

<div class="post-metadata">

**Author:** ![ntfreak](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@ntfreak](https://community.sparkfun.com/u/ntfreak)\
**Post date:** [June 3, 2009, 9:32pm UTC](https://community.sparkfun.com/t/unable-top-open-ftdi-device-2-solved-explained/11413/2 "2009-06-03T21:32:56Z")

</div>

change the line:

ft2232\_device\_desc “Olimex OpenOCD JTAG A”

to

ft2232\_device\_desc “Olimex OpenOCD JTAG TINY A”

common error, simple solution 🙂

Cheers

Spen
