EmbeddedRelated.com
Forums

H-JTAG update

Started by tsvetanusunov January 3, 2006
Happy New Year to all LPC2000 members :)

During the Holidays one of our engineers tried H-JTAG and there is
progress!

Our tests show that H-JTAG connects just great to IAR EW-ARM (the only
RDI support IDE we have at the moment) and works without any problem
with our ARM-JTAG if you set in JTAG Settings nSRST = D4 (by the way
while you step your debugger the H-JTAG icon cool change it's color in
the taskbar).

The bad news is that it doesn't work with any LPC microcontroller!

From all ARM7 boards we have it works only with SAM7 and ADuC7xxx, but
can't detect LPC2xxx, TMS470, OKI and STR7xx - there is definitely room
for improvement from He21 :)

Unfortunately as some of you figured out I've been misleaded from the
sources on the 21 web, this project is not open source and we can't
work on it and to see how to fix the ARM7TDMI-S support.

By the way browsing the web during the Holidays I found yet another
free Wiggler RDI support DLL at http://www.armjtag.com/english.htm
looks like less sophisticated than H-JTAG and again not open source
again works with SAM7S core but don't support LPC2xxx

Best regards
Tsvetan
---
PCB prototypes for $26 at http://run.to/pcb (http://www.olimex.com/pcb)
PCB any volume assembly (http://www.olimex.com/pcb/protoa.html)
Development boards for ARM, AVR, PIC, MAXQ2000 and MSP430
(http://www.olimex.com/dev)


An Engineer's Guide to the LPC2100 Series

Hi Tsvetan,
I tested H-JTAG with LPC2106 Olimex board and I can run ARM SDT
debugger.The LPC2106 chip is detected (ARM&TDMI-S 0x4F1F0F0F ).I dont
have a copy of IAR to perform the test.I am using a home made wiggler
clone.The schematic can be found on files area of this group.
I also tested using LPC213x QuaickStart board from Embedded
Artists and the LPC was detected.
Regards,
Marcio

--- In lpc2000@lpc2..., "tsvetanusunov" <tusunov@m...> wrote:
>
> Happy New Year to all LPC2000 members :)
>
> During the Holidays one of our engineers tried H-JTAG and there is
> progress!
>
> Our tests show that H-JTAG connects just great to IAR EW-ARM (the only
> RDI support IDE we have at the moment) and works without any problem
> with our ARM-JTAG if you set in JTAG Settings nSRST = D4 (by the way
> while you step your debugger the H-JTAG icon cool change it's color in
> the taskbar).
>
> The bad news is that it doesn't work with any LPC microcontroller!
>
> From all ARM7 boards we have it works only with SAM7 and ADuC7xxx, but
> can't detect LPC2xxx, TMS470, OKI and STR7xx - there is definitely room
> for improvement from He21 :)
>
> Unfortunately as some of you figured out I've been misleaded from the
> sources on the 21 web, this project is not open source and we can't
> work on it and to see how to fix the ARM7TDMI-S support.
>
> By the way browsing the web during the Holidays I found yet another
> free Wiggler RDI support DLL at http://www.armjtag.com/english.htm
> looks like less sophisticated than H-JTAG and again not open source
> again works with SAM7S core but don't support LPC2xxx
>
> Best regards
> Tsvetan
> ---
> PCB prototypes for $26 at http://run.to/pcb (http://www.olimex.com/pcb)
> PCB any volume assembly (http://www.olimex.com/pcb/protoa.html)
> Development boards for ARM, AVR, PIC, MAXQ2000 and MSP430
> (http://www.olimex.com/dev)
>


--- In lpc2000@lpc2..., "atmelbr" <atmelbr@y...> wrote:
>
> Hi Tsvetan,
> I tested H-JTAG with LPC2106 Olimex board and I can run ARM SDT
> debugger.The LPC2106 chip is detected (ARM&TDMI-S 0x4F1F0F0F ).I dont
> have a copy of IAR to perform the test.I am using a home made wiggler
> clone.The schematic can be found on files area of this group.
> I also tested using LPC213x QuaickStart board from Embedded
> Artists and the LPC was detected.
> Regards,
> Marcio
>
this is very interesting what are your parallel port settings?
what LPT cable length do you use?
anything weird around your IDE settings?
if it works by you there should be no any reason to refuse here :)

Tsvetan



Hi Tsvetan,
The BIOS configuration for LPT port is Parallel port mode -> SPP
The cable length is 1,80 meter
I need to disable vector catching and semihosting on SDT debugger.
The chip used on JTAG is 74HC244
Regards,
Marcio
>
> --- In lpc2000@lpc2..., "atmelbr" <atmelbr@y...> wrote:
> >
> > Hi Tsvetan,
> > I tested H-JTAG with LPC2106 Olimex board and I can run ARM SDT
> > debugger.The LPC2106 chip is detected (ARM&TDMI-S 0x4F1F0F0F ).I dont
> > have a copy of IAR to perform the test.I am using a home made wiggler
> > clone.The schematic can be found on files area of this group.
> > I also tested using LPC213x QuaickStart board from Embedded
> > Artists and the LPC was detected.
> > Regards,
> > Marcio
> >
> this is very interesting what are your parallel port settings?
> what LPT cable length do you use?
> anything weird around your IDE settings?
> if it works by you there should be no any reason to refuse here :)
>
> Tsvetan
>




