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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [jtag/] [README] - Blame information for rev 1581

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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