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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [jtag/] [README] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 857 markom
JTAG PROGRAMMING UTILITY README FOR OPENRISC 1000
2
 
3
INTRODUCTION
4
 
5 1280 markom
JP1 is a proprietary JTAG protocol. It is very simple, and perhaps
6
its biggest advantage is that no special HW is needed -- only a
7 857 markom
parallel port cable and some buffers. It is compatible with Xilinx
8
Parallel Cable III.
9
 
10
Gdb is capable of connecting, controlling and debugging the board
11 1380 phoenix
via JP1. Currently jp1 has support only for Linux.
12 857 markom
 
13
 
14
 
15
USAGE
16
 
17 1380 phoenix
jp1 [cable] [port] 
18
 
19
The cable parameter selects the cable to use for communicateing with the board.
20
At the time of writting, cable may be one of xpc3, xess, rtl_sim or vpi.  xpc3
21
assumes a xillinx parallel cable 3, rtl_sim connects to a rtl simulator,
22
communicateing with it via files (slow), vpi connects to a rtl simulator via the
23
vpi (faster).  The port parameter specified designates TCP/IP port address where
24
the server starts.  Run jp1 without arguments for a list of cable specific
25
options.
26
 
27 857 markom
First, start the jp1 program in root mode, e.g.:
28
 
29 1380 phoenix
./jp1 xpc3 9999
30 857 markom
 
31 1380 phoenix
 Then start gdb and connect to it,
32 857 markom
using e.g.:
33
 
34
$ or32-rtems-gdb test.or32
35
(gdb) target jtag jtag://localhost:9999
36
 
37
Then load the program into the memory:
38
 
39
(gdb) load
40
 
41 1280 markom
and start it up:
42 857 markom
 
43
(gdb) set $pc=0x100
44
 
45
You can write stepi or si, to see if things are working
46
correctly:
47
 
48
(gdb) stepi
49
 
50 1280 markom
If the program counter increases, we can set the breakpoint
51
and run the program with command 'continue' or 'c'.
52 857 markom
 
53
 
54
 
55
AUTHORS
56
 
57
Simons Srot, simons@opencores.org
58
Marko Mlinar, markom@opencores.org
59
 

powered by: WebSVN 2.1.0

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