--- In lpc2000@lpc2..., "tsvetanusunov" <tusunov@m...> wrote:
> this is very interesting what are your parallel port settings?
> what LPT cable length do you use?
> anything weird around your IDE settings?
> if it works by you there should be no any reason to refuse here :)
>
> Tsvetan
>

I can throw a little more confusion into the pot. :-)

I followed your link and picked up the JTAG Debug Agent from there. It
appears to be an older version of H-JTAG, also from twentyone or
Tang-ZhongGen??? On my system JTAG Debug Agent also can not recognize
an LPC2148 on an Olimex board, but it does reset the LPC2148 every
time it tries to recognize it. That is more than H-JTAG was able to
do. One big difference between the two code sets is that JTAG Debug
Agent uses the original Dale Roberts GiveIO.sys for high speed IO on
WinXP, while H-JTAG uses H-JTAG.sys for the same function. GiveIO
works very well on my WinXP system, but I am not so sure about
H-JTAG.sys since I do not have a way of independantly testing like I
do with GiveIO.

Here are my answers to your questions.
Q1. What are your parallel port settings?
A1. EPP port at 0x378

Q2. What LPT cable length do you use?
A2. 1 meter cable originally supplied with an EasyICE.( works great!)

Q3. Anything weird around your IDE settings?

A3. Does not really matter. H-JTAG displays the ID in the center of
the H-JTAG server screen. In my case, both ARM SDT2.51 and IAR
Embedded Workbench fail when the H-JTAG server indicates "UNKNOWN" in
the center of it's screen.

-- Dave


Hi,

Twentyone just e-mailed me new release of H-JTAG which takes into
account the JTAG-ENABLE signal of our Wiggler clone.
Now it works with everything like SAM7, LPCxxx, STR7xx, TMS470 and
only refuses to work with OKI!
Accordig to the author H-JTAG is tested to work with all these cores:
ARM7TDMI, ARM7TDMI-S, ARM710T, ARM720T, ARM740T, ARM9TDMI, ARM920T,
ARM922T and ARM940T.

The IAR Flash loader programs in Flash with about 30% slower speed
than J-LINK adapter we have, which is pretty much acceptable for x10
times lower cost solution :)

I hope twentyone will upload the new fix on his web page soon, if not
I'll ask permission to put on our ARM-JTAG web page copy of the H-
JTAG install he e-mailed me.

We are going to play more with H-JTAG later today and report if there
are any other issues.

Best regards
Tsvetan

--- In lpc2000@lpc2..., "derbaier" <dershu@s...> wrote:
>
> --- In lpc2000@lpc2..., "tsvetanusunov" <tusunov@m...>
wrote:
> > this is very interesting what are your parallel port settings?
> > what LPT cable length do you use?
> > anything weird around your IDE settings?
> > if it works by you there should be no any reason to refuse here :)
> >
> > Tsvetan
> >
>
> I can throw a little more confusion into the pot. :-)
>
> I followed your link and picked up the JTAG Debug Agent from there.
It
> appears to be an older version of H-JTAG, also from twentyone or
> Tang-ZhongGen??? On my system JTAG Debug Agent also can not
recognize
> an LPC2148 on an Olimex board, but it does reset the LPC2148 every
> time it tries to recognize it. That is more than H-JTAG was able to
> do. One big difference between the two code sets is that JTAG Debug
> Agent uses the original Dale Roberts GiveIO.sys for high speed IO on
> WinXP, while H-JTAG uses H-JTAG.sys for the same function. GiveIO
> works very well on my WinXP system, but I am not so sure about
> H-JTAG.sys since I do not have a way of independantly testing like I
> do with GiveIO.
>
> Here are my answers to your questions.
> Q1. What are your parallel port settings?
> A1. EPP port at 0x378
>
> Q2. What LPT cable length do you use?
> A2. 1 meter cable originally supplied with an EasyICE.( works
great!)
>
> Q3. Anything weird around your IDE settings?
>
> A3. Does not really matter. H-JTAG displays the ID in the center of
> the H-JTAG server screen. In my case, both ARM SDT2.51 and IAR
> Embedded Workbench fail when the H-JTAG server indicates "UNKNOWN"
in
> the center of it's screen.
>
> -- Dave
>