SourcePoint AMD Help

Table of Contents

jtagtest

Test the target JTAG chain.

Syntax[

[result =] jtagtest([chain [, iterations [, test]]])

Where:

result

specifies a boolean variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

chain

JTAG chain number ย {0 | 1 | -1 = all (default)}

iterations

number of iterations (default =1)

test

{0-5 | -1}

Where the values of test are:

ย ย ย 0 ย ย ย ย ย ย is the target powered

ย ย ย 1 ย ย ย ย ย ย is the target currently held in reset

ย ย ย 2 ย ย ย ย ย ย return total IR length of the JTAG chain

ย ย ย 3 ย ย ย ย ย ย scan JTAG ID codes

ย ย ย 4 ย ย ย ย ย ย test JTAG integrity

ย ย ย 5 ย ย ย ย ย ย test for adaptive TCK

ย ย -1 ย ย ย ย ย ย run all tests except adaptive TCKI

Discussion

The jtagtest command tests the target JTAG chain. ย Normally it is run with no arguments which does a complete JTAG test. ย A return value of TRUE indicates the test passed. ย 

Advanced: Tests that return values (e.g., IR length and scan ID codes) require the user to look in the Log window for results. ย The value of aalog should be 0x20987.

Examples

Command Input:

jtagtest( ) ย ย ย ย ย ย ย ย ย ย ย // run all JTAG tests

Result:

TRUE ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย // tests passed

Command Input:

jtagtest(0, 1, 1) ย ย ย ย // check if the target is being held in reset

Result:

TRUE ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย // test succeeded (target is not held reset)

Related Topics