UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 10603

*Obsolete* 3.1i JTAGPROG - How do I set the user code on an 18v00 part from the command line? How do I read it back?

Description

Keywords: JTAG, JTAGPROG, command, program

Urgency: Standard

General Description:
What is the procedure for setting the user code with the JTAGPROG command line interface, and how do I read it back?

Solution

1

The user code may only be set during a program operation. To set the user code, set the -u option with the program command:

Program <device> -u <usercode> -f <filename.mcs>

where:
<device> is the name of the part as specified in the part command
<usercode> is your user code
<filename.mcs> is exact path and name of the .mcs file

To read back the user code:

Partinfo -signature <device>

For general information on programming devices with JTAGPROG, (including the use of the PART command to set the device name), see (Xilinx Answer 10601).

2

This example demonstrates the use of JTAGPROG to set the user code and configure an XC18V04 PROM. (Blank lines are inserted for clarity.):

mcs file: c:\test\10603.mcs
usercode: 123456

C:\TEST>jtagprog

JTAGProgrammer:Release 3.2.05i - JTAG Boundary-Scan Download D.24 Copyright:
1991-1999

JTAGProgrammer:Release 3.2.05i - JTAG Boundary-Scan Download D.24
Copyright:1991-1999
Sizing system available memory...done.
Cable ID type is 'BSCAN-PARALLEL-95'
Cable is connected to 'lpt1'

[JTAGProgrammer::(1)] > part xc18v04_pc44:device1

Active command: 'part xc18v04_pc44:device1'
Loading Boundary-Scan Description Language (BSDL) file
'C:/Xilinx/data/xc18v04_pc44.bsd'.....completed successfully.
Checking boundary-scan chain integrity...done.
Verifying device positions in boundary-scan chain...
Instance 'device1' at position '1'...verified.
Verification completed.
Boundary-scan chain validated successfully.

[JTAGProgrammer::(2)] > program device1 -u 123456 -f c:\test\10603.mcs

Active command: 'program device1 -u 123456 -f c:\test\10603.mcs'
'device1': Checking boundary-scan chain integrity...done.
'device1': Opening sprom data stream file ...done.
'device1': Checking boundary-scan chain integrity...done.
'device1': Putting device in ISP mode...done.
'device1': Programming device...................................................
................................................................................
................................................................................
................................................................................
................................................................................
..................done.
'device1': Setting Usercode...'device1': Programming completed successfully.
[JTAGProgrammer::(3)] >

3

This example demonstrates the use of JTAGPROG to read back the user code. (Blank lines are inserted for clarity.):

[JTAGProgrammer::(1)] > part xc18v04_pc44:device1

Active command: 'part xc18v04_pc44:device1'
Loading Boundary-Scan Description Language (BSDL) file
'C:/Xilinx/data/xc18v04_pc44.bsd'.....completed successfully.
Checking boundary-scan chain integrity...done.
Verifying device positions in boundary-scan chain...
Instance 'device1' at position '1'...verified.
Verification completed.
Boundary-scan chain validated successfully.

[JTAGProgrammer::(2)] > partinfo -signature device1

Active command: 'partinfo -signature device1'
'device1': Signature/Usercode = 10101000

[JTAGProgrammer::(3)] >
AR# 10603
Date Created 08/29/2007
Last Updated 09/22/2005
Status Archive
Type ??????