Olimex ARM-USB-OCD and OpenOCD

Allright, can someone help a complete newbe out? I’m trying to get my new Olimex Arm-usb-ocd working with OpenOCD, but I keep getting "Error: ft2232.c:1033 ft2232_init(): unable to open ftdi device: 2

Hardware manager does not seem to think the driver is installed. How the heck do you install the driver for this thing? I’m hoping to use NoIce debugger with this.

Thanks much for your time,

= Steve

Windows or Linux ?

Have you installed any ftdi2232 driver ?

What config script settings do you use ?

Drivers can be found at the ftdichip.com website.

Have you read the tutorial by JimLynch:

http://www.sparkfun.com/cgi-bin/phpbb/v … sc&start=0

Regards,

Magnus

sciciora:
Allright, can someone help a complete newbe out? I’m trying to get my new Olimex Arm-usb-ocd working with OpenOCD, but I keep getting "Error: ft2232.c:1033 ft2232_init(): unable to open ftdi device: 2

Hardware manager does not seem to think the driver is installed. How the heck do you install the driver for this thing? I’m hoping to use NoIce debugger with this.

Thanks much for your time,

= Steve

I am using OpenOCD with NoIce and the Olimex ARM-USB-OCD. Both of the drivers that you need are included in the YAGARTO distribution. After you have installed OpenOCD from the YAGARTO distribution you will find the drivers in yourOCDpath\driver\arm_usb_ocd. Just point the installer there when Windows complains about the lack of drivers.

– Dave

Thanks! With all my hair pulling, I forgot that I saw drivers in the OpenOCD directory.

One of my problems was that my laptop could not provide enough power to the USB port. Plugging a powered hub between my laptop and my ARM-USB-OCD was required.

Now that I have the drivers installed, time to give it another try.

Thanks!

Steven Ciciora

Steve,

Note that the Amontec JTAGkey and Amontec JTAGkey-Tiny CAN be connected to any USB PORT, slef powered or not!

This is a big advantage when low cost USB port is used.

The maximum static current was measured at only 85mA.

Laurent

Hello, I’am also a newbie

and trying to debug in flash with Olimex ARM-USB-OCD and OpenOCD.

The connection with is board under arm-elf-insight is successfully connected, but when I press [step] this error-message appears:

Info: arm7_9_common.c:275 arm7_9_add_breakpoint(): sw breakpoint request, but software breakpoints not enabled

Info: breakpoints.c:73 breakpoint_add(): can’t add software breakpoint, resourecenot available.

Do I have to set a special flag or something?

Thanks a lot.

Chris


System:

WinXP Pro / gdb 6.5.50 / OpenOCD 2006-10-12 / GNU Make 3.81 / USB driver by olimex dec_2005 / development board ADuC-P7026 by olimex with ARM7TDMI

christoph:
Hello, I’am also a newbie

and trying to debug in flash with Olimex ARM-USB-OCD and OpenOCD.

The connection with is board under arm-elf-insight is successfully connected, but when I press [step] this error-message appears:

Info: arm7_9_common.c:275 arm7_9_add_breakpoint(): sw breakpoint request, but software breakpoints not enabled

Info: breakpoints.c:73 breakpoint_add(): can’t add software breakpoint, resourecenot available.

Do I have to set a special flag or something?

Thanks a lot.

Chris


System:

WinXP Pro / gdb 6.5.50 / OpenOCD 2006-10-12 / GNU Make 3.81 / USB driver by olimex dec_2005 / development board ADuC-P7026 by olimex with ARM7TDMI

You enable software breakpoints in your .cfg script with:

arm7_9 sw_bkpt enable

BUT, you can NOT use software breakpoints when debugging in FLASH. You have to use hardware breakpoints. ARM has just TWO of those.

– Dave

If your code is in flash, you have to use

arm7_9 force_hw_bkpts enable

instead of the software-breakpoint enable.

Regards,

Dominic