SparkFun Forums 

Where electronics enthusiasts find answers.

Everything ARM and LPC
By Jmeyer1292
#141831
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
The STM32-LCD Development Board - 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.
User avatar
By leon_heller
#141858
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.
By hsutherl
#141907
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 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

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.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]