Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Secondary JTag

Secondary JTag

2004-03-08 by Owen Mooney

I have added this question as a separate message  as it may attract a  
different response

I am debating as t which JTAG pins I use in my circuit layout. I can 
spare enough ports for the JTAG lines, but not the trace lines.I 
understand that enabling the primary JTAG lines also enables the Trace 
lines. (there seems to be no way to enable the JTAG lines only according 
to p206 in the manual).

This suggests using the secondary JTAG lines only. I will probably 
purchase the crossworks compiler largely on price (feed back on this 
decision is welcome)

Is it practical to
    2. layout with only the secondary JTAG "dressed out"
    2. write a simple program that initialise the secondary JTAG ports
    3. Boot load it and run it.
    4. develope and debug (including reload programs) entirely from the 
secondary JTAG port.

I.e. My question is does the debuging capablity survive all the resets etc

Thanks

Owen Mooney

Re: Secondary JTag

2004-03-08 by embeddedjanitor

--- In lpc2000@yahoogroups.com, Owen Mooney <ojm@s...> wrote:
> I have added this question as a separate message  as it may attract 
a  
> different response
> 
> I am debating as t which JTAG pins I use in my circuit layout. I 
can 
> spare enough ports for the JTAG lines, but not the trace lines.I 
> understand that enabling the primary JTAG lines also enables the 
Trace 
> lines. (there seems to be no way to enable the JTAG lines only 
according 
> to p206 in the manual).
> 
> This suggests using the secondary JTAG lines only. I will probably 
> purchase the crossworks compiler largely on price (feed back on 
this 
> decision is welcome)
> 
> Is it practical to
>     2. layout with only the secondary JTAG "dressed out"
>     2. write a simple program that initialise the secondary JTAG 
ports
>     3. Boot load it and run it.
>     4. develope and debug (including reload programs) entirely from 
the 
> secondary JTAG port.
> 
> I.e. My question is does the debuging capablity survive all the 
resets etc


This is pretty close to what I am planning to do. Indeed there is an 
app note describing what to do.

I have weritten, and will test in the next 24 hours or so, a small 
configuration firmware. This is loaded in to flash and executes after 
a reset and configurres the secondary JTAG port then just spins. The 
JTAG debugger then attaches to the secondary JTAG port. NB though, 
the debugger should not reset the CPU since that would undo the 
secondary port set up.

You will be limited in where you then load firmware into flash 
because, obviously, if you overwrite the secondary port configuration 
code then the pins will no longer be used for JTAG.

I'll let you know how it goes...

-- Charles

Re: Secondary JTag

2004-03-08 by jvedum

Use of the secondary JTAG has been discussed here before, see ie msg 
1067, 1262 and 1338. I have made a design where only JTAG2 is 
available, just as you suggest, and have not been able to debug the 
design using the JTAG interface. It works OK on other boards if I 
first brefly accesses JTAG1. (The JTAG2 is of course initialised 
according to Philips app note AN10255.)

Tomorrow I am going to meet a representatevi from Philips, and will 
of course discuss this issue with him.

Jon


--- In lpc2000@yahoogroups.com, "embeddedjanitor" 
<charles.manning@t...> wrote:
> --- In lpc2000@yahoogroups.com, Owen Mooney <ojm@s...> wrote:
> > I have added this question as a separate message  as it may 
attract 
> a  
> > different response
> > 
> > I am debating as t which JTAG pins I use in my circuit layout. I 
> can 
> > spare enough ports for the JTAG lines, but not the trace lines.I 
> > understand that enabling the primary JTAG lines also enables the 
> Trace 
> > lines. (there seems to be no way to enable the JTAG lines only 
> according 
> > to p206 in the manual).
> > 
> > This suggests using the secondary JTAG lines only. I will 
probably 
> > purchase the crossworks compiler largely on price (feed back on 
> this 
> > decision is welcome)
> > 
> > Is it practical to
> >     2. layout with only the secondary JTAG "dressed out"
> >     2. write a simple program that initialise the secondary JTAG 
> ports
> >     3. Boot load it and run it.
> >     4. develope and debug (including reload programs) entirely 
from 
> the 
> > secondary JTAG port.
> > 
> > I.e. My question is does the debuging capablity survive all the 
> resets etc
> 
> 
> This is pretty close to what I am planning to do. Indeed there is 
an 
> app note describing what to do.
> 
> I have weritten, and will test in the next 24 hours or so, a small 
> configuration firmware. This is loaded in to flash and executes 
after 
> a reset and configurres the secondary JTAG port then just spins. 
The 
> JTAG debugger then attaches to the secondary JTAG port. NB though, 
> the debugger should not reset the CPU since that would undo the 
> secondary port set up.
> 
> You will be limited in where you then load firmware into flash 
> because, obviously, if you overwrite the secondary port 
configuration 
Show quoted textHide quoted text
> code then the pins will no longer be used for JTAG.
> 
> I'll let you know how it goes...
> 
> -- Charles

