EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

NewMicros *2138 JTAG

Started by WadeA & RebeccaM Smith March 2, 2009
I have a few of the NewMicros.com Tini2138 and Plug-a-2138 boards. I
keep trying to get them working for my robots, but I have not yet been
able to get anything to happen.

They have a 10-pin JTAG. I made an adapter between a standard 20-pin
JTAG and the 10-pin on the Tini2138 and Plug-a-2138 boards.

I tried the Rowley Crossworks and Amontec JTAGkey-Tiny. The Rowley
IDE cannot see any LPC2138.

I was able to get lpc21isp 1.63 to connect and load a program, but the
Tini2138 would not blink any LED.

Adapter:

10pin 20 pin
-- ---- ------ -----------
1 3.3V 3.3V 1,2
2 Gnd gnd 4,6,8,10,12,14,16,18,20
3 TDI TDI 5
4 RTCK RTCK 11
5 TDO TDO 13
6 TMS TMS 7
7 TCK TCK 9
8 N/C
9 RESET RESET 15
10 TRST TRST 3
DBGRQ 17 not used by Rowley, dont know about Amontec
DBGACK 19 not used by Rowley, dont know about Amontec
I contacted Rowley and they said ask NewMicros about their 10-pin
JTAG. All I can find from NewMicros is an old post (I think their ARM
support guy is now gone).

On the NewMicros Forum is the following:
-------- begin quote ------------------
Here is what I ended-up with:

20-pin TAP------------TiniARM
========= ====1 - VTref--------------3.3V
3 - nTRST-------------nTRST (with 4.7K pull-up)
4 - GND---------------GND
5 - TDI---------------TDI
7 - TMS---------------TMS
9 - TCK---------------TCK
11 - RTCK-------------RTCK
13 - TDO--------------TDO
15 - nSRST------------nRESET
-----------------------DBGSEL tied to 3.3V

The pull-up resister on nTRST seems to make the interface a little
more stable. In general, a very simple and clean interface from the
20-pin to 10-pin connectors.
--------- end quote ----------------------

I cannot find DBGSEL on any PDF documents.

I have not yet hooked up the 4.7K resistor between 3.3V and TRST
(10pin JTAG pins 1 & 10) until I take care of that "DBGSEL".

ANY IDEAS?

I tried using lpc21isp ver 1.63 to load hex to the Plug-a-2138 and
Tini2138.

I do have the Plug-a development board which takes care of the P0.14
tied to ground for boot.

I got the lpc21isp to connect and load a program but then the LEDs did
not blink.

------- begin of source -------
/*
* filename blink/main.c
* it is SUPPOSED to blink the LED.
*/

#define MAMTIM_VAL 4

#define VPBDIV_VAL 1

#include "..\lpc213x.h"

// NewMicros.com Tini2138 and Pluga2138 definitions
#define RED_LED 0x00200000
#define RED_LED_SHIFT 21
#define YEL_LED 0x00400000
#define YEL_LED_SHIFT 22
#define GRN_LED 0x00800000
#define GRN_LED_SHIFT 23

