# Connecting Crossworks to Olimex-Arm-USB-OCD

**URL:** <https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [December 29, 2011, 11:17am UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903 "2011-12-29T11:17:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinath](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@srinath](https://community.sparkfun.com/u/srinath)\
**Post date:** [December 29, 2011, 11:17am UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/1 "2011-12-29T11:17:56Z")

</div>

Hi

I am trying to connect my Olimex-Arm-USB-OCD([http://www.sparkfun.com/products/7834](http://www.sparkfun.com/products/7834)) to my stm32F1 board([http://www.sparkfun.com/products/8559](http://www.sparkfun.com/products/8559)) through crossworks.

When i goto target–\>Connect–\>Olimex-ARM-USB\_OCD, i get the following error message

“Cannot identify target, please check jtag connections and try again”.

Both boards are powered from the usb ports on my computer. So i wouldn’t

suspect power.

What’s going wrong?

Are my drivers for Olimex-ARM-USB-OCD installed correctly, in windows. After driver installation, it appears as a usb serial port.

Thanks

S

---

<div class="post-metadata">

**Author:** ![coryduce](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@coryduce](https://community.sparkfun.com/u/coryduce)\
**Post date:** [January 2, 2012, 2:09pm UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/2 "2012-01-02T14:09:56Z")

</div>

Try reducing the JTAG clock frequency by increasing “JTAG Clock Divider” to something like 15 or 20. I don’t have the software on this computer, but I think you can get to that setting by right clicking on the “Olimex-Arm-USB-OCD” item in the targets window and selecting properties.

If that doesn’t work, you can try posting your question on the CrossWorks support page.

[http://rowley.zendesk.com/home](http://rowley.zendesk.com/home)

---

<div class="post-metadata">

**Author:** ![srinath](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@srinath](https://community.sparkfun.com/u/srinath)\
**Post date:** [January 2, 2012, 3:22pm UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/3 "2012-01-02T15:22:09Z")

</div>

I tried increasing the “JTAG Clock Divider” to 10, 20, 50 etc and no lock.

Also posted the query on Crossworks support, but they are still to get back. I am pretty much stuck here. I even have a cross-connect lite and an arm swd adapter.

It has a similar problem.

I believe if i crack one of these, all can be cracked. Will post if i am successful. But meantime please keep your guesses coming as i am desperate.

---

<div class="post-metadata">

**Author:** ![coryduce](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@coryduce](https://community.sparkfun.com/u/coryduce)\
**Post date:** [January 2, 2012, 7:34pm UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/4 "2012-01-02T19:34:19Z")

</div>

When you are trying to program, are you also powering the board through the USB port?

---

<div class="post-metadata">

**Author:** ![srinath](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@srinath](https://community.sparkfun.com/u/srinath)\
**Post date:** [January 4, 2012, 4:39pm UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/5 "2012-01-04T16:39:35Z")

</div>

Yes, both are connected via usb to my pc

---

<div class="post-metadata">

**Author:** ![hsutherl](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@hsutherl](https://community.sparkfun.com/u/hsutherl)\
**Post date:** [January 7, 2012, 5:34pm UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/6 "2012-01-07T17:34:32Z")

</div>

Regarding the driver, the ARM-USB-OCD should show up as two devices, a serial port and a JTAG interface. You should be able to see both if you view by connection in Device Manager. If you don’t see the JTAG interface you can [try to reinstall the drivers].

It has been so long since I installed the drivers that I can’t remember any details. And I have not used Crossworks.

I thought about suggesting you install openOCD and run it from the command line to verify that your hardware is ok. But I seem to recall reading about problems with two different drivers trying to “grab” the same hardware. Best to keep it as simple as possible.

Unless (warning - I haven’t the foggiest clue here) openOCD is already installed, and Crossworks tries to connect to the openOCD GDB server. If that were the case you _could_ run openOCD from the CLI and get more detail.

---

<div class="post-metadata">

**Author:** ![gm](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@gm](https://community.sparkfun.com/u/gm)\
**Post date:** [January 9, 2012, 1:58pm UTC](https://community.sparkfun.com/t/connecting-crossworks-to-olimex-arm-usb-ocd/22903/7 "2012-01-09T13:58:41Z")

</div>

I haven’t tried the Olimex-Arm-USB-OCD jtag but I have used the Cross-Connect Lite and had similar problems. As is usually the case it was operator error. Verify that the cable is oriented correctly and that the target is powered. I haven’t had a problem since. Oh, and the Cross-Connect Lite requires the adapter from Rowley; you can’t use just an adapter from, say, Segger.

HTH,

gm
