Answers Database


M1.3: Failure to program a 9500 device on Windows NT using the JTAG cable


Record #2252

Product Family: Software

Product Line: CPLD Implementation

Product Part: jtagpgmr

Product Version: 1.3

Problem Title:
M1.3: Failure to program a 9500 device on Windows NT using the JTAG cable


Problem Description:
Urgency: standard

General Description:

You may not able to program a 9500 device using the JTAG
(parallel) cable on windows NT.

Windows NT requires the BASJDRV.SYS driver to be installed for
driving the JTAG cable. This driver may not have been installed
during the installation.

Installation of this driver cannot be accomplished without
administrative priviledges for your NT machine. You must have
access to the system's Registry Editor in order modify
registry data files.

The driver name is basjdrv.sys
The registry data file is basjdrv.ini


Solution 1:

A system executable "regini.exe" accompanies the WinNT DDK.
If you have the WinNT DDK you can make appropriate
modifications by entering on the DOS command line:

<INPUT>
regini.exe basjdrv.ini
</INPUT>




Solution 2:


If you do not have access to regini.exe, you must modify
the registry by hand. The following modifications must
be made to the registry:

<LIST>
<LI>
1. First create the BasJdrv key in the following directory:
\Registry\Machine\System\CurrentControlSet\Services\BasJdrv
This is accomplished as follows:

Enter the command REGEDT32.EXE to get to the Registry Editor.

Using the "Add Key" feature, create a key "BasJdrv" in the
\System\CurrentControlSet\Services\ path of the
HKEY_LOCAL_MACHINE section of the registry. Go to Services directory and add the key as follows:

Edit --> Add Key

Type: BasJdrv
Do not add a class for the key
Click on: OK
</LI>

<LI>
2. Next, add these values to the BasJdrv key:

Tag = REG_DWORD 0x00000003
Type = REG_DWORD 0x00000001
Start = REG_DWORD 0x00000002
Group = REG_MULTI_SZ: Extended base
DependOnGroup = REG_MULTI_SZ: Parallel arbitrator
DependOnService = REG_MULTI_SZ: Parport
ErrorControl = REG_DWORD 0x00000001

Use "Add Value" to add each of the listed parameters and their
associated values: Tag, Type, Start, Group, DependOnGroup,
DependOnService and ErrorControl. For example,

Edit --> Add Value

Enter a Value Name and a Data Type. For instance, on the
Value Name line enter "Tag" and on the Data Type line select
"REG_DWORD." Click on OK. The DATA dialog box will
appear. Enter 00000003 on the line. Make sure the Hex box
is checked, the click on OK. The value should appear in the
listing for this directory. Repeat this step for Type, Start,
Group, DependOnGroup, DependOnService and ErrorControl. When
the Data Type is REG_MULTI_SZ, the Multi String Editor dialog
box will appear. Type in the string as listed above
(i.e., for DependOnService it would be Parport).
</LI>

<LI>
3. Add a parameter key to the BasJdrv file with contents as
    follows:

Parameters
IoPortNumber = REG_DWORD 0xffffffff

Edit --> Add Key

Type: Parameters
Do not add a class for the key
Click on OK
</LI>

<LI>
4. To this key use "Add Value" to define IoPortNumber and its
    associated value as listed above.

Edit --> Add Value
Type "IoPortNumber" on the Value Name line
Select REG_DWORD on the Data Type line
Click on OK
The DATA dialog box appears.
Type: ffffffff
Click on OK
</LI>

<LI>
5. The driver "basjdrv.sys" (found in <base>/rtf/bin/nt/)
    must be copied to <winnt root>/system32/drivers.
</LI>

<LI>
6. The system must be rebooted to load the driver.
</LI>
</LIST>




End of Record #2252 - Last Modified: 08/07/97 14:55

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips!