EmbeddedRelated.com
Forums

h-jtag

Started by klemen_dovrtel November 22, 2006
I installed h-jtag and i made a wiggler jtag dongle (
http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
site). I tried to connect my lpc2138, and it doesn't work. I get
"Error: Please make shure that the hardware is properly connected and
powered up." But it was powerd up and connected properly (i think so).

I also checked some other wiggler j-tah schematics...some of them have
pin 8 and pin 15 on lpt port connected together (i don't have this).
What is the function of this connection? Is it necesarry?

This wiggler schematics i found on h-jtag web site has a reset and
TRST pin wired together. Is this correct? Should the signals on reset
and TRST pins be the same or should be inverted? Should i connect both
of them to my lpc2138?

Any idea what else could be wrong?

Regards
Klemen

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "klemen_dovrtel"
To:
Sent: Wednesday, November 22, 2006 11:29 AM
Subject: [lpc2000] h-jtag
>I installed h-jtag and i made a wiggler jtag dongle (
> http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
> site). I tried to connect my lpc2138, and it doesn't work. I get
> "Error: Please make shure that the hardware is properly connected and
> powered up." But it was powerd up and connected properly (i think so).
>
> I also checked some other wiggler j-tah schematics...some of them have
> pin 8 and pin 15 on lpt port connected together (i don't have this).
> What is the function of this connection? Is it necesarry?
>
> This wiggler schematics i found on h-jtag web site has a reset and
> TRST pin wired together. Is this correct? Should the signals on reset
> and TRST pins be the same or should be inverted? Should i connect both
> of them to my lpc2138?

You only need pins 8 and 15 connected if you are using the current Macraigor
Wiggler software. Have a look at my JTAG interface in the Files section; I
know it works, although I haven't tried it with an LPC2138.

Leon
Leon
I saw your j-tag...it is very similar to one i made. I checked your
schematics (jtag_scm), and i didn't find the TRST pin. So TRST is not
needed for j-tag to work? Did you try your j-tag with h-tag?

Regards
Klemen

--- In l..., "Leon Heller" wrote:
>
> ----- Original Message -----
> From: "klemen_dovrtel"
> To:
> Sent: Wednesday, November 22, 2006 11:29 AM
> Subject: [lpc2000] h-jtag
> >I installed h-jtag and i made a wiggler jtag dongle (
> > http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
> > site). I tried to connect my lpc2138, and it doesn't work. I get
> > "Error: Please make shure that the hardware is properly connected and
> > powered up." But it was powerd up and connected properly (i think so).
> >
> > I also checked some other wiggler j-tah schematics...some of them have
> > pin 8 and pin 15 on lpt port connected together (i don't have this).
> > What is the function of this connection? Is it necesarry?
> >
> > This wiggler schematics i found on h-jtag web site has a reset and
> > TRST pin wired together. Is this correct? Should the signals on reset
> > and TRST pins be the same or should be inverted? Should i connect both
> > of them to my lpc2138?
>
> You only need pins 8 and 15 connected if you are using the current
Macraigor
> Wiggler software. Have a look at my JTAG interface in the Files
section; I
> know it works, although I haven't tried it with an LPC2138.
>
> Leon
> Leon
>
--- In l..., "klemen_dovrtel"
wrote:
>
> I installed h-jtag and i made a wiggler jtag dongle (
> http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
> site). I tried to connect my lpc2138, and it doesn't work. I get
> "Error: Please make shure that the hardware is properly connected and
> powered up." But it was powerd up and connected properly (i think so).
>

I have used H-JTAG with several PC parallel port JTAG pods, and one of
the most common problems that I have seen is not getting the
SETTINGS-JTAG_SETTINGS dialog configured correctly. The error message
that you quoted comes up when there is no communication between H-JTAG
and the ARM TAP controller, so it is also possible that you could have
some problems with your PC parallel port.

-- Dave
----- Original Message -----
From: "klemen_dovrtel"
To:
Sent: Wednesday, November 22, 2006 3:01 PM
Subject: [lpc2000] Re: h-jtag
>I saw your j-tag...it is very similar to one i made. I checked your
> schematics (jtag_scm), and i didn't find the TRST pin. So TRST is not
> needed for j-tag to work? Did you try your j-tag with h-tag?

No, I didn't.

Leon
I am shure my lpt port is ok, i checked the signals on jtag dongle
with osciloscope and there is something "moving".

I still don't know which reset signals i need to connect to lpc and
how should the signal change. I know that reset signal goes to 0 when
i reset my lpc and stays at 1 the rest of time. What about TRST?

What j-tag dongle (that worked fine) did you useed with h-jtag?

Regards
Klemen
--- In l..., "derbaier" wrote:
>
> --- In l..., "klemen_dovrtel"
> wrote:
> >
> > I installed h-jtag and i made a wiggler jtag dongle (
> > http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
> > site). I tried to connect my lpc2138, and it doesn't work. I get
> > "Error: Please make shure that the hardware is properly connected and
> > powered up." But it was powerd up and connected properly (i think so).
> > I have used H-JTAG with several PC parallel port JTAG pods, and one of
> the most common problems that I have seen is not getting the
> SETTINGS-JTAG_SETTINGS dialog configured correctly. The error message
> that you quoted comes up when there is no communication between H-JTAG
> and the ARM TAP controller, so it is also possible that you could have
> some problems with your PC parallel port.
>
> -- Dave
>
--- In l..., "klemen_dovrtel"
wrote:
>
> I am shure my lpt port is ok, i checked the signals on jtag dongle
> with osciloscope and there is something "moving".
>
> I still don't know which reset signals i need to connect to lpc and
> how should the signal change. I know that reset signal goes to 0 when
> i reset my lpc and stays at 1 the rest of time. What about TRST?
>
> What j-tag dongle (that worked fine) did you useed with h-jtag?
>
> Regards
> Klemen

You can just connect the wiggler reset to nSRST, since the JTAG on the
LPC series is "broken" anyway. There is an internal connection that
causes nSRST to also reset nTRST. That "breaks" the ability to debug
directly out of reset. Just be sure that they are both high, when you
want to use the JTAG port since reset is active low. Of course, you
also need to be sure that LPC part that you are working with does not
have Code Read Protection enabled, or the JTAG port will be turned
off by the factory boot code.

Since H-JTAG allows all of the PC parallel port to JTAG pin mappings
to be defined, all of the Wiggler clones should work. I have used
H-JTAG with two different Olimex pods, and one custom pod of my own
that used the Olimex pin mappings. If you get ANY of the pin mappings
or polarities wrong, you are very likely to get the error message that
you quoted in your orginal post.

good luck!
-- Dave
--- In l..., "klemen_dovrtel"
wrote:
>
> I installed h-jtag and i made a wiggler jtag dongle (
> http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
> site). I tried to connect my lpc2138, and it doesn't work. I get
> "Error: Please make shure that the hardware is properly connected and
> powered up." But it was powerd up and connected properly (i think so).
>
> I also checked some other wiggler j-tah schematics...some of them have
> pin 8 and pin 15 on lpt port connected together (i don't have this).
> What is the function of this connection? Is it necesarry?
>
> This wiggler schematics i found on h-jtag web site has a reset and
> TRST pin wired together. Is this correct? Should the signals on reset
> and TRST pins be the same or should be inverted? Should i connect both
> of them to my lpc2138?
>
> Any idea what else could be wrong?
>
> Regards
> Klemen
>
Kelmen,

I have tried H-JTAG in the past and could not get it to work either.
Every time I tried to connect I would get the same error message as
yourself.

I have the LPC2148 Education board from Embedded Artists and the
wiggler clone from Oilmex.

At the time of trying H-JTAG I could not see what the problem was, so
I tried OpenOCD, which works with me. You can find this in the WINARM
distribution.
I do not know why I could not get H-JTAG to work.. it could have been
my settings.

Assuming your hardware set up is ok, try OpenOCD and see if that helps.

Cheers,

Nick
nma550n wrote:

>--- In l..., "klemen_dovrtel"
>wrote:
>
>
>>I installed h-jtag and i made a wiggler jtag dongle (
>>http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web
>>site). I tried to connect my lpc2138, and it doesn't work. I get
>>"Error: Please make shure that the hardware is properly connected and
>>powered up." But it was powerd up and connected properly (i think so).
>>
>>I also checked some other wiggler j-tah schematics...some of them have
>>pin 8 and pin 15 on lpt port connected together (i don't have this).
>>What is the function of this connection? Is it necesarry?
>>
>>This wiggler schematics i found on h-jtag web site has a reset and
>>TRST pin wired together. Is this correct? Should the signals on reset
>>and TRST pins be the same or should be inverted? Should i connect both
>>of them to my lpc2138?
>>
>>Any idea what else could be wrong?
>>
>>Regards
>>Klemen
>>
>>
>>
>Kelmen,
>
>I have tried H-JTAG in the past and could not get it to work either.
>Every time I tried to connect I would get the same error message as
>yourself.
>
>I have the LPC2148 Education board from Embedded Artists and the
>wiggler clone from Oilmex.
>
>At the time of trying H-JTAG I could not see what the problem was, so
>I tried OpenOCD, which works with me. You can find this in the WINARM
>distribution.
>I do not know why I could not get H-JTAG to work.. it could have been
>my settings.
>
>Assuming your hardware set up is ok, try OpenOCD and see if that helps.
>
>Cheers,
>
>Nick
>
>
IIRC there was a special build of H-JTAG that works with the Olimex
wigglers, should be downloadable
from their site.
http://www.olimex.com/dev/soft/arm/H-JTAG%20V0.2.rar
--
Bjn
--- In l..., Bjn Bosell wrote:
> >
> IIRC there was a special build of H-JTAG that works with the Olimex
> wigglers, should be downloadable
> from their site.
> http://www.olimex.com/dev/soft/arm/H-JTAG%20V0.2.rar
> --
> Bjn
>

Bjn, the version on the Olimex site is quite old. H-JTAG is now at
version 0.4.1, and can be configured for the Olimex Wiggler in
H-JTAG's JTAG setup dialog.
There is a GIF image of the proper settings for the Olimex Wiggler at
http://www.hjtag.com/pic/OLIMEX.gif

-- Dave