# Cannot Connect to STM32 w/ Tiny-H JTAG and CrossStudio

**URL:** <https://community.sparkfun.com/t/cannot-connect-to-stm32-w-tiny-h-jtag-and-crossstudio/23730>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [March 25, 2012, 9:29am UTC](https://community.sparkfun.com/t/cannot-connect-to-stm32-w-tiny-h-jtag-and-crossstudio/23730 "2012-03-25T09:29:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jmeyer1292](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@Jmeyer1292](https://community.sparkfun.com/u/Jmeyer1292)\
**Post date:** [March 25, 2012, 9:29am UTC](https://community.sparkfun.com/t/cannot-connect-to-stm32-w-tiny-h-jtag-and-crossstudio/23730/1 "2012-03-25T09:29:58Z")

</div>

Hello:

My name is Jonathan and I’m a mechanical engineering college student who’s been “thrown into the fire” of ARM programming.

I have the following pieces of hardware:

The Olimex USB ARM-USB-TINY-H JTAG - [http://www.olimex.com/dev/arm-usb-tiny-h.html](http://www.olimex.com/dev/arm-usb-tiny-h.html)

The STM32-LCD Development Board - [http://www.olimex.com/dev/stm32-lcd.html](http://www.olimex.com/dev/stm32-lcd.html)

I’m attempting to use Crossworks CrossStudio for ARM 2.2 to program this device and one more proprietary device using the same micro controller as the demo board. I’m running two machines - a Windows Vista laptop and a Windows 7 desktop. I have not purchased a license for CrossWorks yet, but I intend to if I can make the trial connect to my device.

This has so far been an exercise in frustration because I have yet to “talk” to the damn development board. When I go into CrossWorks and choose the Olimex ARM-USB-Tiny device, the development board turns on all its LEDs, the LCD back lighting turns on, and the device is powered entirely through the JTAG (or the USB Mini - whichever I leave plugged in).

One of three errors also occurs:

1. CrossStudio says something to the effect of “Cannot identify target, please check JTAG connection and device power.” When this error shows up, a white line flashes across the screen of the LCD.

2. CrossStudio says “read failed”

3. CrossStudio hangs up

I have tried setting up a FT2232 device as outlined on Olimex’s website. I have also tried playing around with the clock divider and a few other settings to no avail. I have installed (and uninstalled) many different drivers from olimex’s website and from FTDI’s. It could be an issue with my JTAG or a device, I guess, but given that I’m a certified bonehead it’s most likely an issue with me somehow.

I am in over my head and completely lost. I could really use any assistance you are capable of giving. If you don’t know, but know who can help me - please point me in the right direction. I very much appreciate your time.

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [March 25, 2012, 11:03pm UTC](https://community.sparkfun.com/t/cannot-connect-to-stm32-w-tiny-h-jtag-and-crossstudio/23730/2 "2012-03-25T23:03:03Z")

</div>

I think the problem is that the USB-Tiny-JTAG doesn’t appear to support the SWD interface used with Cortex devices like the STM32. I use a CrossConnect, with the SWD attachment, for Cortex devices, with CrossStudio; it works very well. Olimex has been a bit naughty with their schematic, they show the connector with the standard JTAG signals, connected to the SWD pins on the STM32. Check with Olimex to make sure.

---

<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:** [March 26, 2012, 11:26pm UTC](https://community.sparkfun.com/t/cannot-connect-to-stm32-w-tiny-h-jtag-and-crossstudio/23730/3 "2012-03-26T23:26:59Z")

</div>

I believe those pins _should_ default to regular JTAG at power up. (I’m not sure how they get into SWD mode). I have a [[budget STM32 board](http://www.micro4you.com/store/mini-stm32-stm32f103-tft-lcd-board.html) with similar connections that works fine with an Olimex Arm-USB-OCD interface (purchased from Spark-Fun).

A thread on the Crossworks site that might be worth looking into:

[https://rowley.zendesk.com/entries/2003 … onnections](https://rowley.zendesk.com/entries/20038088-cannot-identify-target-check-jtag-connections)

The nTRST mask and output value mentioned don’t look familar to me - perhaps they are specific to Crossworks. I’ve only used the interface with OpenOCD.]([http://www.micro4you.com/store/mini-stm32-stm32f103-tft-lcd-board.html](http://www.micro4you.com/store/mini-stm32-stm32f103-tft-lcd-board.html))

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [March 27, 2012, 1:56am UTC](https://community.sparkfun.com/t/cannot-connect-to-stm32-w-tiny-h-jtag-and-crossstudio/23730/4 "2012-03-27T01:56:19Z")

</div>

Looking at it again, JTAG should work, as well as SWD. I’m more used to the NXP Cortex chips which only have SWD.