Re: Secondary JTag

2004-03-09 by Owen Mooney

Thanks Charles,

I look forward to knowing how you go. Can you provide a reference for this AP note for me?

I expect my main program to enable the secondary JTAG as well as the small boot program.

I would hope that a reset (via jtag or hardware) would start the same code up again
and debugging etc would be re-enabled.

Thanks also to Robert for his comment on P0.14. I think I certainly will have it poking up out of the resin!

I guess I will be finding the intracies of the IAP facility when i start the software side of the project. 



-- In lpc2000@yahoogroups.com, Owen Mooney <ojm@s...> wrote:

>> I have added this question as a separate message  as it may attract 
>  
>
a  

>> different response
>> 
>> I am debating as t which JTAG pins I use in my circuit layout. I 
>  
>
can 

>> spare enough ports for the JTAG lines, but not the trace lines.I 
>> understand that enabling the primary JTAG lines also enables the 
>  
>
Trace 

>> lines. (there seems to be no way to enable the JTAG lines only 
>  
>
according 

>> to p206 in the manual).
>> 
>> This suggests using the secondary JTAG lines only. I will probably 
>> purchase the crossworks compiler largely on price (feed back on 
>  
>
this 

>> decision is welcome)
>> 
>> Is it practical to
>>     2. layout with only the secondary JTAG "dressed out"
>>     2. write a simple program that initialise the secondary JTAG 
>  
>
ports

>>     3. Boot load it and run it.
>>     4. develope and debug (including reload programs) entirely from 
>  
>
the 

>> secondary JTAG port.
>> 
>> I.e. My question is does the debuging capablity survive all the 
>  
>
resets etc


This is pretty close to what I am planning to do. Indeed there is an 
app note describing what to do.

I have weritten, and will test in the next 24 hours or so, a small 
configuration firmware. This is loaded in to flash and executes after 
a reset and configurres the secondary JTAG port then just spins. The 
JTAG debugger then attaches to the secondary JTAG port. NB though, 
the debugger should not reset the CPU since that would undo the 
secondary port set up.

You will be limited in where you then load firmware into flash 
because, obviously, if you overwrite the secondary port configuration 
code then the pins will no longer be used for JTAG.

I'll let you know how it goes...

-- Charles




___________________

Re: Secondary JTag

2004-03-11 by johnnorgaard2003

--- In lpc2000@yahoogroups.com, "jvedum" <j.vedum@o...> wrote:
> Use of the secondary JTAG has been discussed here before, see ie 
msg 
> 1067, 1262 and 1338. I have made a design where only JTAG2 is 
> available, just as you suggest, and have not been able to debug the 
> design using the JTAG interface. It works OK on other boards if I 
> first brefly accesses JTAG1. (The JTAG2 is of course initialised 
> according to Philips app note AN10255.)
> 
> Tomorrow I am going to meet a representatevi from Philips, and will 
> of course discuss this issue with him.
> 
> Jon
> 

Hi Jon

How did your meeting with Philips went ?
Any solutions to JTAG problems ?

Best regards

John

Re: Secondary JTag

2004-03-12 by jvedum

Sorry, John, the FAE i discussed with did not know about the problem. 
But I demonstrated it to him, and also gave him a more detailed 
description of my tests. He promised to carry it over to the right 
persons at Philips ASAP, as he understood our frustration. So we 
just have to cross our fingers...

To me, it seems like some internal register(s) tends to start up in 
wrong state, preventing access. Because in some cases, I have been 
able to access JTAG2 directly, both on my own board and especially on 
one of my kick-start boards. Maybe the power-on sequence etc may 
affect this? Removing the connection of RTCK seemed to help in one 
case (Re msg 1067), but I got no effect of it. Any more experiences, 
Jim? 

Jon

--- In lpc2000@yahoogroups.com, "johnnorgaard2003" 
<john.norgaard@o...> wrote:
> --- In lpc2000@yahoogroups.com, "jvedum" <j.vedum@o...> wrote:
> > Use of the secondary JTAG has been discussed here before, see ie 
> msg 
> > 1067, 1262 and 1338. I have made a design where only JTAG2 is 
> > available, just as you suggest, and have not been able to debug 
the 
> > design using the JTAG interface. It works OK on other boards if I 
> > first brefly accesses JTAG1. (The JTAG2 is of course initialised 
> > according to Philips app note AN10255.)
> > 
> > Tomorrow I am going to meet a representatevi from Philips, and 
will 
Show quoted textHide quoted text
> > of course discuss this issue with him.
> > 
> > Jon
> > 
> 
> Hi Jon
> 
> How did your meeting with Philips went ?
> Any solutions to JTAG problems ?
> 
> Best regards
> 
> John

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.