OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [fx2/] [src/] [README_iso_jtag.txt] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 22 wfjm
$Id: README_iso_jtag.txt 525 2013-07-06 12:19:39Z mueller $
2 17 wfjm
 
3
usb_jtag using Cypress FX2 chip
4
===============================
5
 
6
== General information ==
7
 
8
The code in this directory is for Cypress FX2 (e.g. CY7C68013A) and can be
9
compiled with the SDCC compiler (I tried version 2.6 as shipped with Ubuntu
10
6.10). Once I had a version that could be compiled with Keil tools (until early
11
2007), but switched to SDCC because I usually develop on a Linux host.
12
 
13
No logic beside the FX2 itself and only a few external components are required
14
for a basic JTAG adapter. I don't have detailed schematics available; my test
15
setup consists of a FX2 on a custom board where it's directly connected to a
16
Cyclone FPGA.
17
 
18
        ____________
19
       |            |
20
       | Cypress    |
21
  USB__| EZ-USB FX2 |__JTAG(TDI,TDO,TCK,TMS)
22
       | CY7C68013A |
23
       |____________|
24
        __|__________
25
       |             |
26
       | 24 MHz XTAL |
27
       |_____________|
28
 
29
 
30
Similar boards are available from fpga4fun.com - the boards named "Saxo-L" and
31
"Xylo-EM" are pre-wired for use with an adapted version of my code, while
32
"Saxo" and "Xylo" can be used after soldering 4 extra wires:
33
 
34
        http://www.fpga4fun.com/board_Xylo.html
35
 
36
There's a discussion thread in the fpga4fun forum about this firmware:
37
 
38
    http://www.fpga4fun.com/forum/viewtopic.php?t=483
39
 
40
 
41
== Use with Nexys 1 / 2 Boards ==
42
 
43
Through a contribution by Sune Mai, this code can be used with the Digilent
44
Nexys / Nexys2 boards.
45
 
46
    http://www.digilentinc.com/nexys/
47
    http://www.digilentinc.com/nexys2/
48
 
49
The hardware-specific code file is hw_nexys.c, just change the line
50
"HARDWARE=hw_basic" to "HARDWARE=hw_nexys" in the file "Makefile" to use it.
51
 
52
Also, you may use the "nexys2prog" script by Andy Ross, available from the
53
same place this code is available from:
54
 
55
    http://ixo-jtag.sourceforge.net/
56
 
57
 
58
== Adapting the code to your hardware ==
59
 
60
As is, the code assumes the following pin assignment:
61
 
62
 Port C.0: TDI
63
 Port C.1: TDO
64
 Port C.2: TCK
65
 Port C.3: TMS
66
 
67
Other assignments are possible. If you have your signals connected to
68
bit-addressable I/O pins (port A,B,C or D), I suggest you make a copy of
69
hw_basic.c and adapt the definitions and ProgIO_Init() in it to your needs.
70
The file hw_saxo_l is even simpler to adapt if you want only JTAG and no AS/PS
71
mode.  If your signals are not on bit-addressable I/Os (that is, you're using
72
port E), you could base your adaptation on the slower hw_xpcu_i.c. You may
73
specify the name of your adapted hardware-specific file when "make"ing, e.g.:
74
 
75
  make HARDWARE=hw_saxo_l
76
 
77
 
78
The USB identification data (vendor/product ID, strings, ...) can be modified
79
in dscr.a51. The firmware emulates the 128 byte EEPROM that usually holds
80
configuration data for the FT245 and which can be read from the host; its
81
content (including checksum) is computed from the data in dscr.a51 as well.
82
 
83
The WAKEUP pin should be high for the re-numeration to work reliably (thanks
84
Jean/fpga4fun!).
85
 
86
 
87
== Using it with Xilinx JTAG cable ==
88
 
89
There is code to support running in the "Xilinx Platform Cable USB". If you
90
select HARDWARE=hw_xpcu_i or hw_xpcu_x at the top of the Makefile, a firmware
91
for the XPCU will be built. I've tested this only with unmodified CPLD version
92
18 (0x12) on a Spartan-3E starter kit, as it was programmed by my WebPack 8.2i.
93
The code needs optimization; yet it is merely a proof of concept.
94
Compile for the XPCU with e.g. "make HARDWARE=hw_xpcu_x".
95
 
96
 hw_xpcu_i: Access "internal" chain (the XPCU CPLD, IC3, itself)
97
 hw_xpcu_x: Access "external" chain (the Spartan 3E, PROM, etc.)
98
 
99
 
100
== History ==
101
 
102
Changes since previous release 2008-07-05:
103
  - Imported to SourceForge, please see the project page:
104
    http://ixo-jtag.sourceforge.net/
105
 
106
Changes since previous release on 2007-02-15:
107
  - Jean Nicolle contributed hw_saxo_l.c for the FX2 boards from fpga4fun.com
108
  - fx2/Makefile fixed to build correct libfx2.lib even under Windows.
109
 
110
Changes since previous release on 2007-01-28:
111
  - Initial suppport for running on Xilinx XPCU.
112
  - New FX2 code, based on USRP2 from the GNU Radio Project;
113
  - Firmware can now be compiled using SDCC 2.6. No more Keil support.
114
  - EEPROM content is automatically computed from dscr.a51, including checksum.
115
 
116
Changes since initial release on 2006-04-23:
117
  - added this readme.txt
118
  - reorganized my project folder: diff now created from Subversion repository
119
  - stripped *.dist extension from eeprom.c and dscr.a51
120
  - added unique proper product and vendor ID (thanks to Antti Lukats!)
121
  - fixed checksum in eeprom.c
122
  - added comments about AS/PS mode pins in usbjtag.c
123
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.