JTAG TAP
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
JTAG TAP

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Paul Taylor
Guest





Posted: Mon Dec 13, 2004 9:07 pm    Post subject: JTAG TAP Reply with quote

Hi,

I am writing a bit of software to control a JTAG port, but I am having a
bit of trouble getting it working.

Below are the steps my software is following to test out a JTAG
connection. I think that there must be an error in there somewhere,
but from my understanding of the JTAG TAP and the way JTAG works, I
can't see a problem at the moment.

Can anyone comment on whether I am controlling the TAP correctly?

Thanks,

Paul.

(Note: for each clock cycle below, tms and tdo are set before the clk is
set high)

(1) Make sure TAP is in reset:
clk 1: tms = 1, tdo = 0
clk 2: tms = 1, tdo = 0
clk 3: tms = 1, tdo = 0
clk 4: tms = 1, tdo = 0
clk 5: tms = 1, tdo = 0

(2) Move TAP to Select-DR-Scan state
clk 6: tms = 0, tdo = 0
clk 7: tms = 1, tdo = 0

(3) Move TAP to SHIFT-IR
clk 8: tms = 1, tdo = 0
clk 9: tms = 0, tdo = 0
clk 10: tms = 0, tdo = 0

(4) Shift 3 to put into bypass mode then move TAP to Select-DR-Scan
state (IR length is 2 bits):
clk 11: tms = 0, tdo = 1
clk 12: tms = 1, tdo = 1
clk 13: tms = 1, tdo = 0
clk 14: tms = 1, tdo = 0

(5) TAP to SHIFT-DR
clk 15: tms = 0, tdo = 0
clk 16: tms = 0, tdo = 0

(6) Shift out 8 bits, 0x55 to see if it comes back on device's TDO
clk 17: tms = 0, tdo = 1
clk 18: tms = 0, tdo = 0
clk 19: tms = 0, tdo = 1
clk 20: tms = 0, tdo = 0
clk 21: tms = 0, tdo = 1
clk 22: tms = 0, tdo = 0
clk 23: tms = 0, tdo = 1
clk 24: tms = 1, tdo = 0

(7) Move TAP to Select-DR-Scan state ready for next operation
clk 25: tms = 1, tdo = 0
clk 26: tms = 1, tdo = 0

--
Remove _rem_ before replying by email.
Back to top
Paul Taylor
Guest





Posted: Tue Dec 14, 2004 12:36 pm    Post subject: Re: JTAG TAP Reply with quote

I now have this working - the method in my OP was correct.

After spending time trying to find the problem, I should have known that
as soon as I post a question I would fix it - must remember this next time ;-)

Regards,

Paul.
Back to top
Tauno Voipio
Guest





Posted: Tue Dec 14, 2004 3:53 pm    Post subject: Re: JTAG TAP Reply with quote

Paul Taylor wrote:
Quote:
I now have this working - the method in my OP was correct.

After spending time trying to find the problem, I should have known that
as soon as I post a question I would fix it - must remember this next time ;-)

Regards,

Paul.

Please: What was wrong?

--

Tauno Voipio
tauno voipio (at) iki fi
Back to top
Paul Taylor
Guest





Posted: Tue Dec 14, 2004 8:40 pm    Post subject: Re: JTAG TAP Reply with quote

On Tue, 14 Dec 2004 10:53:18 +0000, Tauno Voipio wrote:


Quote:
Please: What was wrong?

It was a hardware problem - a simple mistake (they always are) and I would
be too embarassed to go into details!

I missed the hardware problem and I thought that the problem was how
I was controlling the TAP. I haven't got the JTAG standard and was
relying on documents downloaded from Xilinx, Altera and TI's websites to
try and work out exactly how the TAP should be controlled. Using these
docs, I wasn't completely confident that I my understanding was correct,
hence the post to this newsgroup.

Regards,

Paul.

--
Remove _rem_ before replying by email.
Back to top
Tauno Voipio
Guest





Posted: Wed Dec 15, 2004 2:42 am    Post subject: Re: JTAG TAP Reply with quote

Paul Taylor wrote:
Quote:
On Tue, 14 Dec 2004 10:53:18 +0000, Tauno Voipio wrote:



Please: What was wrong?


It was a hardware problem - a simple mistake (they always are) and I would
be too embarassed to go into details!

I missed the hardware problem and I thought that the problem was how
I was controlling the TAP. I haven't got the JTAG standard and was
relying on documents downloaded from Xilinx, Altera and TI's websites to
try and work out exactly how the TAP should be controlled. Using these
docs, I wasn't completely confident that I my understanding was correct,
hence the post to this newsgroup.


Missing pull-up resistors and none on-chip?

(Had it myself).

--

Tauno Voipio
tauno voipio (at) iki fi
Back to top
Jeroen
Guest





Posted: Wed Dec 15, 2004 4:40 am    Post subject: Re: JTAG TAP Reply with quote

"Paul Taylor" <pault_rem_.ngea@virgin.net> wrote in message
news:pan.2004.12.14.07.36.15.715449@virgin.net...
Quote:
I now have this working - the method in my OP was correct.

After spending time trying to find the problem, I should have known that
as soon as I post a question I would fix it - must remember this next time
;-)

Regards,

Paul.

Look for JRunner on altera.com. It's an application to download
configuration data to FPGAs. It's provided as source code and works very
well (I've used it)

Jeroen
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB