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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [jtag/] [README] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
JTAG PROGRAMMING UTILITY README FOR OPENRISC 1000
JTAG PROGRAMMING UTILITY README FOR OPENRISC 1000
NOTE:
NOTE:
This is a modified version of JTAG utility to work with
This is a modified version of JTAG utility to work with
Celoxica boards.
Celoxica boards.
INTRODUCTION
INTRODUCTION
JP1 is a proprietary JTAG protocol. It is very simple, and perhaps
JP1 is a proprietary JTAG protocol. It is very simple, and perhaps
its biggest advantage is that no special HW is needed -- only a
its biggest advantage is that no special HW is needed -- only a
parallel port cable and some buffers. It is compatible with Xilinx
parallel port cable and some buffers. It is compatible with Xilinx
Parallel Cable III.
Parallel Cable III.
Gdb is capable of connecting, controlling and debugging the board
Gdb is capable of connecting, controlling and debugging the board
via JP1. Currently jp1 has support only for Linux.
via JP1. Currently jp1 has support only for Linux.
USAGE
USAGE
jp1 [cable] [port] 
jp1 [cable] [port] 
The cable parameter selects the cable to use for communicateing with the board.
The cable parameter selects the cable to use for communicateing with the board.
At the time of writting, cable may be one of xpc3, xess, rtl_sim or vpi.  xpc3
At the time of writting, cable may be one of xpc3, xess, rtl_sim or vpi.  xpc3
assumes a xillinx parallel cable 3, rtl_sim connects to a rtl simulator,
assumes a xillinx parallel cable 3, rtl_sim connects to a rtl simulator,
communicateing with it via files (slow), vpi connects to a rtl simulator via the
communicateing with it via files (slow), vpi connects to a rtl simulator via the
vpi (faster).  The port parameter specified designates TCP/IP port address where
vpi (faster).  The port parameter specified designates TCP/IP port address where
the server starts.  Run jp1 without arguments for a list of cable specific
the server starts.  Run jp1 without arguments for a list of cable specific
options.
options.
First, start the jp1 program in root mode, e.g.:
First, start the jp1 program in root mode, e.g.:
./jp1 xpc3 9999
./jp1 xpc3 9999
 Then start gdb and connect to it,
 Then start gdb and connect to it,
using e.g.:
using e.g.:
$ or32-rtems-gdb test.or32
$ or32-rtems-gdb test.or32
(gdb) target jtag jtag://localhost:9999
(gdb) target jtag jtag://localhost:9999
Then load the program into the memory:
Then load the program into the memory:
(gdb) load
(gdb) load
and start it up:
and start it up:
(gdb) set $pc=0x100
(gdb) set $pc=0x100
You can write stepi or si, to see if things are working
You can write stepi or si, to see if things are working
correctly:
correctly:
(gdb) stepi
(gdb) stepi
If the program counter increases, we can set the breakpoint
If the program counter increases, we can set the breakpoint
and run the program with command 'continue' or 'c'.
and run the program with command 'continue' or 'c'.
AUTHORS
AUTHORS
Simons Srot, simons@opencores.org
Simons Srot, simons@opencores.org
Marko Mlinar, markom@opencores.org
Marko Mlinar, markom@opencores.org
 
 

powered by: WebSVN 2.1.0

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