int main (void)
{
unsigned int i;

IO0DIR |(1< P0.21,P0.22,P0.23 as output
IO0SET = (1< //LED off
while( 1 )
{
for( i = 0; i < 50000; i++ );
IO0SET = 1< IO0CLR = 1< IO0CLR = 1< for( i = 0; i < 50000; i++ );
IO0CLR = 1< IO0SET = 1< IO0SET = 1< }
}

------- end of source -------

What am I missing (other than the obvious -- a brain)?
wade (not an EE)

---

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "WadeA & RebeccaM Smith"
To:
Sent: Monday, March 02, 2009 6:42 PM
Subject: [lpc2000] NewMicros *2138 JTAG
>I have a few of the NewMicros.com Tini2138 and Plug-a-2138 boards. I
> keep trying to get them working for my robots, but I have not yet been
> able to get anything to happen.
>
> They have a 10-pin JTAG. I made an adapter between a standard 20-pin
> JTAG and the 10-pin on the Tini2138 and Plug-a-2138 boards.
>
> I tried the Rowley Crossworks and Amontec JTAGkey-Tiny. The Rowley
> IDE cannot see any LPC2138.

Have you tried slowing the JTAG clock? I needed to do that when I tried a
JTAGkey-tiny with Crossworks.

Leon

> Posted by: WadeA

> I have a few of the NewMicros.com Tini2138 and Plug-a-2138 boards. I
> keep trying to get them working for my robots, but I have not yet been
> able to get anything to happen.
>
> They have a 10-pin JTAG. I made an adapter between a standard 20-pin
> JTAG and the 10-pin on the Tini2138 and Plug-a-2138 boards.

> I cannot find DBGSEL on any PDF documents.

AFAIR it's on the New Micros schematic you can download from
their web site.

Stephen
--
Stephen Pelc, s...@mpeforth.com
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads

I still haven't hooked up the 4K7 resistor, but I did slow both down
by setting Target->properties->JTAG Clock Divider to 16 and then to 32.
"Cannot identify target. Check JTAG connections and that the target is
powered."
I get that when the JTAG is disconnected and if it is connected to a
powered Plug-a-2138.
I guess the 4K7 is the only thing left to try...unless you have any
other ideas.
--- In l..., "leon Heller" wrote:
>
> ----- Original Message -----
> From: "WadeA & RebeccaM Smith"
> To:
> Sent: Monday, March 02, 2009 6:42 PM
> Subject: [lpc2000] NewMicros *2138 JTAG
> >I have a few of the NewMicros.com Tini2138 and Plug-a-2138 boards. I
> > keep trying to get them working for my robots, but I have not yet been
> > able to get anything to happen.
> >
> > They have a 10-pin JTAG. I made an adapter between a standard 20-pin
> > JTAG and the 10-pin on the Tini2138 and Plug-a-2138 boards.
> >
> > I tried the Rowley Crossworks and Amontec JTAGkey-Tiny. The Rowley
> > IDE cannot see any LPC2138.
>
> Have you tried slowing the JTAG clock? I needed to do that when I
tried a
> JTAGkey-tiny with Crossworks.
>
> Leon
>

If it is there, I cannot find it on
- LPC2131/2/4/6/8 users manual using acrobat search
- pluga2138_sch.pdf nothing labeled as such here
- plug-in-board.pdf nothing much labeled as such here, in fact, not
much here to look through, so the search was easy even for me.

So one guy who posted on the NewMicros forum mentions that he tied
DBGSEL to 3.3V, but I cannot find it on any documentation related to
the LPC2138. There is one AppNote that mentions it, AN10255
"3. Drive DBGSEL and/or RTCK low and connect port pins P0[27:31] to
the JTAG port (If your evaluation board supports the secondary JTAG
interface then there should be a jumper that does the above)"
However, that AppNote is NOT included in the list of documents
associated with LPC213x, which would indicate no "secondary JTAG".
Also, just to be thorough, I cannot find a pin designated as "DBGSEL"
in the "UM10120 LPC2131/2/4/6/8 User manual Rev. 02 25 July 2006"
Also, the "Rev. 04 16 October 2007 Product data sheet" does not have
any indication of a "DBGSEL".

Any other place I can look to find it?

So where did the poster "Embedder" on the NewMicros forum find it?

In any case, I still cannot use a JTAG with the NewMicros Tini2138 nor
the Plug-a-2138.

AND even though I can use lpc21isp ver 1.63 to connect and load a
program to the 2138, I cannot get LEDs to blink. Any suggestion on
THIS? If I can get just 1 LED to blink I know I can program the
puppy. But so far, nothing, nada, zip.

(insert your favorite expression of frustration here)

wade
--- In l..., "Stephen Pelc" wrote:
>
> > Posted by: WadeA
>
> > I have a few of the NewMicros.com Tini2138 and Plug-a-2138 boards. I
> > keep trying to get them working for my robots, but I have not yet been
> > able to get anything to happen.
> >
> > They have a 10-pin JTAG. I made an adapter between a standard 20-pin
> > JTAG and the 10-pin on the Tini2138 and Plug-a-2138 boards.
>
> > I cannot find DBGSEL on any PDF documents.
>
> AFAIR it's on the New Micros schematic you can download from
> their web site.
>
> Stephen
> --
> Stephen Pelc, stephen@...
> MicroProcessor Engineering Ltd - More Real, Less Time
> 133 Hill Lane, Southampton SO15 5AF, England
> tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
> web: http://www.mpeforth.com - free VFX Forth downloads
>

AHA! The DBGSEL *only* applies to the LPC2106 Tini2106. It is Pin27
on that chip.
The LPC2138 does NOT HAVE that pin. Pin27 is P0.4 which is
SCK0/CAP0.1/AD0.6. So that whole issue is a moot point. My only
course left is to put the 4K7 resistor between 3.3V and TRST and hope
that is the final missing piece of the JTAG puzzle...

--- In l..., "WadeA & RebeccaM Smith"
wrote:
>
> If it is there, I cannot find it on
> - LPC2131/2/4/6/8 users manual using acrobat search
> - pluga2138_sch.pdf nothing labeled as such here
> - plug-in-board.pdf nothing much labeled as such here, in fact, not
> much here to look through, so the search was easy even for me.
>
> So one guy who posted on the NewMicros forum mentions that he tied
> DBGSEL to 3.3V, but I cannot find it on any documentation related to
> the LPC2138. There is one AppNote that mentions it, AN10255
> "3. Drive DBGSEL and/or RTCK low and connect port pins P0[27:31] to
> the JTAG port (If your evaluation board supports the secondary JTAG
> interface then there should be a jumper that does the above)"
> However, that AppNote is NOT included in the list of documents
> associated with LPC213x, which would indicate no "secondary JTAG".
> Also, just to be thorough, I cannot find a pin designated as "DBGSEL"
> in the "UM10120 LPC2131/2/4/6/8 User manual Rev. 02 25 July 2006"
> Also, the "Rev. 04 16 October 2007 Product data sheet" does not have
> any indication of a "DBGSEL".
>
> Any other place I can look to find it?
>
> So where did the poster "Embedder" on the NewMicros forum find it?
>
> In any case, I still cannot use a JTAG with the NewMicros Tini2138 nor
> the Plug-a-2138.
>
> AND even though I can use lpc21isp ver 1.63 to connect and load a
> program to the 2138, I cannot get LEDs to blink. Any suggestion on
> THIS? If I can get just 1 LED to blink I know I can program the
> puppy. But so far, nothing, nada, zip.
>
> (insert your favorite expression of frustration here)
>
> wade
>
>
> --- In l..., "Stephen Pelc" wrote:
> >
> > > Posted by: WadeA
> >
> > > I have a few of the NewMicros.com Tini2138 and Plug-a-2138
boards. I
> > > keep trying to get them working for my robots, but I have not
yet been
> > > able to get anything to happen.
> > >
> > > They have a 10-pin JTAG. I made an adapter between a standard
20-pin
> > > JTAG and the 10-pin on the Tini2138 and Plug-a-2138 boards.
> >
> > > I cannot find DBGSEL on any PDF documents.
> >
> > AFAIR it's on the New Micros schematic you can download from
> > their web site.
> >
> > Stephen
> > --
> > Stephen Pelc, stephen@
> > MicroProcessor Engineering Ltd - More Real, Less Time
> > 133 Hill Lane, Southampton SO15 5AF, England
> > tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
> > web: http://www.mpeforth.com - free VFX Forth downloads
>


The 2024 Embedded Online Conference