How to use the 2nd jtag in lpc2106?

Started by Hiwood May 26, 2010
Hi,
I am using the lpc2106 with:
Crystal.0592M
RTCK=PULL DOWN
DBGSEL=PULL DOWN

And I connect the 2nd jtag port to the jtag connector.
I followed the steps of "AN10255 Using Secondary JTAG with LPC210x Microcontrollers (Jan 7, 2004)":
1.Load an application to lpc2106 using "lpc210x_isp" which would set PINSEL1=0x55400000 after reset.
2.Disconnect P0.14 from ground.
3.Reset lpc2106
And then I use H-Jtag with a Wiggler to detect device,but nothing was found.
So,what's wrong with it?Anyone could help me???
With best regards.

An Engineer's Guide to the LPC2100 Series

Hi,anyone could help me with this problem?

--- In l..., "Hiwood" wrote:
>
> Hi,
> I am using the lpc2106 with:
> Crystal.0592M
> RTCK=PULL DOWN
> DBGSEL=PULL DOWN
>
> And I connect the 2nd jtag port to the jtag connector.
> I followed the steps of "AN10255 Using Secondary JTAG with LPC210x Microcontrollers (Jan 7, 2004)":
> 1.Load an application to lpc2106 using "lpc210x_isp" which would set PINSEL1=0x55400000 after reset.
> 2.Disconnect P0.14 from ground.
> 3.Reset lpc2106
> And then I use H-Jtag with a Wiggler to detect device,but nothing was found.
> So,what's wrong with it?Anyone could help me???
> With best regards.
>

Hi

The application note should contain all necessary details.

You need to have a program loaded that sets the ports up to enable the alternative JTAG when it runs - are you sure that the loaded code is working correctly because if it doesn't run (eg. the ISP boot loader starts instead) it will not enable the secondary JTAG and so will not allow debugging?

Regards

Mark

www.uTasker.com
--- In l..., "Hiwood" wrote:
>
> Hi,anyone could help me with this problem?
>
> --- In l..., "Hiwood" wrote:
> >
> > Hi,
> > I am using the lpc2106 with:
> > Crystal.0592M
> > RTCK=PULL DOWN
> > DBGSEL=PULL DOWN
> >
> > And I connect the 2nd jtag port to the jtag connector.
> > I followed the steps of "AN10255 Using Secondary JTAG with LPC210x Microcontrollers (Jan 7, 2004)":
> > 1.Load an application to lpc2106 using "lpc210x_isp" which would set PINSEL1=0x55400000 after reset.
> > 2.Disconnect P0.14 from ground.
> > 3.Reset lpc2106
> > And then I use H-Jtag with a Wiggler to detect device,but nothing was found.
> > So,what's wrong with it?Anyone could help me???
> > With best regards.
>

--- In l..., "Mark" wrote:
>
> Hi
>
> The application note should contain all necessary details.
>
> You need to have a program loaded that sets the ports up to enable the alternative JTAG when it runs - are you sure that the loaded code is working correctly because if it doesn't run (eg. the ISP boot loader starts instead) it will not enable the secondary JTAG and so will not allow debugging?

So what you are saying is that, a blank lpc can not be forced to use the 2nd jtag port at power up ??
;-)

don
>
> Regards
>
> Mark
>
> www.uTasker.com
> --- In l..., "Hiwood" wrote:
> >
> > Hi,anyone could help me with this problem?
> >
> > --- In l..., "Hiwood" wrote:
> > >
> > > Hi,
> > > I am using the lpc2106 with:
> > > Crystal.0592M
> > > RTCK=PULL DOWN
> > > DBGSEL=PULL DOWN
> > >
> > > And I connect the 2nd jtag port to the jtag connector.
> > > I followed the steps of "AN10255 Using Secondary JTAG with LPC210x Microcontrollers (Jan 7, 2004)":
> > > 1.Load an application to lpc2106 using "lpc210x_isp" which would set PINSEL1=0x55400000 after reset.
> > > 2.Disconnect P0.14 from ground.
> > > 3.Reset lpc2106
> > > And then I use H-Jtag with a Wiggler to detect device,but nothing was found.
> > > So,what's wrong with it?Anyone could help me???
> > > With best regards.
> > >
>

--- In l..., "Donald H" wrote:
>
> --- In l..., "Mark" wrote:
> >
> > Hi
> >
> > The application note should contain all necessary details.
> >
> > You need to have a program loaded that sets the ports up to enable the alternative JTAG when it runs - are you sure that the loaded code is working correctly because if it doesn't run (eg. the ISP boot loader starts instead) it will not enable the secondary JTAG and so will not allow debugging?
>
> So what you are saying is that, a blank lpc can not be forced to use the 2nd jtag port at power up ??
> ;-)
>
> don

Exactly! Quote from User Manual:
For debugging using the secondary JTAG pins, software must configure the related pins to connect the JTAG port. This is done
via the Pin Connect Block.
Richard

--- In l..., "Mark" wrote:
>
> Hi
>
> The application note should contain all necessary details.
>
> You need to have a program loaded that sets the ports up to enable the alternative JTAG when it runs - are you sure that the loaded code is working correctly because if it doesn't run (eg. the ISP boot loader starts instead) it will not enable the secondary JTAG and so will not allow debugging?
>

After set PINSEL1=0x55400000,there're some codes to make a led light on and off.
I did see them flashing.

Is it possible to program lpc2106's flash via the 2nd Jtag?And why?

Further more,how does it work to program lpc2106 via Jtag?

Regards

Hiwood